From f0f9553144d32dc942eb6f31d4a966c09bbfc72a Mon Sep 17 00:00:00 2001 From: oci-dex-release-bot Date: Tue, 30 Apr 2024 23:57:58 +0000 Subject: [PATCH] Releasing version 3.41.0 --- CHANGELOG.md | 25 + bmc-accessgovernancecp/pom.xml | 4 +- .../pom.xml | 6 +- .../pom.xml | 6 +- .../bmc-apache-connector-provider/pom.xml | 4 +- bmc-addons/bmc-oke-workload-identity/pom.xml | 10 +- .../bmc-resteasy-client-configurator/pom.xml | 4 +- .../bmc-sasl-oke-workload-identity/pom.xml | 6 +- bmc-addons/bmc-sasl/pom.xml | 4 +- bmc-addons/bmc-sse-support-jersey3/pom.xml | 8 +- bmc-addons/bmc-sse-support/pom.xml | 8 +- bmc-addons/pom.xml | 2 +- bmc-adm/pom.xml | 4 +- bmc-aianomalydetection/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-apigateway/pom.xml | 4 +- bmc-apmconfig/pom.xml | 4 +- bmc-apmcontrolplane/pom.xml | 4 +- bmc-apmsynthetics/pom.xml | 4 +- bmc-apmtraces/pom.xml | 4 +- bmc-appmgmtcontrol/pom.xml | 4 +- bmc-artifacts/pom.xml | 4 +- bmc-audit/pom.xml | 4 +- bmc-autoscaling/pom.xml | 4 +- bmc-bastion/pom.xml | 4 +- bmc-bds/pom.xml | 4 +- bmc-blockchain/pom.xml | 4 +- bmc-bom/pom.xml | 308 ++++---- bmc-budget/pom.xml | 4 +- bmc-capacitymanagement/pom.xml | 4 +- bmc-certificates/pom.xml | 4 +- bmc-certificatesmanagement/pom.xml | 4 +- bmc-cims/pom.xml | 4 +- bmc-circuitbreaker/pom.xml | 2 +- bmc-cloudbridge/pom.xml | 4 +- bmc-cloudguard/pom.xml | 4 +- bmc-cloudmigrations/pom.xml | 4 +- bmc-clusterplacementgroups/pom.xml | 4 +- .../bmc-common-httpclient-jersey/pom.xml | 6 +- .../bmc-common-httpclient-jersey3/pom.xml | 6 +- bmc-common-httpclient-choices/pom.xml | 2 +- bmc-common-httpclient/pom.xml | 2 +- bmc-common/pom.xml | 8 +- bmc-computecloudatcustomer/pom.xml | 4 +- bmc-computeinstanceagent/pom.xml | 4 +- bmc-containerengine/pom.xml | 4 +- bmc-containerinstances/pom.xml | 4 +- bmc-core/pom.xml | 6 +- bmc-dashboardservice/pom.xml | 4 +- bmc-database/pom.xml | 6 +- .../com/oracle/bmc/database/Database.java | 4 +- .../oracle/bmc/database/DatabaseAsync.java | 4 +- .../bmc/database/DatabaseAsyncClient.java | 2 + .../oracle/bmc/database/DatabaseClient.java | 2 + .../model/AutonomousContainerDatabase.java | 54 +- .../AutonomousContainerDatabaseSummary.java | 54 +- .../database/model/AutonomousDatabase.java | 188 ++--- .../model/AutonomousDatabaseSummary.java | 188 ++--- .../bmc/database/model/CloudVmCluster.java | 58 +- .../database/model/CloudVmClusterSummary.java | 58 +- ...ateAutonomousContainerDatabaseDetails.java | 54 +- .../model/CreateAutonomousDatabaseBase.java | 36 +- ...ionAutonomousDatabaseDataGuardDetails.java | 29 +- ...ateCrossRegionDisasterRecoveryDetails.java | 21 +- .../bmc/database/model/CreateDbHomeBase.java | 33 +- .../CreateDbHomeWithDbSystemIdDetails.java | 17 +- ...DbHomeWithDbSystemIdFromBackupDetails.java | 17 +- ...HomeWithDbSystemIdFromDatabaseDetails.java | 17 +- .../CreateDbHomeWithVmClusterIdDetails.java | 17 +- ...bHomeWithVmClusterIdFromBackupDetails.java | 17 +- .../com/oracle/bmc/database/model/DbHome.java | 50 +- .../model/DbHomeFromAgentResourceId.java | 50 +- .../bmc/database/model/DbHomeSummary.java | 50 +- .../oracle/bmc/database/model/DbSystem.java | 52 ++ .../bmc/database/model/DbSystemSummary.java | 52 ++ .../UpdateAutonomousDatabaseDetails.java | 68 +- .../bmc/database/model/UpdateDetails.java | 56 +- .../oracle/bmc/database/model/VmCluster.java | 58 +- .../bmc/database/model/VmClusterSummary.java | 58 +- .../model/VmClusterUpdateDetails.java | 57 +- .../ListDatabaseSoftwareImagesRequest.java | 55 +- bmc-databasemanagement/pom.xml | 4 +- .../bmc/databasemanagement/DbManagement.java | 216 +++++- .../databasemanagement/DbManagementAsync.java | 222 +++++- .../DbManagementAsyncClient.java | 529 +++++++++++++ .../DbManagementClient.java | 490 +++++++++++++ .../databasemanagement/Diagnosability.java | 6 +- .../DiagnosabilityAsync.java | 6 +- .../ManagedMySqlDatabases.java | 6 +- .../ManagedMySqlDatabasesAsync.java | 6 +- .../bmc/databasemanagement/Perfhub.java | 6 +- .../bmc/databasemanagement/PerfhubAsync.java | 6 +- .../bmc/databasemanagement/SqlTuning.java | 6 +- .../databasemanagement/SqlTuningAsync.java | 6 +- .../BasicDatabaseConnectionStringDetails.java | 240 ++++++ .../model/ChildDatabase.java | 68 +- .../model/ConnectorDetails.java | 121 +++ .../model/DatabaseConnectionDetails.java | 155 ++++ .../DatabaseConnectionStringDetails.java | 111 +++ ...ticsAndManagementFeatureConfiguration.java | 215 ++++++ ...iagnosticsAndManagementFeatureDetails.java | 245 +++++++ .../model/DatabaseFeatureConfiguration.java | 175 +++++ .../model/DatabaseFeatureDetails.java | 110 +++ .../model/DbManagementFeature.java | 43 ++ .../model/DbManagementPrivateEndpoint.java | 68 +- .../DbManagementPrivateEndpointSummary.java | 68 +- ...sableDatabaseManagementFeatureDetails.java | 134 ++++ ...ainerDatabaseManagementFeatureDetails.java | 136 ++++ ...ainerDatabaseManagementFeatureDetails.java | 137 ++++ ...gableDatabaseManagementFeatureDetails.java | 136 ++++ ...gableDatabaseManagementFeatureDetails.java | 136 ++++ ...nableDatabaseManagementFeatureDetails.java | 125 ++++ ...ainerDatabaseManagementFeatureDetails.java | 129 ++++ ...ainerDatabaseManagementFeatureDetails.java | 129 ++++ ...gableDatabaseManagementFeatureDetails.java | 129 ++++ ...gableDatabaseManagementFeatureDetails.java | 127 ++++ .../databasemanagement/model/ExternalAsm.java | 68 +- .../model/ExternalAsmInstance.java | 68 +- .../model/ExternalAsmInstanceSummary.java | 68 +- .../model/ExternalAsmSummary.java | 68 +- .../model/ExternalCluster.java | 68 +- .../model/ExternalClusterInstance.java | 68 +- .../model/ExternalClusterInstanceSummary.java | 68 +- .../model/ExternalClusterSummary.java | 68 +- .../model/ExternalConnectorDetails.java | 147 ++++ ...iagnosticsAndManagementFeatureDetails.java | 184 +++++ .../model/ExternalDatabaseFeatureDetails.java | 91 +++ .../model/ExternalDatabaseSummary.java | 68 +- .../model/ExternalDbHome.java | 68 +- .../model/ExternalDbHomeSummary.java | 68 +- .../model/ExternalDbNode.java | 68 +- .../model/ExternalDbNodeSummary.java | 68 +- .../model/ExternalDbSystem.java | 68 +- .../ExternalDbSystemConnectorSummary.java | 68 +- .../model/ExternalDbSystemDiscovery.java | 68 +- .../ExternalDbSystemDiscoverySummary.java | 68 +- .../model/ExternalDbSystemMacsConnector.java | 65 +- .../model/ExternalDbSystemSummary.java | 68 +- .../model/ExternalExadataInfrastructure.java | 65 +- .../ExternalExadataInfrastructureSummary.java | 65 +- .../ExternalExadataStorageConnector.java | 65 +- ...xternalExadataStorageConnectorSummary.java | 65 +- .../model/ExternalExadataStorageGrid.java | 65 +- .../model/ExternalExadataStorageServer.java | 65 +- .../ExternalExadataStorageServerSummary.java | 65 +- .../model/ExternalListener.java | 68 +- .../model/ExternalListenerSummary.java | 68 +- ...iagnosticsAndManagementFeatureDetails.java | 116 +++ ...ternalPluggableDatabaseFeatureDetails.java | 91 +++ .../model/HeatWaveClusterUsageMetrics.java | 48 +- .../model/HeatWaveFleetMetrics.java | 16 +- .../model/HeatWaveFleetSummary.java | 26 +- .../model/HeatWaveNode.java | 8 +- .../databasemanagement/model/JobSummary.java | 68 +- .../model/LoadSqlTuningSetDetails.java | 1 + .../model/MacsConnectorDetails.java | 145 ++++ .../model/ManagedDatabase.java | 68 +- .../model/ManagedDatabaseGroup.java | 68 +- .../model/ManagedDatabaseGroupSummary.java | 68 +- .../model/ManagedDatabaseSummary.java | 68 +- .../model/ManagedMySqlDatabase.java | 40 +- ...odifyDatabaseManagementFeatureDetails.java | 125 ++++ ...gableDatabaseManagementFeatureDetails.java | 127 ++++ .../model/MySqlDatabaseUsageMetrics.java | 8 +- .../model/MySqlFleetMetricDefinition.java | 40 + .../model/NamedCredential.java | 68 +- .../model/NamedCredentialSummary.java | 68 +- .../PrivateEndPointConnectorDetails.java | 146 ++++ .../model/SaveSqlTuningSetAsDetails.java | 1 + .../bmc/databasemanagement/model/SqlJob.java | 65 +- .../model/SqlPlanBaseline.java | 349 ++++++++- .../model/SqlPlanBaselineSummary.java | 349 ++++++++- .../model/SqlTuningSet.java | 62 +- .../model/WorkRequestOperationType.java | 9 + ...sableDatabaseManagementFeatureRequest.java | 381 ++++++++++ ...ainerDatabaseManagementFeatureRequest.java | 407 ++++++++++ ...ainerDatabaseManagementFeatureRequest.java | 405 ++++++++++ ...gableDatabaseManagementFeatureRequest.java | 407 ++++++++++ ...gableDatabaseManagementFeatureRequest.java | 397 ++++++++++ ...nableDatabaseManagementFeatureRequest.java | 380 ++++++++++ ...ainerDatabaseManagementFeatureRequest.java | 407 ++++++++++ ...ainerDatabaseManagementFeatureRequest.java | 405 ++++++++++ ...gableDatabaseManagementFeatureRequest.java | 407 ++++++++++ ...gableDatabaseManagementFeatureRequest.java | 397 ++++++++++ .../ListExternalDatabasesRequest.java | 45 +- ...odifyDatabaseManagementFeatureRequest.java | 380 ++++++++++ ...gableDatabaseManagementFeatureRequest.java | 397 ++++++++++ ...ableDatabaseManagementFeatureResponse.java | 187 +++++ ...inerDatabaseManagementFeatureResponse.java | 188 +++++ ...inerDatabaseManagementFeatureResponse.java | 188 +++++ ...ableDatabaseManagementFeatureResponse.java | 188 +++++ ...ableDatabaseManagementFeatureResponse.java | 188 +++++ ...ableDatabaseManagementFeatureResponse.java | 186 +++++ ...inerDatabaseManagementFeatureResponse.java | 188 +++++ ...inerDatabaseManagementFeatureResponse.java | 188 +++++ ...ableDatabaseManagementFeatureResponse.java | 188 +++++ ...ableDatabaseManagementFeatureResponse.java | 188 +++++ ...difyDatabaseManagementFeatureResponse.java | 186 +++++ ...ableDatabaseManagementFeatureResponse.java | 188 +++++ .../reflect-config.json | 462 ++++++++++++ bmc-databasemigration/pom.xml | 4 +- bmc-databasetools/pom.xml | 4 +- bmc-datacatalog/pom.xml | 4 +- .../oracle/bmc/datacatalog/DataCatalog.java | 15 + .../bmc/datacatalog/DataCatalogAsync.java | 15 + .../datacatalog/DataCatalogAsyncClient.java | 40 + .../bmc/datacatalog/DataCatalogClient.java | 38 + .../model/ImportLineageDetails.java | 141 ++++ .../model/ImportLineageJobResult.java | 306 ++++++++ .../requests/ImportLineageRequest.java | 328 +++++++++ .../requests/ListEntitiesRequest.java | 34 +- .../responses/ImportLineageResponse.java | 181 +++++ .../reflect-config.json | 28 + bmc-dataflow/pom.xml | 4 +- bmc-dataintegration/pom.xml | 4 +- .../model/CreateWorkspaceDetails.java | 48 +- .../model/UpdateWorkspaceDetails.java | 53 +- .../bmc/dataintegration/model/Workspace.java | 48 +- .../model/WorkspaceSummary.java | 48 +- bmc-datalabelingservice/pom.xml | 4 +- bmc-datalabelingservicedataplane/pom.xml | 4 +- bmc-datasafe/pom.xml | 4 +- .../com/oracle/bmc/datasafe/DataSafe.java | 102 +++ .../oracle/bmc/datasafe/DataSafeAsync.java | 106 +++ .../bmc/datasafe/DataSafeAsyncClient.java | 249 +++++++ .../oracle/bmc/datasafe/DataSafeClient.java | 227 ++++++ .../bmc/datasafe/DataSafePaginators.java | 262 +++++++ .../oracle/bmc/datasafe/DataSafeWaiters.java | 114 +++ ...gPolicyHealthReportCompartmentDetails.java | 138 ++++ .../model/GenerateHealthReportDetails.java | 420 +++++++++++ .../model/MaskingPolicyHealthReport.java | 631 ++++++++++++++++ .../MaskingPolicyHealthReportCollection.java | 135 ++++ ...askingPolicyHealthReportLogCollection.java | 135 ++++ .../MaskingPolicyHealthReportLogSummary.java | 346 +++++++++ .../MaskingPolicyHealthReportSummary.java | 536 ++++++++++++++ .../bmc/datasafe/model/WorkRequest.java | 1 + .../datasafe/model/WorkRequestSummary.java | 1 + ...gPolicyHealthReportCompartmentRequest.java | 376 ++++++++++ ...eleteMaskingPolicyHealthReportRequest.java | 249 +++++++ .../requests/GenerateHealthReportRequest.java | 309 ++++++++ .../GetMaskingPolicyHealthReportRequest.java | 200 +++++ ...tMaskingPolicyHealthReportLogsRequest.java | 474 ++++++++++++ ...ListMaskingPolicyHealthReportsRequest.java | 693 ++++++++++++++++++ ...PolicyHealthReportCompartmentResponse.java | 140 ++++ ...leteMaskingPolicyHealthReportResponse.java | 186 +++++ .../GenerateHealthReportResponse.java | 185 +++++ .../GetMaskingPolicyHealthReportResponse.java | 227 ++++++ ...MaskingPolicyHealthReportLogsResponse.java | 290 ++++++++ ...istMaskingPolicyHealthReportsResponse.java | 288 ++++++++ .../oci-java-sdk-datasafe/reflect-config.json | 116 +++ bmc-datascience/pom.xml | 4 +- bmc-desktops/pom.xml | 4 +- bmc-devops/pom.xml | 4 +- bmc-disasterrecovery/pom.xml | 4 +- bmc-dns/pom.xml | 6 +- bmc-dts/pom.xml | 4 +- bmc-email/pom.xml | 4 +- bmc-emaildataplane/pom.xml | 4 +- bmc-emwarehouse/pom.xml | 4 +- bmc-encryption/pom.xml | 10 +- bmc-enforcer-rules/pom.xml | 2 +- bmc-events/pom.xml | 4 +- bmc-examples/pom.xml | 6 +- bmc-filestorage/pom.xml | 4 +- bmc-fleetsoftwareupdate/pom.xml | 4 +- bmc-full/pom.xml | 4 +- bmc-functions/pom.xml | 4 +- bmc-fusionapps/pom.xml | 4 +- bmc-generativeai/pom.xml | 4 +- bmc-generativeaiinference/pom.xml | 4 +- bmc-genericartifactscontent/pom.xml | 4 +- bmc-globallydistributeddatabase/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-jms/pom.xml | 4 +- bmc-jmsjavadownloads/pom.xml | 4 +- bmc-keymanagement/pom.xml | 4 +- bmc-licensemanager/pom.xml | 4 +- bmc-limits/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-managementagent/pom.xml | 4 +- bmc-managementdashboard/pom.xml | 4 +- bmc-marketplace/pom.xml | 4 +- bmc-marketplacepublisher/pom.xml | 4 +- bmc-mediaservices/pom.xml | 4 +- bmc-monitoring/pom.xml | 4 +- bmc-mysql/pom.xml | 4 +- bmc-networkfirewall/pom.xml | 4 +- bmc-networkloadbalancer/pom.xml | 4 +- bmc-nosql/pom.xml | 4 +- .../bmc-objectstorage-combined/pom.xml | 6 +- .../bmc-objectstorage-extensions/pom.xml | 8 +- .../bmc-objectstorage-generated/pom.xml | 4 +- bmc-objectstorage/pom.xml | 2 +- bmc-oce/pom.xml | 4 +- bmc-ocicontrolcenter/pom.xml | 4 +- bmc-ocvp/pom.xml | 4 +- bmc-oda/pom.xml | 4 +- bmc-onesubscription/pom.xml | 4 +- bmc-ons/pom.xml | 4 +- bmc-opa/pom.xml | 4 +- bmc-opensearch/pom.xml | 4 +- bmc-operatoraccesscontrol/pom.xml | 4 +- bmc-opsi/pom.xml | 4 +- bmc-optimizer/pom.xml | 4 +- bmc-osmanagement/pom.xml | 4 +- bmc-osmanagementhub/pom.xml | 4 +- bmc-ospgateway/pom.xml | 4 +- bmc-osubbillingschedule/pom.xml | 4 +- bmc-osuborganizationsubscription/pom.xml | 4 +- bmc-osubsubscription/pom.xml | 4 +- bmc-osubusage/pom.xml | 4 +- .../bmc-jersey-examples/pom.xml | 8 +- .../bmc-jersey3-examples/pom.xml | 8 +- .../native-maven-example/pom.xml | 6 +- bmc-other-examples/pom.xml | 2 +- bmc-psql/pom.xml | 4 +- bmc-queue/pom.xml | 4 +- bmc-recovery/pom.xml | 4 +- .../oracle/bmc/recovery/DatabaseRecovery.java | 40 + .../bmc/recovery/DatabaseRecoveryAsync.java | 42 ++ .../recovery/DatabaseRecoveryAsyncClient.java | 80 ++ .../bmc/recovery/DatabaseRecoveryClient.java | 72 ++ .../model/CreateProtectionPolicyDetails.java | 100 +++ .../CreateRecoveryServiceSubnetDetails.java | 114 ++- .../bmc/recovery/model/DeletionSchedule.java | 46 ++ ...ProtectedDatabaseConfigurationDetails.java | 1 + .../bmc/recovery/model/LifecycleState.java | 1 + .../oracle/bmc/recovery/model/Metrics.java | 50 +- .../bmc/recovery/model/MetricsSummary.java | 50 +- .../bmc/recovery/model/OperationStatus.java | 1 + .../bmc/recovery/model/ProtectedDatabase.java | 106 ++- .../model/ProtectedDatabaseSummary.java | 74 ++ .../bmc/recovery/model/ProtectionPolicy.java | 68 +- .../model/ProtectionPolicySummary.java | 52 ++ .../recovery/model/RecoveryServiceSubnet.java | 120 ++- .../model/RecoveryServiceSubnetSummary.java | 128 +++- ...eduleProtectedDatabaseDeletionDetails.java | 160 ++++ .../model/UpdateProtectionPolicyDetails.java | 100 +++ .../UpdateRecoveryServiceSubnetDetails.java | 106 ++- ...ancelProtectedDatabaseDeletionRequest.java | 247 +++++++ .../CreateProtectedDatabaseRequest.java | 147 +++- .../DeleteProtectedDatabaseRequest.java | 57 +- .../ListRecoveryServiceSubnetsRequest.java | 18 +- ...eduleProtectedDatabaseDeletionRequest.java | 316 ++++++++ ...ncelProtectedDatabaseDeletionResponse.java | 138 ++++ ...rotectedDatabaseConfigurationResponse.java | 74 +- ...duleProtectedDatabaseDeletionResponse.java | 180 +++++ .../oci-java-sdk-recovery/reflect-config.json | 20 + bmc-redis/pom.xml | 4 +- bmc-resourcemanager/pom.xml | 4 +- bmc-resourcesearch/pom.xml | 4 +- bmc-rover/pom.xml | 4 +- bmc-sch/pom.xml | 4 +- bmc-secrets/pom.xml | 4 +- bmc-servicecatalog/pom.xml | 4 +- bmc-servicemanagerproxy/pom.xml | 4 +- bmc-servicemesh/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-workrequests/pom.xml | 4 +- pom.xml | 2 +- 391 files changed, 28926 insertions(+), 1282 deletions(-) create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalContainerDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalNonContainerDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalPluggableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisablePluggableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalContainerDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalNonContainerDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalPluggableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnablePluggableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseDiagnosticsAndManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MacsConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyPluggableDatabaseManagementFeatureDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PrivateEndPointConnectorDetails.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalContainerDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalNonContainerDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalPluggableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisablePluggableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalContainerDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalNonContainerDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalPluggableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnablePluggableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyPluggableDatabaseManagementFeatureRequest.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalContainerDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalNonContainerDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalPluggableDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisablePluggableDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalContainerDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalNonContainerDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalPluggableDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnablePluggableDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyDatabaseManagementFeatureResponse.java create mode 100644 bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyPluggableDatabaseManagementFeatureResponse.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageDetails.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageJobResult.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportLineageRequest.java create mode 100644 bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportLineageResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeMaskingPolicyHealthReportCompartmentDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateHealthReportDetails.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReport.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportLogCollection.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportLogSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportSummary.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeMaskingPolicyHealthReportCompartmentRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteMaskingPolicyHealthReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateHealthReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetMaskingPolicyHealthReportRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportLogsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportsRequest.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeMaskingPolicyHealthReportCompartmentResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteMaskingPolicyHealthReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateHealthReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetMaskingPolicyHealthReportResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportLogsResponse.java create mode 100644 bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportsResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/DeletionSchedule.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ScheduleProtectedDatabaseDeletionDetails.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelProtectedDatabaseDeletionResponse.java create mode 100644 bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ScheduleProtectedDatabaseDeletionResponse.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c0372dd068..e45f1adac20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/). +## 3.41.0 - 2024-04-30 +### Added +- Support for enabling unified auditing for DBHome in the Database service +- Support for listing minor Grid Infrastructure (GI) versions available for custom GI software image creation in the Database service +- Support for network security groups in the Recovery Cloud service +- Support for lineage metadata import in the Data Catalog service +- Support for workspace properties in workspace create and update operations in the Data Integration service +- Support for monitoring ExaCC databases in the Database Management service +- Support for validations on target and policy before the masking process in the Data Safe service + +### Breaking Changes +- Return type of method `public java.lang.String getAccepted()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Accepted` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline` in the Database Management service +- Return type of method `public java.lang.String getAdaptive()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Adaptive` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline` in the Database Management service +- Return type of method `public java.lang.String getAutoPurge()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$AutoPurge` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline` in the Database Management service +- Return type of method `public java.lang.String getEnabled()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Enabled` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline` in the Database Management service +- Return type of method `public java.lang.String getFixed()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Fixed` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline` in the Database Management service +- Return type of method `public java.lang.String getReproduced()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Reproduced` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline` in the Database Management service +- Return type of method `public java.lang.String getAccepted()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Accepted` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service +- Return type of method `public java.lang.String getAdaptive()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Adaptive` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service +- Return type of method `public java.lang.String getAutoPurge()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$AutoPurge` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service +- Return type of method `public java.lang.String getEnabled()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Enabled` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service +- Return type of method `public java.lang.String getFixed()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Fixed` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service +- Return type of method `public java.lang.String getReproduced()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Reproduced` in the model `com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary` in the Database Management service +- Return type of method `public java.lang.String getAllSqlStatementsFetched()` has been changed to `com.oracle.bmc.databasemanagement.model.SqlTuningSet$AllSqlStatementsFetched` in the model `com.oracle.bmc.databasemanagement.model.SqlTuningSet` in the Database Management service + ## 3.40.0 - 2024-04-23 ### Added - Support for the Cluster Placement Groups service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index db507077a08..42a4cc5f71e 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml index 42dacdc4074..6e034f4b32f 100644 --- a/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.40.0 + 3.41.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 pom import diff --git a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml index 01371b539fd..9afb7c1c5d6 100644 --- a/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml +++ b/bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.40.0 + 3.41.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.40.0 + 3.41.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index a2c6d598a64..449e28600d9 100644 --- a/bmc-addons/bmc-apache-connector-provider/pom.xml +++ b/bmc-addons/bmc-apache-connector-provider/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index 6270fa836b0..f76840eca2e 100644 --- a/bmc-addons/bmc-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.40.0 + 3.41.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.40.0 + 3.41.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.40.0 + 3.41.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.40.0 + 3.41.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 034aabadce5..832bafe88b3 100644 --- a/bmc-addons/bmc-resteasy-client-configurator/pom.xml +++ b/bmc-addons/bmc-resteasy-client-configurator/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.40.0 + 3.41.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml index dea4623f019..6009c7aedb5 100644 --- a/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml +++ b/bmc-addons/bmc-sasl-oke-workload-identity/pom.xml @@ -4,7 +4,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.40.0 + 3.41.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.40.0 + 3.41.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.40.0 + 3.41.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index cf466f15ead..591108e9c96 100644 --- a/bmc-addons/bmc-sasl/pom.xml +++ b/bmc-addons/bmc-sasl/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-addons - 3.40.0 + 3.41.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 9f1dad40762..16fefe95a4a 100644 --- a/bmc-addons/bmc-sse-support-jersey3/pom.xml +++ b/bmc-addons/bmc-sse-support-jersey3/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.40.0 + 3.41.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.40.0 + 3.41.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.40.0 + 3.41.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index eda773ad3e8..bf66e5fc82a 100644 --- a/bmc-addons/bmc-sse-support/pom.xml +++ b/bmc-addons/bmc-sse-support/pom.xml @@ -5,7 +5,7 @@ oci-java-sdk-addons com.oracle.oci.sdk - 3.40.0 + 3.41.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.40.0 + 3.41.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index e35f9c928c2..8b399b6376b 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index 53338c7e9b5..650d1b46b60 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 9be5b387d21..9e328a5d661 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index a1bbe9d3fe3..83cb4165db2 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 85e51b51052..98160547dfb 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index d700e364877..2f846e63b70 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index 1ab8b86f0ea..4699a76775e 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index 8633bc46323..2bf7856cf87 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index d387324bb7a..34d2d5781ef 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 5b9a02dd7ae..725720561c5 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 6e09d68ab0f..8d33e3cc41a 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index e1e042708ce..2771c0f3783 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index af558398c29..33c100215a7 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 785079f8635..78d80acf7fd 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index 5e0b23f0365..e70cce110c3 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 9494911cd7c..b5ac4ecebbf 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 509d80946da..2d241e0c10f 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 928bed4aa3b..668d26583a5 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 23c5cdee8fd..05ee5f46f80 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 77947346915..dd6ddff8fef 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index eb8e298248a..8a6b03fc321 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index b9dece593af..9e4a7a471e7 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.40.0 + 3.41.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,915 +38,915 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.40.0 + 3.41.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.40.0 + 3.41.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index 0d0e94672eb..6e89d2bcf23 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 5500deccc29..8b99122162d 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index cd9cf1b7211..f127d458170 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index e7003880c44..df07a87c42c 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index 3eb6035928b..12247f51f2f 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index c7d16f0fd0e..03d68b0ba0d 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 23333f37f74..d91ce580cd2 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index ba1e40ab467..c1cd41c8ccb 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index dbfe41b6a9d..87b4d84b6b2 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 885390874b1..366e4c8337c 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml index 4ea333c498a..1f9780e8451 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.40.0 + 3.41.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.40.0 + 3.41.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.40.0 + 3.41.0 org.glassfish.jersey.core diff --git a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml index 4de99b9a488..f0b6e1c1124 100644 --- a/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml +++ b/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-choices - 3.40.0 + 3.41.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.40.0 + 3.41.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.40.0 + 3.41.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index 0f3e7cdede0..b1830662a73 100644 --- a/bmc-common-httpclient-choices/pom.xml +++ b/bmc-common-httpclient-choices/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index f73c8f454b1..020df370a51 100644 --- a/bmc-common-httpclient/pom.xml +++ b/bmc-common-httpclient/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index f4de854e614..11e480f8edf 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index 706477cf44f..a26ee174f79 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index ca801585557..a0f39e9dabd 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index d374d4ba4c7..7ac33269e6b 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index ac4be7fc9b5..2e2bf6bb49e 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 46ec9069856..fef616b8011 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.40.0 + 3.41.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index a644ecf0a10..4c54e524f61 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 3c9d58adaa3..15cd6c4d29b 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.40.0 + 3.41.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 24eb7be4bde..5d77d310884 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 @@ -4434,7 +4434,7 @@ ListExternalPluggableDatabasesResponse listExternalPluggableDatabases( ListFlexComponentsResponse listFlexComponents(ListFlexComponentsRequest request); /** - * Gets a list of supported GI versions for the Exadata Cloud@Customer VM cluster. + * Gets a list of supported GI versions. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation @@ -5935,7 +5935,7 @@ UpdateExternalPluggableDatabaseResponse updateExternalPluggableDatabase( UpdateExternalPluggableDatabaseRequest request); /** - * If no database is associated with the key store, edit the key store. + * Edit the key store. * * @param request The request object containing the details to send * @return A response object containing details about the completed operation 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 9aad0b29999..bbe23db630f 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 @@ -4482,7 +4482,7 @@ java.util.concurrent.Future listFlexComponents( handler); /** - * Gets a list of supported GI versions for the Exadata Cloud@Customer VM cluster. + * Gets a list of supported GI versions. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. @@ -6006,7 +6006,7 @@ java.util.concurrent.Future updateExadataIormCo handler); /** - * If no database is associated with the key store, edit the key store. + * Edit the key store. * * @param request The request object containing the details to send * @param handler The request handler to invoke upon completion, may be null. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java b/bmc-database/src/main/java/com/oracle/bmc/database/DatabaseAsyncClient.java index 2f131ee5333..8f0248ff0e9 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 @@ -8606,6 +8606,8 @@ public java.util.concurrent.Future listDataGu .appendQueryParam("displayName", request.getDisplayName()) .appendEnumQueryParam("imageType", request.getImageType()) .appendEnumQueryParam("imageShapeFamily", request.getImageShapeFamily()) + .appendQueryParam( + "patchSetGreaterThanOrEqualTo", request.getPatchSetGreaterThanOrEqualTo()) .appendQueryParam("isUpgradeSupported", request.getIsUpgradeSupported()) .accept("application/json") .handleBodyList( 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 e8aa1f13c0f..617391ee7fe 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 @@ -7711,6 +7711,8 @@ public ListDatabaseSoftwareImagesResponse listDatabaseSoftwareImages( .appendQueryParam("displayName", request.getDisplayName()) .appendEnumQueryParam("imageType", request.getImageType()) .appendEnumQueryParam("imageShapeFamily", request.getImageShapeFamily()) + .appendQueryParam( + "patchSetGreaterThanOrEqualTo", request.getPatchSetGreaterThanOrEqualTo()) .appendQueryParam("isUpgradeSupported", request.getIsUpgradeSupported()) .accept("application/json") .handleBodyList( diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java index fa464a81ba3..0351387db0e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabase.java @@ -1003,17 +1003,15 @@ public Builder timeOfLastBackup(java.util.Date timeOfLastBackup) { return this; } /** - * The value above which an Autonomous Database will be split across multiple nodes. This - * value defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater - * than 16. Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. + * The default value of this attribute is 16 for OCPUs and 64 for ECPUs. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") private Integer dbSplitThreshold; /** - * The value above which an Autonomous Database will be split across multiple nodes. This - * value defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater - * than 16. Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. + * The default value of this attribute is 16 for OCPUs and 64 for ECPUs. * * @param dbSplitThreshold the value to set * @return this builder @@ -1024,15 +1022,15 @@ public Builder dbSplitThreshold(Integer dbSplitThreshold) { return this; } /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of - * 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are + * 0%, 25%, and 50%, with 50% being the default option. */ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private Integer vmFailoverReservation; /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of - * 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are + * 0%, 25%, and 50%, with 50% being the default option. * * @param vmFailoverReservation the value to set * @return this builder @@ -1043,15 +1041,15 @@ public Builder vmFailoverReservation(Integer vmFailoverReservation) { return this; } /** - * This option determines whether to open an Autonomous Database across the maximum number - * of nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of + * nodes or the least number of nodes. By default, Minimum nodes is selected. */ @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") private DistributionAffinity distributionAffinity; /** - * This option determines whether to open an Autonomous Database across the maximum number - * of nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of + * nodes or the least number of nodes. By default, Minimum nodes is selected. * * @param distributionAffinity the value to set * @return this builder @@ -2377,17 +2375,15 @@ public java.util.Date getTimeOfLastBackup() { } /** - * The value above which an Autonomous Database will be split across multiple nodes. This value - * defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater than 16. - * Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The + * default value of this attribute is 16 for OCPUs and 64 for ECPUs. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") private final Integer dbSplitThreshold; /** - * The value above which an Autonomous Database will be split across multiple nodes. This value - * defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater than 16. - * Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The + * default value of this attribute is 16 for OCPUs and 64 for ECPUs. * * @return the value */ @@ -2396,13 +2392,15 @@ public Integer getDbSplitThreshold() { } /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, + * 25%, and 50%, with 50% being the default option. */ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private final Integer vmFailoverReservation; /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, + * 25%, and 50%, with 50% being the default option. * * @return the value */ @@ -2411,8 +2409,8 @@ public Integer getVmFailoverReservation() { } /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of nodes + * or the least number of nodes. By default, Minimum nodes is selected. */ public enum DistributionAffinity implements com.oracle.bmc.http.internal.BmcEnum { MinimumDistribution("MINIMUM_DISTRIBUTION"), @@ -2460,15 +2458,15 @@ public static DistributionAffinity create(String key) { } }; /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of nodes + * or the least number of nodes. By default, Minimum nodes is selected. */ @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") private final DistributionAffinity distributionAffinity; /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of nodes + * or the least number of nodes. By default, Minimum nodes is selected. * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java index 25b0d86869a..ca55e194e91 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/AutonomousContainerDatabaseSummary.java @@ -1006,17 +1006,15 @@ public Builder timeOfLastBackup(java.util.Date timeOfLastBackup) { return this; } /** - * The value above which an Autonomous Database will be split across multiple nodes. This - * value defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater - * than 16. Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. + * The default value of this attribute is 16 for OCPUs and 64 for ECPUs. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") private Integer dbSplitThreshold; /** - * The value above which an Autonomous Database will be split across multiple nodes. This - * value defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater - * than 16. Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. + * The default value of this attribute is 16 for OCPUs and 64 for ECPUs. * * @param dbSplitThreshold the value to set * @return this builder @@ -1027,15 +1025,15 @@ public Builder dbSplitThreshold(Integer dbSplitThreshold) { return this; } /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of - * 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are + * 0%, 25%, and 50%, with 50% being the default option. */ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private Integer vmFailoverReservation; /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of - * 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are + * 0%, 25%, and 50%, with 50% being the default option. * * @param vmFailoverReservation the value to set * @return this builder @@ -1046,15 +1044,15 @@ public Builder vmFailoverReservation(Integer vmFailoverReservation) { return this; } /** - * This option determines whether to open an Autonomous Database across the maximum number - * of nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of + * nodes or the least number of nodes. By default, Minimum nodes is selected. */ @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") private DistributionAffinity distributionAffinity; /** - * This option determines whether to open an Autonomous Database across the maximum number - * of nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of + * nodes or the least number of nodes. By default, Minimum nodes is selected. * * @param distributionAffinity the value to set * @return this builder @@ -2380,17 +2378,15 @@ public java.util.Date getTimeOfLastBackup() { } /** - * The value above which an Autonomous Database will be split across multiple nodes. This value - * defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater than 16. - * Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The + * default value of this attribute is 16 for OCPUs and 64 for ECPUs. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") private final Integer dbSplitThreshold; /** - * The value above which an Autonomous Database will be split across multiple nodes. This value - * defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater than 16. - * Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The + * default value of this attribute is 16 for OCPUs and 64 for ECPUs. * * @return the value */ @@ -2399,13 +2395,15 @@ public Integer getDbSplitThreshold() { } /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, + * 25%, and 50%, with 50% being the default option. */ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private final Integer vmFailoverReservation; /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, + * 25%, and 50%, with 50% being the default option. * * @return the value */ @@ -2414,8 +2412,8 @@ public Integer getVmFailoverReservation() { } /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of nodes + * or the least number of nodes. By default, Minimum nodes is selected. */ public enum DistributionAffinity implements com.oracle.bmc.http.internal.BmcEnum { MinimumDistribution("MINIMUM_DISTRIBUTION"), @@ -2463,15 +2461,15 @@ public static DistributionAffinity create(String key) { } }; /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of nodes + * or the least number of nodes. By default, Minimum nodes is selected. */ @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") private final DistributionAffinity distributionAffinity; /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across the maximum number of nodes + * or the least number of nodes. By default, Minimum nodes is selected. * * @return the value */ 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 212843cad7e..6f9fc9e659e 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 @@ -1500,21 +1500,29 @@ public Builder dbWorkload(DbWorkload dbWorkload) { return this; } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to - * use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For - * ADB-Dev , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use + * to build and test new applications.With Autonomous these database instancess instances, + * you can try new Autonomous Database features for free and apply them to ongoing or new + * development projects. Developer database comes with limited resources and is, therefore, + * not suitable for large-scale testing and production deployments. When you need more + * compute or storage resources, you can transition to a paid database licensing by cloning + * your developer database into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to - * use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For - * ADB-Dev , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use + * to build and test new applications.With Autonomous these database instancess instances, + * you can try new Autonomous Database features for free and apply them to ongoing or new + * development projects. Developer database comes with limited resources and is, therefore, + * not suitable for large-scale testing and production deployments. When you need more + * compute or storage resources, you can transition to a paid database licensing by cloning + * your developer database into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @param isDevTier the value to set * @return this builder @@ -2343,27 +2351,27 @@ public Builder timeLocalDataGuardEnabled(java.util.Date timeLocalDataGuardEnable return this; } /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby - * regions, and these region types do not change when the database changes roles. The - * standby regions in Autonomous Data Guard associations can be the same region designated - * as the primary region, or they can be remote regions. Certain database administrative - * operations may be available only in the primary region of the Autonomous Data Guard - * association, and cannot be performed when the database using the primary role is - * operating in a remote Autonomous Data Guard standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated + * primary and standby regions, and these region types do not change when the database + * changes roles. The standby regions in Autonomous Data Guard associations can be the same + * region designated as the primary region, or they can be remote regions. Certain database + * administrative operations may be available only in the primary region of the Autonomous + * Data Guard association, and cannot be performed when the database using the primary role + * is operating in a remote Autonomous Data Guard standby region. */ @com.fasterxml.jackson.annotation.JsonProperty("dataguardRegionType") private DataguardRegionType dataguardRegionType; /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby - * regions, and these region types do not change when the database changes roles. The - * standby regions in Autonomous Data Guard associations can be the same region designated - * as the primary region, or they can be remote regions. Certain database administrative - * operations may be available only in the primary region of the Autonomous Data Guard - * association, and cannot be performed when the database using the primary role is - * operating in a remote Autonomous Data Guard standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated + * primary and standby regions, and these region types do not change when the database + * changes roles. The standby regions in Autonomous Data Guard associations can be the same + * region designated as the primary region, or they can be remote regions. Certain database + * administrative operations may be available only in the primary region of the Autonomous + * Data Guard association, and cannot be performed when the database using the primary role + * is operating in a remote Autonomous Data Guard standby region. * * @param dataguardRegionType the value to set * @return this builder @@ -2738,25 +2746,25 @@ public Builder localDisasterRecoveryType( return this; } /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous - * Database Serverless instances, DR associations have designated primary and standby - * regions. These region types do not change when the database changes roles. The standby - * region in DR associations can be the same region as the primary region, or they can be in - * a remote regions. Some database administration operations may be available only in the - * primary region of the DR association, and cannot be performed when the database using the - * primary role is operating in a remote region. + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and + * standby regions. These region types do not change when the database changes roles. The + * standby region in DR associations can be the same region as the primary region, or they + * can be in a remote regions. Some database administration operations may be available only + * in the primary region of the DR association, and cannot be performed when the database + * using the primary role is operating in a remote region. */ @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryRegionType") private DisasterRecoveryRegionType disasterRecoveryRegionType; /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous - * Database Serverless instances, DR associations have designated primary and standby - * regions. These region types do not change when the database changes roles. The standby - * region in DR associations can be the same region as the primary region, or they can be in - * a remote regions. Some database administration operations may be available only in the - * primary region of the DR association, and cannot be performed when the database using the - * primary role is operating in a remote region. + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and + * standby regions. These region types do not change when the database changes roles. The + * standby region in DR associations can be the same region as the primary region, or they + * can be in a remote regions. Some database administration operations may be available only + * in the primary region of the DR association, and cannot be performed when the database + * using the primary role is operating in a remote region. * * @param disasterRecoveryRegionType the value to set * @return this builder @@ -4583,21 +4591,29 @@ public DbWorkload getDbWorkload() { } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @return the value */ @@ -5736,14 +5752,14 @@ public java.util.Date getTimeLocalDataGuardEnabled() { } /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby regions, - * and these region types do not change when the database changes roles. The standby regions in - * Autonomous Data Guard associations can be the same region designated as the primary region, - * or they can be remote regions. Certain database administrative operations may be available - * only in the primary region of the Autonomous Data Guard association, and cannot be performed - * when the database using the primary role is operating in a remote Autonomous Data Guard - * standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated primary + * and standby regions, and these region types do not change when the database changes roles. + * The standby regions in Autonomous Data Guard associations can be the same region designated + * as the primary region, or they can be remote regions. Certain database administrative + * operations may be available only in the primary region of the Autonomous Data Guard + * association, and cannot be performed when the database using the primary role is operating in + * a remote Autonomous Data Guard standby region. */ public enum DataguardRegionType implements com.oracle.bmc.http.internal.BmcEnum { PrimaryDgRegion("PRIMARY_DG_REGION"), @@ -5791,27 +5807,27 @@ public static DataguardRegionType create(String key) { } }; /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby regions, - * and these region types do not change when the database changes roles. The standby regions in - * Autonomous Data Guard associations can be the same region designated as the primary region, - * or they can be remote regions. Certain database administrative operations may be available - * only in the primary region of the Autonomous Data Guard association, and cannot be performed - * when the database using the primary role is operating in a remote Autonomous Data Guard - * standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated primary + * and standby regions, and these region types do not change when the database changes roles. + * The standby regions in Autonomous Data Guard associations can be the same region designated + * as the primary region, or they can be remote regions. Certain database administrative + * operations may be available only in the primary region of the Autonomous Data Guard + * association, and cannot be performed when the database using the primary role is operating in + * a remote Autonomous Data Guard standby region. */ @com.fasterxml.jackson.annotation.JsonProperty("dataguardRegionType") private final DataguardRegionType dataguardRegionType; /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby regions, - * and these region types do not change when the database changes roles. The standby regions in - * Autonomous Data Guard associations can be the same region designated as the primary region, - * or they can be remote regions. Certain database administrative operations may be available - * only in the primary region of the Autonomous Data Guard association, and cannot be performed - * when the database using the primary role is operating in a remote Autonomous Data Guard - * standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated primary + * and standby regions, and these region types do not change when the database changes roles. + * The standby regions in Autonomous Data Guard associations can be the same region designated + * as the primary region, or they can be remote regions. Certain database administrative + * operations may be available only in the primary region of the Autonomous Data Guard + * association, and cannot be performed when the database using the primary role is operating in + * a remote Autonomous Data Guard standby region. * * @return the value */ @@ -6240,10 +6256,10 @@ public DisasterRecoveryConfiguration.DisasterRecoveryType getLocalDisasterRecove } /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database - * Serverless instances, DR associations have designated primary and standby regions. These - * region types do not change when the database changes roles. The standby region in DR - * associations can be the same region as the primary region, or they can be in a remote + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and standby + * regions. These region types do not change when the database changes roles. The standby region + * in DR associations can be the same region as the primary region, or they can be in a remote * regions. Some database administration operations may be available only in the primary region * of the DR association, and cannot be performed when the database using the primary role is * operating in a remote region. @@ -6294,10 +6310,10 @@ public static DisasterRecoveryRegionType create(String key) { } }; /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database - * Serverless instances, DR associations have designated primary and standby regions. These - * region types do not change when the database changes roles. The standby region in DR - * associations can be the same region as the primary region, or they can be in a remote + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and standby + * regions. These region types do not change when the database changes roles. The standby region + * in DR associations can be the same region as the primary region, or they can be in a remote * regions. Some database administration operations may be available only in the primary region * of the DR association, and cannot be performed when the database using the primary role is * operating in a remote region. @@ -6306,10 +6322,10 @@ public static DisasterRecoveryRegionType create(String key) { private final DisasterRecoveryRegionType disasterRecoveryRegionType; /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database - * Serverless instances, DR associations have designated primary and standby regions. These - * region types do not change when the database changes roles. The standby region in DR - * associations can be the same region as the primary region, or they can be in a remote + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and standby + * regions. These region types do not change when the database changes roles. The standby region + * in DR associations can be the same region as the primary region, or they can be in a remote * regions. Some database administration operations may be available only in the primary region * of the DR association, and cannot be performed when the database using the primary role is * operating in a remote region. 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 a4ff66283d3..8a056021107 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 @@ -1503,21 +1503,29 @@ public Builder dbWorkload(DbWorkload dbWorkload) { return this; } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to - * use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For - * ADB-Dev , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use + * to build and test new applications.With Autonomous these database instancess instances, + * you can try new Autonomous Database features for free and apply them to ongoing or new + * development projects. Developer database comes with limited resources and is, therefore, + * not suitable for large-scale testing and production deployments. When you need more + * compute or storage resources, you can transition to a paid database licensing by cloning + * your developer database into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to - * use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For - * ADB-Dev , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use + * to build and test new applications.With Autonomous these database instancess instances, + * you can try new Autonomous Database features for free and apply them to ongoing or new + * development projects. Developer database comes with limited resources and is, therefore, + * not suitable for large-scale testing and production deployments. When you need more + * compute or storage resources, you can transition to a paid database licensing by cloning + * your developer database into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @param isDevTier the value to set * @return this builder @@ -2346,27 +2354,27 @@ public Builder timeLocalDataGuardEnabled(java.util.Date timeLocalDataGuardEnable return this; } /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby - * regions, and these region types do not change when the database changes roles. The - * standby regions in Autonomous Data Guard associations can be the same region designated - * as the primary region, or they can be remote regions. Certain database administrative - * operations may be available only in the primary region of the Autonomous Data Guard - * association, and cannot be performed when the database using the primary role is - * operating in a remote Autonomous Data Guard standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated + * primary and standby regions, and these region types do not change when the database + * changes roles. The standby regions in Autonomous Data Guard associations can be the same + * region designated as the primary region, or they can be remote regions. Certain database + * administrative operations may be available only in the primary region of the Autonomous + * Data Guard association, and cannot be performed when the database using the primary role + * is operating in a remote Autonomous Data Guard standby region. */ @com.fasterxml.jackson.annotation.JsonProperty("dataguardRegionType") private DataguardRegionType dataguardRegionType; /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby - * regions, and these region types do not change when the database changes roles. The - * standby regions in Autonomous Data Guard associations can be the same region designated - * as the primary region, or they can be remote regions. Certain database administrative - * operations may be available only in the primary region of the Autonomous Data Guard - * association, and cannot be performed when the database using the primary role is - * operating in a remote Autonomous Data Guard standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated + * primary and standby regions, and these region types do not change when the database + * changes roles. The standby regions in Autonomous Data Guard associations can be the same + * region designated as the primary region, or they can be remote regions. Certain database + * administrative operations may be available only in the primary region of the Autonomous + * Data Guard association, and cannot be performed when the database using the primary role + * is operating in a remote Autonomous Data Guard standby region. * * @param dataguardRegionType the value to set * @return this builder @@ -2741,25 +2749,25 @@ public Builder localDisasterRecoveryType( return this; } /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous - * Database Serverless instances, DR associations have designated primary and standby - * regions. These region types do not change when the database changes roles. The standby - * region in DR associations can be the same region as the primary region, or they can be in - * a remote regions. Some database administration operations may be available only in the - * primary region of the DR association, and cannot be performed when the database using the - * primary role is operating in a remote region. + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and + * standby regions. These region types do not change when the database changes roles. The + * standby region in DR associations can be the same region as the primary region, or they + * can be in a remote regions. Some database administration operations may be available only + * in the primary region of the DR association, and cannot be performed when the database + * using the primary role is operating in a remote region. */ @com.fasterxml.jackson.annotation.JsonProperty("disasterRecoveryRegionType") private DisasterRecoveryRegionType disasterRecoveryRegionType; /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous - * Database Serverless instances, DR associations have designated primary and standby - * regions. These region types do not change when the database changes roles. The standby - * region in DR associations can be the same region as the primary region, or they can be in - * a remote regions. Some database administration operations may be available only in the - * primary region of the DR association, and cannot be performed when the database using the - * primary role is operating in a remote region. + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and + * standby regions. These region types do not change when the database changes roles. The + * standby region in DR associations can be the same region as the primary region, or they + * can be in a remote regions. Some database administration operations may be available only + * in the primary region of the DR association, and cannot be performed when the database + * using the primary role is operating in a remote region. * * @param disasterRecoveryRegionType the value to set * @return this builder @@ -4586,21 +4594,29 @@ public DbWorkload getDbWorkload() { } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @return the value */ @@ -5739,14 +5755,14 @@ public java.util.Date getTimeLocalDataGuardEnabled() { } /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby regions, - * and these region types do not change when the database changes roles. The standby regions in - * Autonomous Data Guard associations can be the same region designated as the primary region, - * or they can be remote regions. Certain database administrative operations may be available - * only in the primary region of the Autonomous Data Guard association, and cannot be performed - * when the database using the primary role is operating in a remote Autonomous Data Guard - * standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated primary + * and standby regions, and these region types do not change when the database changes roles. + * The standby regions in Autonomous Data Guard associations can be the same region designated + * as the primary region, or they can be remote regions. Certain database administrative + * operations may be available only in the primary region of the Autonomous Data Guard + * association, and cannot be performed when the database using the primary role is operating in + * a remote Autonomous Data Guard standby region. */ public enum DataguardRegionType implements com.oracle.bmc.http.internal.BmcEnum { PrimaryDgRegion("PRIMARY_DG_REGION"), @@ -5794,27 +5810,27 @@ public static DataguardRegionType create(String key) { } }; /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby regions, - * and these region types do not change when the database changes roles. The standby regions in - * Autonomous Data Guard associations can be the same region designated as the primary region, - * or they can be remote regions. Certain database administrative operations may be available - * only in the primary region of the Autonomous Data Guard association, and cannot be performed - * when the database using the primary role is operating in a remote Autonomous Data Guard - * standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated primary + * and standby regions, and these region types do not change when the database changes roles. + * The standby regions in Autonomous Data Guard associations can be the same region designated + * as the primary region, or they can be remote regions. Certain database administrative + * operations may be available only in the primary region of the Autonomous Data Guard + * association, and cannot be performed when the database using the primary role is operating in + * a remote Autonomous Data Guard standby region. */ @com.fasterxml.jackson.annotation.JsonProperty("dataguardRegionType") private final DataguardRegionType dataguardRegionType; /** - * The Autonomous Data Guard region type of the Autonomous Database. For Autonomous Database - * Serverless, Autonomous Data Guard associations have designated primary and standby regions, - * and these region types do not change when the database changes roles. The standby regions in - * Autonomous Data Guard associations can be the same region designated as the primary region, - * or they can be remote regions. Certain database administrative operations may be available - * only in the primary region of the Autonomous Data Guard association, and cannot be performed - * when the database using the primary role is operating in a remote Autonomous Data Guard - * standby region. + * **Deprecated.** The Autonomous Data Guard region type of the Autonomous Database. For + * Autonomous Database Serverless, Autonomous Data Guard associations have designated primary + * and standby regions, and these region types do not change when the database changes roles. + * The standby regions in Autonomous Data Guard associations can be the same region designated + * as the primary region, or they can be remote regions. Certain database administrative + * operations may be available only in the primary region of the Autonomous Data Guard + * association, and cannot be performed when the database using the primary role is operating in + * a remote Autonomous Data Guard standby region. * * @return the value */ @@ -6243,10 +6259,10 @@ public DisasterRecoveryConfiguration.DisasterRecoveryType getLocalDisasterRecove } /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database - * Serverless instances, DR associations have designated primary and standby regions. These - * region types do not change when the database changes roles. The standby region in DR - * associations can be the same region as the primary region, or they can be in a remote + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and standby + * regions. These region types do not change when the database changes roles. The standby region + * in DR associations can be the same region as the primary region, or they can be in a remote * regions. Some database administration operations may be available only in the primary region * of the DR association, and cannot be performed when the database using the primary role is * operating in a remote region. @@ -6297,10 +6313,10 @@ public static DisasterRecoveryRegionType create(String key) { } }; /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database - * Serverless instances, DR associations have designated primary and standby regions. These - * region types do not change when the database changes roles. The standby region in DR - * associations can be the same region as the primary region, or they can be in a remote + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and standby + * regions. These region types do not change when the database changes roles. The standby region + * in DR associations can be the same region as the primary region, or they can be in a remote * regions. Some database administration operations may be available only in the primary region * of the DR association, and cannot be performed when the database using the primary role is * operating in a remote region. @@ -6309,10 +6325,10 @@ public static DisasterRecoveryRegionType create(String key) { private final DisasterRecoveryRegionType disasterRecoveryRegionType; /** - * The disaster recovery (DR) region type of the Autonomous Database. For Autonomous Database - * Serverless instances, DR associations have designated primary and standby regions. These - * region types do not change when the database changes roles. The standby region in DR - * associations can be the same region as the primary region, or they can be in a remote + * **Deprecated.** The disaster recovery (DR) region type of the Autonomous Database. For + * Autonomous Database Serverless instances, DR associations have designated primary and standby + * regions. These region types do not change when the database changes roles. The standby region + * in DR associations can be the same region as the primary region, or they can be in a remote * regions. Some database administration operations may be available only in the primary region * of the DR association, and cannot be performed when the database using the primary role is * operating in a remote region. diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java index 92a1522ed48..055570e461a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmCluster.java @@ -69,7 +69,8 @@ public final class CloudVmCluster "zoneId", "scanListenerPortTcp", "scanListenerPortTcpSsl", - "dataCollectionOptions" + "dataCollectionOptions", + "giSoftwareImageId" }) public CloudVmCluster( ExadataIormConfig iormConfigCache, @@ -118,7 +119,8 @@ public CloudVmCluster( String zoneId, Integer scanListenerPortTcp, Integer scanListenerPortTcpSsl, - DataCollectionOptions dataCollectionOptions) { + DataCollectionOptions dataCollectionOptions, + String giSoftwareImageId) { super(); this.iormConfigCache = iormConfigCache; this.id = id; @@ -167,6 +169,7 @@ public CloudVmCluster( this.scanListenerPortTcp = scanListenerPortTcp; this.scanListenerPortTcpSsl = scanListenerPortTcpSsl; this.dataCollectionOptions = dataCollectionOptions; + this.giSoftwareImageId = giSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1047,6 +1050,27 @@ public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions this.__explicitlySet__.add("dataCollectionOptions"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1100,7 +1124,8 @@ public CloudVmCluster build() { this.zoneId, this.scanListenerPortTcp, this.scanListenerPortTcpSsl, - this.dataCollectionOptions); + this.dataCollectionOptions, + this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1250,6 +1275,9 @@ public Builder copy(CloudVmCluster model) { if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { this.dataCollectionOptions(model.getDataCollectionOptions()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } return this; } } @@ -2185,6 +2213,25 @@ public DataCollectionOptions getDataCollectionOptions() { return dataCollectionOptions; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -2250,6 +2297,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", scanListenerPortTcp=").append(String.valueOf(this.scanListenerPortTcp)); sb.append(", scanListenerPortTcpSsl=").append(String.valueOf(this.scanListenerPortTcpSsl)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -2316,6 +2364,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.scanListenerPortTcpSsl, other.scanListenerPortTcpSsl) && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -2440,6 +2489,9 @@ public int hashCode() { + (this.dataCollectionOptions == null ? 43 : this.dataCollectionOptions.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java index 47d9349925a..9e2047d57c6 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CloudVmClusterSummary.java @@ -69,7 +69,8 @@ public final class CloudVmClusterSummary "zoneId", "scanListenerPortTcp", "scanListenerPortTcpSsl", - "dataCollectionOptions" + "dataCollectionOptions", + "giSoftwareImageId" }) public CloudVmClusterSummary( String id, @@ -117,7 +118,8 @@ public CloudVmClusterSummary( String zoneId, Integer scanListenerPortTcp, Integer scanListenerPortTcpSsl, - DataCollectionOptions dataCollectionOptions) { + DataCollectionOptions dataCollectionOptions, + String giSoftwareImageId) { super(); this.id = id; this.compartmentId = compartmentId; @@ -165,6 +167,7 @@ public CloudVmClusterSummary( this.scanListenerPortTcp = scanListenerPortTcp; this.scanListenerPortTcpSsl = scanListenerPortTcpSsl; this.dataCollectionOptions = dataCollectionOptions; + this.giSoftwareImageId = giSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -1036,6 +1039,27 @@ public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions this.__explicitlySet__.add("dataCollectionOptions"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -1088,7 +1112,8 @@ public CloudVmClusterSummary build() { this.zoneId, this.scanListenerPortTcp, this.scanListenerPortTcpSsl, - this.dataCollectionOptions); + this.dataCollectionOptions, + this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -1235,6 +1260,9 @@ public Builder copy(CloudVmClusterSummary model) { if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { this.dataCollectionOptions(model.getDataCollectionOptions()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } return this; } } @@ -2163,6 +2191,25 @@ public DataCollectionOptions getDataCollectionOptions() { return dataCollectionOptions; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -2227,6 +2274,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", scanListenerPortTcp=").append(String.valueOf(this.scanListenerPortTcp)); sb.append(", scanListenerPortTcpSsl=").append(String.valueOf(this.scanListenerPortTcpSsl)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -2292,6 +2340,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.scanListenerPortTcpSsl, other.scanListenerPortTcpSsl) && java.util.Objects.equals(this.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -2413,6 +2462,9 @@ public int hashCode() { + (this.dataCollectionOptions == null ? 43 : this.dataCollectionOptions.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseDetails.java index 903a8d8cde3..b3b2832c59c 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousContainerDatabaseDetails.java @@ -749,17 +749,15 @@ public Builder keyStoreId(String keyStoreId) { return this; } /** - * The value above which an Autonomous Database will be split across multiple nodes. This - * value defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater - * than 16. Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. + * The default value of this attribute is 16 for OCPUs and 64 for ECPUs. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") private Integer dbSplitThreshold; /** - * The value above which an Autonomous Database will be split across multiple nodes. This - * value defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater - * than 16. Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. + * The default value of this attribute is 16 for OCPUs and 64 for ECPUs. * * @param dbSplitThreshold the value to set * @return this builder @@ -770,15 +768,15 @@ public Builder dbSplitThreshold(Integer dbSplitThreshold) { return this; } /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of - * 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are + * 0%, 25%, and 50%, with 50% being the default option. */ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private Integer vmFailoverReservation; /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of - * 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are + * 0%, 25%, and 50%, with 50% being the default option. * * @param vmFailoverReservation the value to set * @return this builder @@ -789,15 +787,15 @@ public Builder vmFailoverReservation(Integer vmFailoverReservation) { return this; } /** - * This option determines whether to open an Autonomous Database across the maximum number - * of nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across a minimum or maximum of + * nodes. By default, Minimum nodes is selected. */ @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") private DistributionAffinity distributionAffinity; /** - * This option determines whether to open an Autonomous Database across the maximum number - * of nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across a minimum or maximum of + * nodes. By default, Minimum nodes is selected. * * @param distributionAffinity the value to set * @return this builder @@ -1674,17 +1672,15 @@ public String getKeyStoreId() { } /** - * The value above which an Autonomous Database will be split across multiple nodes. This value - * defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater than 16. - * Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The + * default value of this attribute is 16 for OCPUs and 64 for ECPUs. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSplitThreshold") private final Integer dbSplitThreshold; /** - * The value above which an Autonomous Database will be split across multiple nodes. This value - * defaults to 16 when the "CPU per VM" value on the Autonomous VM Cluster is greater than 16. - * Otherwise, it defaults to the "CPU per VM" value. + * The CPU value beyond which an Autonomous Database will be opened across multiple nodes. The + * default value of this attribute is 16 for OCPUs and 64 for ECPUs. * * @return the value */ @@ -1693,13 +1689,15 @@ public Integer getDbSplitThreshold() { } /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, + * 25%, and 50%, with 50% being the default option. */ @com.fasterxml.jackson.annotation.JsonProperty("vmFailoverReservation") private final Integer vmFailoverReservation; /** - * The percentage of CPUs to reserve for a single node Autonomous Database, in increments of 25. + * The percentage of CPUs reserved across nodes to support node failover. Allowed values are 0%, + * 25%, and 50%, with 50% being the default option. * * @return the value */ @@ -1708,8 +1706,8 @@ public Integer getVmFailoverReservation() { } /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across a minimum or maximum of + * nodes. By default, Minimum nodes is selected. */ public enum DistributionAffinity implements com.oracle.bmc.http.internal.BmcEnum { MinimumDistribution("MINIMUM_DISTRIBUTION"), @@ -1744,15 +1742,15 @@ public static DistributionAffinity create(String key) { } }; /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across a minimum or maximum of + * nodes. By default, Minimum nodes is selected. */ @com.fasterxml.jackson.annotation.JsonProperty("distributionAffinity") private final DistributionAffinity distributionAffinity; /** - * This option determines whether to open an Autonomous Database across the maximum number of - * nodes or the least number of nodes. The default will be for the minimum number of VMs. + * Determines whether an Autonomous Database must be opened across a minimum or maximum of + * nodes. By default, Minimum nodes is selected. * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java index 50a4235f072..b46808dc40e 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateAutonomousDatabaseBase.java @@ -879,21 +879,29 @@ public Boolean getIsAutoScalingEnabled() { } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @return the value */ @@ -1521,12 +1529,16 @@ public Boolean getIsAutoScalingForStorageEnabled() { return isAutoScalingForStorageEnabled; } - /** The Oracle Database Edition that applies to the Autonomous databases. */ + /** + * The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts + * options {@code STANDARD_EDITION} and {@code ENTERPRISE_EDITION}. + */ @com.fasterxml.jackson.annotation.JsonProperty("databaseEdition") private final AutonomousDatabaseSummary.DatabaseEdition databaseEdition; /** - * The Oracle Database Edition that applies to the Autonomous databases. + * The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts + * options {@code STANDARD_EDITION} and {@code ENTERPRISE_EDITION}. * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java index a9f07bdcfa3..bc80240d512 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionAutonomousDatabaseDataGuardDetails.java @@ -19,18 +19,7 @@ * contain the same values as the source Autonomous Database: - customerContacts - * scheduledOperations - isAutoScalingForStorageEnabled - definedTags - freeformTags - licenseModel * - whitelistedIps - isMtlsConnectionRequired - dbName - adminPassword - cpuCoreCount - - * dataStorageSizeInTB - dbVersion Example I - Creating a cross-region standby with required - * parameters only, with OCPU: {@code { "compartmentId": - * "ocid.compartment.oc1..<unique_ID>", "cpuCoreCount": 1, "dbName": - * "adatabasedb1", "sourceId": "ocid1.autonomousdatabase.oc1.phx..<unique_ID>", - * "dataStorageSizeInTBs": 1, "source": "CROSS_REGION_DATAGUARD", "adminPassword" : - * "<password>", }} Example II - Creating a cross-region standby that specifies - * optional parameters in addition to the required parameters, with ECPU: {@code { "compartmentId": - * "ocid.compartment.oc1..<unique_ID>", "computeModel": "ECPU", "computeCount": 2, - * "dbName": "adatabasedb1", "sourceId": - * "ocid1.autonomousdatabase.oc1.phx..<unique_ID>", "dataStorageSizeInTBs": 1, - * "source": "CROSS_REGION_DATAGUARD", "adminPassword" : "<password>", "dbVersion": - * "19c", "licenseModel": "LICENSE_INCLUDED", "isAutoScalingForStorageEnabled": "true" }}
+ * dataStorageSizeInTB - dbVersion
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -491,16 +480,16 @@ public Builder secretVersionNumber(Integer secretVersionNumber) { } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the - * Data Guard association. + * source Autonomous Database that will be used to create a new peer database for the Data + * Guard association. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceId") private String sourceId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the - * Data Guard association. + * source Autonomous Database that will be used to create a new peer database for the Data + * Guard association. * * @param sourceId the value to set * @return this builder @@ -841,16 +830,16 @@ public CreateCrossRegionAutonomousDatabaseDataGuardDetails( /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the Data - * Guard association. + * source Autonomous Database that will be used to create a new peer database for the Data Guard + * association. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceId") private final String sourceId; /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the Data - * Guard association. + * source Autonomous Database that will be used to create a new peer database for the Data Guard + * association. * * @return the value */ diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java index fd3d05a8f08..a28e5bff85b 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateCrossRegionDisasterRecoveryDetails.java @@ -18,18 +18,7 @@ * standby database. If included in the request, these parameters must contain the same values as * the source Autonomous Database: - dbName - dbVersion - ecpuCount - dataStorageSizeInTB - * customerContacts - scheduledOperations - isAutoScalingForStorageEnabled - definedTags - - * freeformTags - licenseModel - whitelistedIps - isMtlsConnectionRequired Example I - Creating a - * cross-region standby with required parameters only: {@code { "compartmentId": - * "ocid.compartment.oc1..<unique_ID>", "sourceId": - * "ocid1.autonomousdatabase.oc1.phx..<unique_ID>", "source": - * "CROSS_REGION_DISASTER_RECOVERY", "remoteDisasterRecoveryType": "BACKUP_BASED" }} Example II - - * Creating a cross-region standby that specifies optional parameters in addition to the required - * parameters: {@code { "compartmentId": "ocid.compartment.oc1..<unique_ID>", - * "ecpuCount": 2, "dbName": "adatabasedb1", "sourceId": - * "ocid1.autonomousdatabase.oc1.phx..<unique_ID>", "dataStorageSizeInTBs": 1, - * "source": "CROSS_REGION_DISASTER_RECOVERY", "adminPassword" : "<password>", - * "dbVersion": "19c", "licenseModel": "LICENSE_INCLUDED", "isAutoScalingForStorageEnabled": "true", - * "remoteDisasterRecoveryType": "BACKUP_BASED" }}
+ * freeformTags - licenseModel - whitelistedIps - isMtlsConnectionRequired
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -489,7 +478,7 @@ public Builder secretVersionNumber(Integer secretVersionNumber) { } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the DR + * source Autonomous Database that will be used to create a new peer database for the DR * association. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceId") @@ -497,7 +486,7 @@ public Builder secretVersionNumber(Integer secretVersionNumber) { /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the DR + * source Autonomous Database that will be used to create a new peer database for the DR * association. * * @param sourceId the value to set @@ -896,7 +885,7 @@ public CreateCrossRegionDisasterRecoveryDetails( /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the DR + * source Autonomous Database that will be used to create a new peer database for the DR * association. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceId") @@ -904,7 +893,7 @@ public CreateCrossRegionDisasterRecoveryDetails( /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * source Autonomous Database that will be used to create a new standby database for the DR + * source Autonomous Database that will be used to create a new peer database for the DR * association. * * @return the value diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeBase.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeBase.java index c572a49a9e3..8602e2f75b5 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeBase.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeBase.java @@ -52,7 +52,8 @@ public class CreateDbHomeBase extends com.oracle.bmc.http.client.internal.Explic "databaseSoftwareImageId", "freeformTags", "definedTags", - "isDesupportedVersion" + "isDesupportedVersion", + "isUnifiedAuditingEnabled" }) protected CreateDbHomeBase( String displayName, @@ -61,7 +62,8 @@ protected CreateDbHomeBase( String databaseSoftwareImageId, java.util.Map freeformTags, java.util.Map> definedTags, - Boolean isDesupportedVersion) { + Boolean isDesupportedVersion, + Boolean isUnifiedAuditingEnabled) { super(); this.displayName = displayName; this.kmsKeyId = kmsKeyId; @@ -70,6 +72,7 @@ protected CreateDbHomeBase( this.freeformTags = freeformTags; this.definedTags = definedTags; this.isDesupportedVersion = isDesupportedVersion; + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; } /** The user-provided name of the Database Home. */ @@ -201,6 +204,23 @@ public Boolean getIsDesupportedVersion() { return isDesupportedVersion; } + /** + * Indicates whether unified autiding is enabled or not. Set to True to enable unified auditing + * on respective DBHome. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private final Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. Set to True to enable unified auditing + * on respective DBHome. + * + * @return the value + */ + public Boolean getIsUnifiedAuditingEnabled() { + return isUnifiedAuditingEnabled; + } + @Override public String toString() { return this.toString(true); @@ -224,6 +244,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", isDesupportedVersion=").append(String.valueOf(this.isDesupportedVersion)); + sb.append(", isUnifiedAuditingEnabled=") + .append(String.valueOf(this.isUnifiedAuditingEnabled)); sb.append(")"); return sb.toString(); } @@ -246,6 +268,8 @@ 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.isDesupportedVersion, other.isDesupportedVersion) + && java.util.Objects.equals( + this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) && super.equals(other); } @@ -270,6 +294,11 @@ public int hashCode() { + (this.isDesupportedVersion == null ? 43 : this.isDesupportedVersion.hashCode()); + result = + (result * PRIME) + + (this.isUnifiedAuditingEnabled == null + ? 43 + : this.isUnifiedAuditingEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdDetails.java index 8fb75d1650d..a117c6373a0 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdDetails.java @@ -91,6 +91,15 @@ public Builder isDesupportedVersion(Boolean isDesupportedVersion) { this.__explicitlySet__.add("isDesupportedVersion"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * DB system. @@ -164,6 +173,7 @@ public CreateDbHomeWithDbSystemIdDetails build() { this.freeformTags, this.definedTags, this.isDesupportedVersion, + this.isUnifiedAuditingEnabled, this.dbSystemId, this.dbVersion, this.database); @@ -196,6 +206,9 @@ public Builder copy(CreateDbHomeWithDbSystemIdDetails model) { if (model.wasPropertyExplicitlySet("isDesupportedVersion")) { this.isDesupportedVersion(model.getIsDesupportedVersion()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } if (model.wasPropertyExplicitlySet("dbSystemId")) { this.dbSystemId(model.getDbSystemId()); } @@ -227,6 +240,7 @@ public CreateDbHomeWithDbSystemIdDetails( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isDesupportedVersion, + Boolean isUnifiedAuditingEnabled, String dbSystemId, String dbVersion, CreateDatabaseDetails database) { @@ -237,7 +251,8 @@ public CreateDbHomeWithDbSystemIdDetails( databaseSoftwareImageId, freeformTags, definedTags, - isDesupportedVersion); + isDesupportedVersion, + isUnifiedAuditingEnabled); this.dbSystemId = dbSystemId; this.dbVersion = dbVersion; this.database = database; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromBackupDetails.java index e9a62a62ae5..f47690c476f 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromBackupDetails.java @@ -91,6 +91,15 @@ public Builder isDesupportedVersion(Boolean isDesupportedVersion) { this.__explicitlySet__.add("isDesupportedVersion"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * DB system. @@ -133,6 +142,7 @@ public CreateDbHomeWithDbSystemIdFromBackupDetails build() { this.freeformTags, this.definedTags, this.isDesupportedVersion, + this.isUnifiedAuditingEnabled, this.dbSystemId, this.database); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -164,6 +174,9 @@ public Builder copy(CreateDbHomeWithDbSystemIdFromBackupDetails model) { if (model.wasPropertyExplicitlySet("isDesupportedVersion")) { this.isDesupportedVersion(model.getIsDesupportedVersion()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } if (model.wasPropertyExplicitlySet("dbSystemId")) { this.dbSystemId(model.getDbSystemId()); } @@ -192,6 +205,7 @@ public CreateDbHomeWithDbSystemIdFromBackupDetails( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isDesupportedVersion, + Boolean isUnifiedAuditingEnabled, String dbSystemId, CreateDatabaseFromBackupDetails database) { super( @@ -201,7 +215,8 @@ public CreateDbHomeWithDbSystemIdFromBackupDetails( databaseSoftwareImageId, freeformTags, definedTags, - isDesupportedVersion); + isDesupportedVersion, + isUnifiedAuditingEnabled); this.dbSystemId = dbSystemId; this.database = database; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromDatabaseDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromDatabaseDetails.java index 44789871919..8070c6df5c8 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromDatabaseDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithDbSystemIdFromDatabaseDetails.java @@ -91,6 +91,15 @@ public Builder isDesupportedVersion(Boolean isDesupportedVersion) { this.__explicitlySet__.add("isDesupportedVersion"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * DB system. @@ -133,6 +142,7 @@ public CreateDbHomeWithDbSystemIdFromDatabaseDetails build() { this.freeformTags, this.definedTags, this.isDesupportedVersion, + this.isUnifiedAuditingEnabled, this.dbSystemId, this.database); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -164,6 +174,9 @@ public Builder copy(CreateDbHomeWithDbSystemIdFromDatabaseDetails model) { if (model.wasPropertyExplicitlySet("isDesupportedVersion")) { this.isDesupportedVersion(model.getIsDesupportedVersion()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } if (model.wasPropertyExplicitlySet("dbSystemId")) { this.dbSystemId(model.getDbSystemId()); } @@ -192,6 +205,7 @@ public CreateDbHomeWithDbSystemIdFromDatabaseDetails( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isDesupportedVersion, + Boolean isUnifiedAuditingEnabled, String dbSystemId, CreateDatabaseFromAnotherDatabaseDetails database) { super( @@ -201,7 +215,8 @@ public CreateDbHomeWithDbSystemIdFromDatabaseDetails( databaseSoftwareImageId, freeformTags, definedTags, - isDesupportedVersion); + isDesupportedVersion, + isUnifiedAuditingEnabled); this.dbSystemId = dbSystemId; this.database = database; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdDetails.java index 9399deac215..9ecb67334b1 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdDetails.java @@ -91,6 +91,15 @@ public Builder isDesupportedVersion(Boolean isDesupportedVersion) { this.__explicitlySet__.add("isDesupportedVersion"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * VM cluster. @@ -164,6 +173,7 @@ public CreateDbHomeWithVmClusterIdDetails build() { this.freeformTags, this.definedTags, this.isDesupportedVersion, + this.isUnifiedAuditingEnabled, this.vmClusterId, this.dbVersion, this.database); @@ -196,6 +206,9 @@ public Builder copy(CreateDbHomeWithVmClusterIdDetails model) { if (model.wasPropertyExplicitlySet("isDesupportedVersion")) { this.isDesupportedVersion(model.getIsDesupportedVersion()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } @@ -227,6 +240,7 @@ public CreateDbHomeWithVmClusterIdDetails( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isDesupportedVersion, + Boolean isUnifiedAuditingEnabled, String vmClusterId, String dbVersion, CreateDatabaseDetails database) { @@ -237,7 +251,8 @@ public CreateDbHomeWithVmClusterIdDetails( databaseSoftwareImageId, freeformTags, definedTags, - isDesupportedVersion); + isDesupportedVersion, + isUnifiedAuditingEnabled); this.vmClusterId = vmClusterId; this.dbVersion = dbVersion; this.database = database; diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdFromBackupDetails.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdFromBackupDetails.java index 4a2b37f0de0..79fa786434d 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdFromBackupDetails.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/CreateDbHomeWithVmClusterIdFromBackupDetails.java @@ -91,6 +91,15 @@ public Builder isDesupportedVersion(Boolean isDesupportedVersion) { this.__explicitlySet__.add("isDesupportedVersion"); return this; } + + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } /** * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the * VM cluster. @@ -133,6 +142,7 @@ public CreateDbHomeWithVmClusterIdFromBackupDetails build() { this.freeformTags, this.definedTags, this.isDesupportedVersion, + this.isUnifiedAuditingEnabled, this.vmClusterId, this.database); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -164,6 +174,9 @@ public Builder copy(CreateDbHomeWithVmClusterIdFromBackupDetails model) { if (model.wasPropertyExplicitlySet("isDesupportedVersion")) { this.isDesupportedVersion(model.getIsDesupportedVersion()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } if (model.wasPropertyExplicitlySet("vmClusterId")) { this.vmClusterId(model.getVmClusterId()); } @@ -192,6 +205,7 @@ public CreateDbHomeWithVmClusterIdFromBackupDetails( java.util.Map freeformTags, java.util.Map> definedTags, Boolean isDesupportedVersion, + Boolean isUnifiedAuditingEnabled, String vmClusterId, CreateDatabaseFromBackupDetails database) { super( @@ -201,7 +215,8 @@ public CreateDbHomeWithVmClusterIdFromBackupDetails( databaseSoftwareImageId, freeformTags, definedTags, - isDesupportedVersion); + isDesupportedVersion, + isUnifiedAuditingEnabled); this.vmClusterId = vmClusterId; this.database = database; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java index 9b3db1b61fc..a687893cc6a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHome.java @@ -37,7 +37,8 @@ public final class DbHome extends com.oracle.bmc.http.client.internal.Explicitly "oneOffPatches", "freeformTags", "definedTags", - "databaseSoftwareImageId" + "databaseSoftwareImageId", + "isUnifiedAuditingEnabled" }) public DbHome( String id, @@ -55,7 +56,8 @@ public DbHome( java.util.List oneOffPatches, java.util.Map freeformTags, java.util.Map> definedTags, - String databaseSoftwareImageId) { + String databaseSoftwareImageId, + Boolean isUnifiedAuditingEnabled) { super(); this.id = id; this.compartmentId = compartmentId; @@ -73,6 +75,7 @@ public DbHome( this.freeformTags = freeformTags; this.definedTags = definedTags; this.databaseSoftwareImageId = databaseSoftwareImageId; + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -362,6 +365,21 @@ public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { this.__explicitlySet__.add("databaseSoftwareImageId"); return this; } + /** Indicates whether unified autiding is enabled or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. + * + * @param isUnifiedAuditingEnabled the value to set + * @return this builder + */ + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -384,7 +402,8 @@ public DbHome build() { this.oneOffPatches, this.freeformTags, this.definedTags, - this.databaseSoftwareImageId); + this.databaseSoftwareImageId, + this.isUnifiedAuditingEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -441,6 +460,9 @@ public Builder copy(DbHome model) { if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } return this; } } @@ -756,6 +778,19 @@ public String getDatabaseSoftwareImageId() { return databaseSoftwareImageId; } + /** Indicates whether unified autiding is enabled or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private final Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. + * + * @return the value + */ + public Boolean getIsUnifiedAuditingEnabled() { + return isUnifiedAuditingEnabled; + } + @Override public String toString() { return this.toString(true); @@ -789,6 +824,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); + sb.append(", isUnifiedAuditingEnabled=") + .append(String.valueOf(this.isUnifiedAuditingEnabled)); sb.append(")"); return sb.toString(); } @@ -821,6 +858,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) + && java.util.Objects.equals( + this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) && super.equals(other); } @@ -862,6 +901,11 @@ public int hashCode() { + (this.databaseSoftwareImageId == null ? 43 : this.databaseSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.isUnifiedAuditingEnabled == null + ? 43 + : this.isUnifiedAuditingEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java index 82f656beabf..6c707fdb93a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeFromAgentResourceId.java @@ -39,7 +39,8 @@ public final class DbHomeFromAgentResourceId "oneOffPatches", "freeformTags", "definedTags", - "databaseSoftwareImageId" + "databaseSoftwareImageId", + "isUnifiedAuditingEnabled" }) public DbHomeFromAgentResourceId( String id, @@ -57,7 +58,8 @@ public DbHomeFromAgentResourceId( java.util.List oneOffPatches, java.util.Map freeformTags, java.util.Map> definedTags, - String databaseSoftwareImageId) { + String databaseSoftwareImageId, + Boolean isUnifiedAuditingEnabled) { super(); this.id = id; this.compartmentId = compartmentId; @@ -75,6 +77,7 @@ public DbHomeFromAgentResourceId( this.freeformTags = freeformTags; this.definedTags = definedTags; this.databaseSoftwareImageId = databaseSoftwareImageId; + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -364,6 +367,21 @@ public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { this.__explicitlySet__.add("databaseSoftwareImageId"); return this; } + /** Indicates whether unified autiding is enabled or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. + * + * @param isUnifiedAuditingEnabled the value to set + * @return this builder + */ + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -386,7 +404,8 @@ public DbHomeFromAgentResourceId build() { this.oneOffPatches, this.freeformTags, this.definedTags, - this.databaseSoftwareImageId); + this.databaseSoftwareImageId, + this.isUnifiedAuditingEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -443,6 +462,9 @@ public Builder copy(DbHomeFromAgentResourceId model) { if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } return this; } } @@ -745,6 +767,19 @@ public String getDatabaseSoftwareImageId() { return databaseSoftwareImageId; } + /** Indicates whether unified autiding is enabled or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private final Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. + * + * @return the value + */ + public Boolean getIsUnifiedAuditingEnabled() { + return isUnifiedAuditingEnabled; + } + @Override public String toString() { return this.toString(true); @@ -778,6 +813,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); + sb.append(", isUnifiedAuditingEnabled=") + .append(String.valueOf(this.isUnifiedAuditingEnabled)); sb.append(")"); return sb.toString(); } @@ -810,6 +847,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) + && java.util.Objects.equals( + this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) && super.equals(other); } @@ -851,6 +890,11 @@ public int hashCode() { + (this.databaseSoftwareImageId == null ? 43 : this.databaseSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.isUnifiedAuditingEnabled == null + ? 43 + : this.isUnifiedAuditingEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java index 73fa8a17ac4..f8c9a07d575 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbHomeSummary.java @@ -50,7 +50,8 @@ public final class DbHomeSummary extends com.oracle.bmc.http.client.internal.Exp "oneOffPatches", "freeformTags", "definedTags", - "databaseSoftwareImageId" + "databaseSoftwareImageId", + "isUnifiedAuditingEnabled" }) public DbHomeSummary( String id, @@ -68,7 +69,8 @@ public DbHomeSummary( java.util.List oneOffPatches, java.util.Map freeformTags, java.util.Map> definedTags, - String databaseSoftwareImageId) { + String databaseSoftwareImageId, + Boolean isUnifiedAuditingEnabled) { super(); this.id = id; this.compartmentId = compartmentId; @@ -86,6 +88,7 @@ public DbHomeSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.databaseSoftwareImageId = databaseSoftwareImageId; + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -375,6 +378,21 @@ public Builder databaseSoftwareImageId(String databaseSoftwareImageId) { this.__explicitlySet__.add("databaseSoftwareImageId"); return this; } + /** Indicates whether unified autiding is enabled or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. + * + * @param isUnifiedAuditingEnabled the value to set + * @return this builder + */ + public Builder isUnifiedAuditingEnabled(Boolean isUnifiedAuditingEnabled) { + this.isUnifiedAuditingEnabled = isUnifiedAuditingEnabled; + this.__explicitlySet__.add("isUnifiedAuditingEnabled"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -397,7 +415,8 @@ public DbHomeSummary build() { this.oneOffPatches, this.freeformTags, this.definedTags, - this.databaseSoftwareImageId); + this.databaseSoftwareImageId, + this.isUnifiedAuditingEnabled); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -454,6 +473,9 @@ public Builder copy(DbHomeSummary model) { if (model.wasPropertyExplicitlySet("databaseSoftwareImageId")) { this.databaseSoftwareImageId(model.getDatabaseSoftwareImageId()); } + if (model.wasPropertyExplicitlySet("isUnifiedAuditingEnabled")) { + this.isUnifiedAuditingEnabled(model.getIsUnifiedAuditingEnabled()); + } return this; } } @@ -769,6 +791,19 @@ public String getDatabaseSoftwareImageId() { return databaseSoftwareImageId; } + /** Indicates whether unified autiding is enabled or not. */ + @com.fasterxml.jackson.annotation.JsonProperty("isUnifiedAuditingEnabled") + private final Boolean isUnifiedAuditingEnabled; + + /** + * Indicates whether unified autiding is enabled or not. + * + * @return the value + */ + public Boolean getIsUnifiedAuditingEnabled() { + return isUnifiedAuditingEnabled; + } + @Override public String toString() { return this.toString(true); @@ -802,6 +837,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", databaseSoftwareImageId=") .append(String.valueOf(this.databaseSoftwareImageId)); + sb.append(", isUnifiedAuditingEnabled=") + .append(String.valueOf(this.isUnifiedAuditingEnabled)); sb.append(")"); return sb.toString(); } @@ -834,6 +871,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals( this.databaseSoftwareImageId, other.databaseSoftwareImageId) + && java.util.Objects.equals( + this.isUnifiedAuditingEnabled, other.isUnifiedAuditingEnabled) && super.equals(other); } @@ -875,6 +914,11 @@ public int hashCode() { + (this.databaseSoftwareImageId == null ? 43 : this.databaseSoftwareImageId.hashCode()); + result = + (result * PRIME) + + (this.isUnifiedAuditingEnabled == null + ? 43 + : this.isUnifiedAuditingEnabled.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystem.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystem.java index 18c178ed87a..cd08703d4b2 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystem.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystem.java @@ -32,6 +32,7 @@ public final class DbSystem extends com.oracle.bmc.http.client.internal.Explicit "backupSubnetId", "nsgIds", "backupNetworkNsgIds", + "giSoftwareImageId", "memorySizeInGBs", "storageVolumePerformanceMode", "shape", @@ -83,6 +84,7 @@ public DbSystem( String backupSubnetId, java.util.List nsgIds, java.util.List backupNetworkNsgIds, + String giSoftwareImageId, Integer memorySizeInGBs, StorageVolumePerformanceMode storageVolumePerformanceMode, String shape, @@ -133,6 +135,7 @@ public DbSystem( this.backupSubnetId = backupSubnetId; this.nsgIds = nsgIds; this.backupNetworkNsgIds = backupNetworkNsgIds; + this.giSoftwareImageId = giSoftwareImageId; this.memorySizeInGBs = memorySizeInGBs; this.storageVolumePerformanceMode = storageVolumePerformanceMode; this.shape = shape; @@ -388,6 +391,27 @@ public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { this.__explicitlySet__.add("backupNetworkNsgIds"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } /** Memory allocated to the DB system, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") private Integer memorySizeInGBs; @@ -1103,6 +1127,7 @@ public DbSystem build() { this.backupSubnetId, this.nsgIds, this.backupNetworkNsgIds, + this.giSoftwareImageId, this.memorySizeInGBs, this.storageVolumePerformanceMode, this.shape, @@ -1180,6 +1205,9 @@ public Builder copy(DbSystem model) { if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) { this.backupNetworkNsgIds(model.getBackupNetworkNsgIds()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { this.memorySizeInGBs(model.getMemorySizeInGBs()); } @@ -1497,6 +1525,25 @@ public java.util.List getBackupNetworkNsgIds() { return backupNetworkNsgIds; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + /** Memory allocated to the DB system, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") private final Integer memorySizeInGBs; @@ -2384,6 +2431,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupSubnetId=").append(String.valueOf(this.backupSubnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); sb.append(", storageVolumePerformanceMode=") .append(String.valueOf(this.storageVolumePerformanceMode)); @@ -2450,6 +2498,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.backupSubnetId, other.backupSubnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) && java.util.Objects.equals( this.storageVolumePerformanceMode, other.storageVolumePerformanceMode) @@ -2524,6 +2573,9 @@ public int hashCode() { + (this.backupNetworkNsgIds == null ? 43 : this.backupNetworkNsgIds.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemSummary.java index 323c0209392..ccc7026ee97 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/DbSystemSummary.java @@ -63,6 +63,7 @@ public final class DbSystemSummary "backupSubnetId", "nsgIds", "backupNetworkNsgIds", + "giSoftwareImageId", "memorySizeInGBs", "storageVolumePerformanceMode", "shape", @@ -113,6 +114,7 @@ public DbSystemSummary( String backupSubnetId, java.util.List nsgIds, java.util.List backupNetworkNsgIds, + String giSoftwareImageId, Integer memorySizeInGBs, StorageVolumePerformanceMode storageVolumePerformanceMode, String shape, @@ -162,6 +164,7 @@ public DbSystemSummary( this.backupSubnetId = backupSubnetId; this.nsgIds = nsgIds; this.backupNetworkNsgIds = backupNetworkNsgIds; + this.giSoftwareImageId = giSoftwareImageId; this.memorySizeInGBs = memorySizeInGBs; this.storageVolumePerformanceMode = storageVolumePerformanceMode; this.shape = shape; @@ -408,6 +411,27 @@ public Builder backupNetworkNsgIds(java.util.List backupNetworkNsgIds) { this.__explicitlySet__.add("backupNetworkNsgIds"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } /** Memory allocated to the DB system, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") private Integer memorySizeInGBs; @@ -1122,6 +1146,7 @@ public DbSystemSummary build() { this.backupSubnetId, this.nsgIds, this.backupNetworkNsgIds, + this.giSoftwareImageId, this.memorySizeInGBs, this.storageVolumePerformanceMode, this.shape, @@ -1196,6 +1221,9 @@ public Builder copy(DbSystemSummary model) { if (model.wasPropertyExplicitlySet("backupNetworkNsgIds")) { this.backupNetworkNsgIds(model.getBackupNetworkNsgIds()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } if (model.wasPropertyExplicitlySet("memorySizeInGBs")) { this.memorySizeInGBs(model.getMemorySizeInGBs()); } @@ -1506,6 +1534,25 @@ public java.util.List getBackupNetworkNsgIds() { return backupNetworkNsgIds; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + /** Memory allocated to the DB system, in gigabytes. */ @com.fasterxml.jackson.annotation.JsonProperty("memorySizeInGBs") private final Integer memorySizeInGBs; @@ -2392,6 +2439,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupSubnetId=").append(String.valueOf(this.backupSubnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(", backupNetworkNsgIds=").append(String.valueOf(this.backupNetworkNsgIds)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(", memorySizeInGBs=").append(String.valueOf(this.memorySizeInGBs)); sb.append(", storageVolumePerformanceMode=") .append(String.valueOf(this.storageVolumePerformanceMode)); @@ -2457,6 +2505,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.backupSubnetId, other.backupSubnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && java.util.Objects.equals(this.backupNetworkNsgIds, other.backupNetworkNsgIds) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && java.util.Objects.equals(this.memorySizeInGBs, other.memorySizeInGBs) && java.util.Objects.equals( this.storageVolumePerformanceMode, other.storageVolumePerformanceMode) @@ -2528,6 +2577,9 @@ public int hashCode() { + (this.backupNetworkNsgIds == null ? 43 : this.backupNetworkNsgIds.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + (this.memorySizeInGBs == null ? 43 : this.memorySizeInGBs.hashCode()); 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 17deb50c621..341436cadc7 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 @@ -319,21 +319,29 @@ public Builder longTermBackupSchedule( return this; } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to - * use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For - * ADB-Dev , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use + * to build and test new applications.With Autonomous these database instancess instances, + * you can try new Autonomous Database features for free and apply them to ongoing or new + * development projects. Developer database comes with limited resources and is, therefore, + * not suitable for large-scale testing and production deployments. When you need more + * compute or storage resources, you can transition to a paid database licensing by cloning + * your developer database into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to - * use ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For - * ADB-Dev , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use + * to build and test new applications.With Autonomous these database instancess instances, + * you can try new Autonomous Database features for free and apply them to ongoing or new + * development projects. Developer database comes with limited resources and is, therefore, + * not suitable for large-scale testing and production deployments. When you need more + * compute or storage resources, you can transition to a paid database licensing by cloning + * your developer database into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @param isDevTier the value to set * @return this builder @@ -1572,7 +1580,8 @@ public Builder isAutoScalingForStorageEnabled(Boolean isAutoScalingForStorageEna return this; } /** - * The Oracle Database Edition that applies to the Autonomous databases. + * The Oracle Database Edition that applies to the Autonomous databases. This parameter + * accepts options {@code STANDARD_EDITION} and {@code ENTERPRISE_EDITION}. * *

This cannot be updated in parallel with any of the following: cpuCoreCount, * computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, @@ -1583,7 +1592,8 @@ public Builder isAutoScalingForStorageEnabled(Boolean isAutoScalingForStorageEna private AutonomousDatabaseSummary.DatabaseEdition databaseEdition; /** - * The Oracle Database Edition that applies to the Autonomous databases. + * The Oracle Database Edition that applies to the Autonomous databases. This parameter + * accepts options {@code STANDARD_EDITION} and {@code ENTERPRISE_EDITION}. * *

This cannot be updated in parallel with any of the following: cpuCoreCount, * computeCount, computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, @@ -2043,21 +2053,29 @@ public LongTermBackUpScheduleDetails getLongTermBackupSchedule() { } /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. */ @com.fasterxml.jackson.annotation.JsonProperty("isDevTier") private final Boolean isDevTier; /** - * This project introduces Autonomous Database for Developers (ADB-Dev), a free tier on - * dedicated infrastructure, and Cloud@Customer for database development purposes. ADB-Dev - * enables ExaDB customers to experiment with ADB for free and incentivizes enterprises to use - * ADB for new development projects.Note that ADB-Dev have 4 CPU and 20GB of memory. For ADB-Dev - * , memory and CPU cannot be scaled + * Autonomous Database for Developers are free Autonomous Databases that developers can use to + * build and test new applications.With Autonomous these database instancess instances, you can + * try new Autonomous Database features for free and apply them to ongoing or new development + * projects. Developer database comes with limited resources and is, therefore, not suitable for + * large-scale testing and production deployments. When you need more compute or storage + * resources, you can transition to a paid database licensing by cloning your developer database + * into a regular Autonomous Database. See [Autonomous Database + * documentation](https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/eddjo/index.html) + * for more details. * * @return the value */ @@ -3391,7 +3409,8 @@ public Boolean getIsAutoScalingForStorageEnabled() { } /** - * The Oracle Database Edition that applies to the Autonomous databases. + * The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts + * options {@code STANDARD_EDITION} and {@code ENTERPRISE_EDITION}. * *

This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, * computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, dbWorkload, @@ -3402,7 +3421,8 @@ public Boolean getIsAutoScalingForStorageEnabled() { private final AutonomousDatabaseSummary.DatabaseEdition databaseEdition; /** - * The Oracle Database Edition that applies to the Autonomous databases. + * The Oracle Database Edition that applies to the Autonomous databases. This parameter accepts + * options {@code STANDARD_EDITION} and {@code ENTERPRISE_EDITION}. * *

This cannot be updated in parallel with any of the following: cpuCoreCount, computeCount, * computeModel, adminPassword, whitelistedIps, isMTLSConnectionRequired, dbWorkload, 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 2b32fb1db32..9559d50fab9 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 @@ -23,11 +23,12 @@ com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class UpdateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"updateId", "updateAction"}) - public UpdateDetails(String updateId, UpdateAction updateAction) { + @java.beans.ConstructorProperties({"updateId", "updateAction", "giSoftwareImageId"}) + public UpdateDetails(String updateId, UpdateAction updateAction, String giSoftwareImageId) { super(); this.updateId = updateId; this.updateAction = updateAction; + this.giSoftwareImageId = giSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -66,12 +67,34 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateDetails build() { - UpdateDetails model = new UpdateDetails(this.updateId, this.updateAction); + UpdateDetails model = + new UpdateDetails(this.updateId, this.updateAction, this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -86,6 +109,9 @@ public Builder copy(UpdateDetails model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } return this; } } @@ -164,6 +190,25 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -181,6 +226,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -197,6 +243,7 @@ public boolean equals(Object o) { UpdateDetails other = (UpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -206,6 +253,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java index 3791b8348a8..e41d597e75a 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmCluster.java @@ -49,7 +49,8 @@ public final class VmCluster extends com.oracle.bmc.http.client.internal.Explici "availabilityDomain", "freeformTags", "definedTags", - "dataCollectionOptions" + "dataCollectionOptions", + "giSoftwareImageId" }) public VmCluster( String id, @@ -79,7 +80,8 @@ public VmCluster( String availabilityDomain, java.util.Map freeformTags, java.util.Map> definedTags, - DataCollectionOptions dataCollectionOptions) { + DataCollectionOptions dataCollectionOptions, + String giSoftwareImageId) { super(); this.id = id; this.compartmentId = compartmentId; @@ -109,6 +111,7 @@ public VmCluster( this.freeformTags = freeformTags; this.definedTags = definedTags; this.dataCollectionOptions = dataCollectionOptions; + this.giSoftwareImageId = giSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -588,6 +591,27 @@ public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions this.__explicitlySet__.add("dataCollectionOptions"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -622,7 +646,8 @@ public VmCluster build() { this.availabilityDomain, this.freeformTags, this.definedTags, - this.dataCollectionOptions); + this.dataCollectionOptions, + this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -715,6 +740,9 @@ public Builder copy(VmCluster model) { if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { this.dataCollectionOptions(model.getDataCollectionOptions()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } return this; } } @@ -1239,6 +1267,25 @@ public DataCollectionOptions getDataCollectionOptions() { return dataCollectionOptions; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -1285,6 +1332,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -1331,6 +1379,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.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -1418,6 +1467,9 @@ public int hashCode() { + (this.dataCollectionOptions == null ? 43 : this.dataCollectionOptions.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java index ecf17eb417a..0b0616913ed 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/model/VmClusterSummary.java @@ -50,7 +50,8 @@ public final class VmClusterSummary "availabilityDomain", "freeformTags", "definedTags", - "dataCollectionOptions" + "dataCollectionOptions", + "giSoftwareImageId" }) public VmClusterSummary( String id, @@ -80,7 +81,8 @@ public VmClusterSummary( String availabilityDomain, java.util.Map freeformTags, java.util.Map> definedTags, - DataCollectionOptions dataCollectionOptions) { + DataCollectionOptions dataCollectionOptions, + String giSoftwareImageId) { super(); this.id = id; this.compartmentId = compartmentId; @@ -110,6 +112,7 @@ public VmClusterSummary( this.freeformTags = freeformTags; this.definedTags = definedTags; this.dataCollectionOptions = dataCollectionOptions; + this.giSoftwareImageId = giSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -589,6 +592,27 @@ public Builder dataCollectionOptions(DataCollectionOptions dataCollectionOptions this.__explicitlySet__.add("dataCollectionOptions"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -623,7 +647,8 @@ public VmClusterSummary build() { this.availabilityDomain, this.freeformTags, this.definedTags, - this.dataCollectionOptions); + this.dataCollectionOptions, + this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -716,6 +741,9 @@ public Builder copy(VmClusterSummary model) { if (model.wasPropertyExplicitlySet("dataCollectionOptions")) { this.dataCollectionOptions(model.getDataCollectionOptions()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } return this; } } @@ -1240,6 +1268,25 @@ public DataCollectionOptions getDataCollectionOptions() { return dataCollectionOptions; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -1286,6 +1333,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", dataCollectionOptions=").append(String.valueOf(this.dataCollectionOptions)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -1332,6 +1380,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.dataCollectionOptions, other.dataCollectionOptions) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -1419,6 +1468,9 @@ public int hashCode() { + (this.dataCollectionOptions == null ? 43 : this.dataCollectionOptions.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.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 126d16e9014..46a1efa7b91 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 @@ -24,11 +24,13 @@ public final class VmClusterUpdateDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"updateId", "updateAction"}) - public VmClusterUpdateDetails(String updateId, UpdateAction updateAction) { + @java.beans.ConstructorProperties({"updateId", "updateAction", "giSoftwareImageId"}) + public VmClusterUpdateDetails( + String updateId, UpdateAction updateAction, String giSoftwareImageId) { super(); this.updateId = updateId; this.updateAction = updateAction; + this.giSoftwareImageId = giSoftwareImageId; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -67,13 +69,35 @@ public Builder updateAction(UpdateAction updateAction) { this.__explicitlySet__.add("updateAction"); return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a + * grid infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @param giSoftwareImageId the value to set + * @return this builder + */ + public Builder giSoftwareImageId(String giSoftwareImageId) { + this.giSoftwareImageId = giSoftwareImageId; + this.__explicitlySet__.add("giSoftwareImageId"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public VmClusterUpdateDetails build() { VmClusterUpdateDetails model = - new VmClusterUpdateDetails(this.updateId, this.updateAction); + new VmClusterUpdateDetails( + this.updateId, this.updateAction, this.giSoftwareImageId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -88,6 +112,9 @@ public Builder copy(VmClusterUpdateDetails model) { if (model.wasPropertyExplicitlySet("updateAction")) { this.updateAction(model.getUpdateAction()); } + if (model.wasPropertyExplicitlySet("giSoftwareImageId")) { + this.giSoftwareImageId(model.getGiSoftwareImageId()); + } return this; } } @@ -165,6 +192,25 @@ public UpdateAction getUpdateAction() { return updateAction; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + */ + @com.fasterxml.jackson.annotation.JsonProperty("giSoftwareImageId") + private final String giSoftwareImageId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a grid + * infrastructure software image. This is a database software image of the type {@code + * GRID_IMAGE}. + * + * @return the value + */ + public String getGiSoftwareImageId() { + return giSoftwareImageId; + } + @Override public String toString() { return this.toString(true); @@ -182,6 +228,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("updateId=").append(String.valueOf(this.updateId)); sb.append(", updateAction=").append(String.valueOf(this.updateAction)); + sb.append(", giSoftwareImageId=").append(String.valueOf(this.giSoftwareImageId)); sb.append(")"); return sb.toString(); } @@ -198,6 +245,7 @@ public boolean equals(Object o) { VmClusterUpdateDetails other = (VmClusterUpdateDetails) o; return java.util.Objects.equals(this.updateId, other.updateId) && java.util.Objects.equals(this.updateAction, other.updateAction) + && java.util.Objects.equals(this.giSoftwareImageId, other.giSoftwareImageId) && super.equals(other); } @@ -207,6 +255,9 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.updateId == null ? 43 : this.updateId.hashCode()); result = (result * PRIME) + (this.updateAction == null ? 43 : this.updateAction.hashCode()); + result = + (result * PRIME) + + (this.giSoftwareImageId == null ? 43 : this.giSoftwareImageId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabaseSoftwareImagesRequest.java b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabaseSoftwareImagesRequest.java index ee9f7a17bcf..98d00e5d672 100644 --- a/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabaseSoftwareImagesRequest.java +++ b/bmc-database/src/main/java/com/oracle/bmc/database/requests/ListDatabaseSoftwareImagesRequest.java @@ -45,18 +45,19 @@ public String getPage() { /** * 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. + * order is case sensitive. Default order for PATCHSET is descending. */ 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. + * order is case sensitive. Default order for PATCHSET is descending. */ public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { Timecreated("TIMECREATED"), Displayname("DISPLAYNAME"), + Patchset("PATCHSET"), ; private final String value; @@ -90,7 +91,7 @@ public static SortBy create(String 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. + * order is case sensitive. Default order for PATCHSET is descending. */ public SortBy getSortBy() { return sortBy; @@ -174,6 +175,17 @@ public com.oracle.bmc.database.model.DatabaseSoftwareImageSummary.ImageType getI getImageShapeFamily() { return imageShapeFamily; } + /** + * A filter to return only resources with {@code patchSet} greater than or equal to given value. + */ + private String patchSetGreaterThanOrEqualTo; + + /** + * A filter to return only resources with {@code patchSet} greater than or equal to given value. + */ + public String getPatchSetGreaterThanOrEqualTo() { + return patchSetGreaterThanOrEqualTo; + } /** * If provided, filters the results to the set of database versions which are supported for * Upgrade. @@ -243,14 +255,14 @@ public Builder page(String 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. + * DISPLAYNAME sort order is case sensitive. Default order for PATCHSET is descending. */ 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. + * DISPLAYNAME sort order is case sensitive. Default order for PATCHSET is descending. * * @param sortBy the value to set * @return this builder instance @@ -342,6 +354,24 @@ public Builder imageShapeFamily( return this; } + /** + * A filter to return only resources with {@code patchSet} greater than or equal to given + * value. + */ + private String patchSetGreaterThanOrEqualTo = null; + + /** + * A filter to return only resources with {@code patchSet} greater than or equal to given + * value. + * + * @param patchSetGreaterThanOrEqualTo the value to set + * @return this builder instance + */ + public Builder patchSetGreaterThanOrEqualTo(String patchSetGreaterThanOrEqualTo) { + this.patchSetGreaterThanOrEqualTo = patchSetGreaterThanOrEqualTo; + return this; + } + /** * If provided, filters the results to the set of database versions which are supported for * Upgrade. @@ -399,6 +429,7 @@ public Builder copy(ListDatabaseSoftwareImagesRequest o) { displayName(o.getDisplayName()); imageType(o.getImageType()); imageShapeFamily(o.getImageShapeFamily()); + patchSetGreaterThanOrEqualTo(o.getPatchSetGreaterThanOrEqualTo()); isUpgradeSupported(o.getIsUpgradeSupported()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); @@ -443,10 +474,12 @@ public ListDatabaseSoftwareImagesRequest buildWithoutInvocationCallback() { request.displayName = displayName; request.imageType = imageType; request.imageShapeFamily = imageShapeFamily; + request.patchSetGreaterThanOrEqualTo = patchSetGreaterThanOrEqualTo; request.isUpgradeSupported = isUpgradeSupported; return request; // new ListDatabaseSoftwareImagesRequest(compartmentId, limit, page, sortBy, sortOrder, - // lifecycleState, displayName, imageType, imageShapeFamily, isUpgradeSupported); + // lifecycleState, displayName, imageType, imageShapeFamily, + // patchSetGreaterThanOrEqualTo, isUpgradeSupported); } } @@ -466,6 +499,7 @@ public Builder toBuilder() { .displayName(displayName) .imageType(imageType) .imageShapeFamily(imageShapeFamily) + .patchSetGreaterThanOrEqualTo(patchSetGreaterThanOrEqualTo) .isUpgradeSupported(isUpgradeSupported); } @@ -492,6 +526,8 @@ public String toString() { sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",imageType=").append(String.valueOf(this.imageType)); sb.append(",imageShapeFamily=").append(String.valueOf(this.imageShapeFamily)); + sb.append(",patchSetGreaterThanOrEqualTo=") + .append(String.valueOf(this.patchSetGreaterThanOrEqualTo)); sb.append(",isUpgradeSupported=").append(String.valueOf(this.isUpgradeSupported)); sb.append(")"); return sb.toString(); @@ -517,6 +553,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.imageType, other.imageType) && java.util.Objects.equals(this.imageShapeFamily, other.imageShapeFamily) + && java.util.Objects.equals( + this.patchSetGreaterThanOrEqualTo, other.patchSetGreaterThanOrEqualTo) && java.util.Objects.equals(this.isUpgradeSupported, other.isUpgradeSupported); } @@ -539,6 +577,11 @@ public int hashCode() { result = (result * PRIME) + (this.imageShapeFamily == null ? 43 : this.imageShapeFamily.hashCode()); + result = + (result * PRIME) + + (this.patchSetGreaterThanOrEqualTo == null + ? 43 + : this.patchSetGreaterThanOrEqualTo.hashCode()); result = (result * PRIME) + (this.isUpgradeSupported == null diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 3a5e0d68cf0..0b8ad65bbc8 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java index 62cb1270061..9f44fd31f89 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagement.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. @@ -750,6 +750,41 @@ DisableAutomaticInitialPlanCaptureResponse disableAutomaticInitialPlanCapture( DisableAutomaticSpmEvolveAdvisorTaskResponse disableAutomaticSpmEvolveAdvisorTask( DisableAutomaticSpmEvolveAdvisorTaskRequest request); + /** + * Disables a Database Management feature for the specified Oracle cloud 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 + * DisableDatabaseManagementFeature API. + */ + DisableDatabaseManagementFeatureResponse disableDatabaseManagementFeature( + DisableDatabaseManagementFeatureRequest request); + + /** + * Disables a Database Management feature for the specified external container 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 + * DisableExternalContainerDatabaseManagementFeature API. + */ + DisableExternalContainerDatabaseManagementFeatureResponse + disableExternalContainerDatabaseManagementFeature( + DisableExternalContainerDatabaseManagementFeatureRequest request); + /** * Disables Database Management service for all the components of the specified external DB * system (except databases). @@ -810,6 +845,42 @@ DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemStackMonit disableExternalExadataInfrastructureManagement( DisableExternalExadataInfrastructureManagementRequest request); + /** + * Disables a Database Management feature for the specified external non-container 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 + * DisableExternalNonContainerDatabaseManagementFeature API. + */ + DisableExternalNonContainerDatabaseManagementFeatureResponse + disableExternalNonContainerDatabaseManagementFeature( + DisableExternalNonContainerDatabaseManagementFeatureRequest request); + + /** + * Disables a Database Management feature for the specified external pluggable 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 + * DisableExternalPluggableDatabaseManagementFeature API. + */ + DisableExternalPluggableDatabaseManagementFeatureResponse + disableExternalPluggableDatabaseManagementFeature( + DisableExternalPluggableDatabaseManagementFeatureRequest request); + /** * Disables the high-frequency Automatic SPM Evolve Advisor task. * @@ -831,6 +902,23 @@ DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemStackMonit disableHighFrequencyAutomaticSpmEvolveAdvisorTask( DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest request); + /** + * Disables a Database Management feature for the specified Oracle cloud pluggable 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 + * DisablePluggableDatabaseManagementFeature API. + */ + DisablePluggableDatabaseManagementFeatureResponse disablePluggableDatabaseManagementFeature( + DisablePluggableDatabaseManagementFeatureRequest request); + /** * Disables the use of SQL plan baselines stored in SQL Management Base. * @@ -970,6 +1058,41 @@ EnableAutomaticInitialPlanCaptureResponse enableAutomaticInitialPlanCapture( EnableAutomaticSpmEvolveAdvisorTaskResponse enableAutomaticSpmEvolveAdvisorTask( EnableAutomaticSpmEvolveAdvisorTaskRequest request); + /** + * Enables a Database Management feature for the specified cloud 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 + * EnableDatabaseManagementFeature API. + */ + EnableDatabaseManagementFeatureResponse enableDatabaseManagementFeature( + EnableDatabaseManagementFeatureRequest request); + + /** + * Enables a Database Management feature for the specified external container 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 + * EnableExternalContainerDatabaseManagementFeature API. + */ + EnableExternalContainerDatabaseManagementFeatureResponse + enableExternalContainerDatabaseManagementFeature( + EnableExternalContainerDatabaseManagementFeatureRequest request); + /** * Enables Database Management service for all the components of the specified external DB * system (except databases). @@ -1027,6 +1150,42 @@ EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStackMonitor enableExternalExadataInfrastructureManagement( EnableExternalExadataInfrastructureManagementRequest request); + /** + * Enables Database Management feature for the specified external non-container 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 + * EnableExternalNonContainerDatabaseManagementFeature API. + */ + EnableExternalNonContainerDatabaseManagementFeatureResponse + enableExternalNonContainerDatabaseManagementFeature( + EnableExternalNonContainerDatabaseManagementFeatureRequest request); + + /** + * Enables a Database Management feature for the specified external pluggable 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 + * EnableExternalPluggableDatabaseManagementFeature API. + */ + EnableExternalPluggableDatabaseManagementFeatureResponse + enableExternalPluggableDatabaseManagementFeature( + EnableExternalPluggableDatabaseManagementFeatureRequest request); + /** * Enables the high-frequency Automatic SPM Evolve Advisor task. The high-frequency task runs * every hour and runs for no longer than 30 minutes. These settings are not configurable. @@ -1052,6 +1211,23 @@ EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStackMonitor enableHighFrequencyAutomaticSpmEvolveAdvisorTask( EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskRequest request); + /** + * Enables a Database Management feature for the specified Oracle cloud pluggable 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 + * EnablePluggableDatabaseManagementFeature API. + */ + EnablePluggableDatabaseManagementFeatureResponse enablePluggableDatabaseManagementFeature( + EnablePluggableDatabaseManagementFeatureRequest request); + /** * Enables the use of SQL plan baselines stored in SQL Management Base. * @@ -2653,6 +2829,40 @@ LoadSqlPlanBaselinesFromAwrResponse loadSqlPlanBaselinesFromAwr( LoadSqlPlanBaselinesFromCursorCacheResponse loadSqlPlanBaselinesFromCursorCache( LoadSqlPlanBaselinesFromCursorCacheRequest request); + /** + * Modifies a Database Management feature for the specified Oracle cloud 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 + * ModifyDatabaseManagementFeature API. + */ + ModifyDatabaseManagementFeatureResponse modifyDatabaseManagementFeature( + ModifyDatabaseManagementFeatureRequest request); + + /** + * Modifies the Database Management feature for the specified Oracle cloud pluggable 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 + * ModifyPluggableDatabaseManagementFeature API. + */ + ModifyPluggableDatabaseManagementFeatureResponse modifyPluggableDatabaseManagementFeature( + ModifyPluggableDatabaseManagementFeatureRequest request); + /** * Patches the external DB system discovery specified by `externalDbSystemDiscoveryId`. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java index 392d8305beb..be988743670 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsync.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public interface DbManagementAsync extends AutoCloseable { @@ -759,6 +759,42 @@ java.util.concurrent.Future deletePreferredCr DisableAutomaticSpmEvolveAdvisorTaskResponse> handler); + /** + * Disables a Database Management feature for the specified Oracle cloud 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 + disableDatabaseManagementFeature( + DisableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableDatabaseManagementFeatureRequest, + DisableDatabaseManagementFeatureResponse> + handler); + + /** + * Disables a Database Management feature for the specified external container 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 + disableExternalContainerDatabaseManagementFeature( + DisableExternalContainerDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalContainerDatabaseManagementFeatureRequest, + DisableExternalContainerDatabaseManagementFeatureResponse> + handler); + /** * Disables Database Management service for all the components of the specified external DB * system (except databases). @@ -821,6 +857,42 @@ java.util.concurrent.Future deletePreferredCr DisableExternalExadataInfrastructureManagementResponse> handler); + /** + * Disables a Database Management feature for the specified external non-container 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 + disableExternalNonContainerDatabaseManagementFeature( + DisableExternalNonContainerDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalNonContainerDatabaseManagementFeatureRequest, + DisableExternalNonContainerDatabaseManagementFeatureResponse> + handler); + + /** + * Disables a Database Management feature for the specified external pluggable 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 + disableExternalPluggableDatabaseManagementFeature( + DisableExternalPluggableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisableExternalPluggableDatabaseManagementFeatureRequest, + DisableExternalPluggableDatabaseManagementFeatureResponse> + handler); + /** * Disables the high-frequency Automatic SPM Evolve Advisor task. * @@ -842,6 +914,24 @@ java.util.concurrent.Future deletePreferredCr DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse> handler); + /** + * Disables a Database Management feature for the specified Oracle cloud pluggable 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 + disablePluggableDatabaseManagementFeature( + DisablePluggableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + DisablePluggableDatabaseManagementFeatureRequest, + DisablePluggableDatabaseManagementFeatureResponse> + handler); + /** * Disables the use of SQL plan baselines stored in SQL Management Base. * @@ -984,6 +1074,42 @@ java.util.concurrent.Future dropTablespace( EnableAutomaticSpmEvolveAdvisorTaskResponse> handler); + /** + * Enables a Database Management feature for the specified cloud 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 + enableDatabaseManagementFeature( + EnableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableDatabaseManagementFeatureRequest, + EnableDatabaseManagementFeatureResponse> + handler); + + /** + * Enables a Database Management feature for the specified external container 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 + enableExternalContainerDatabaseManagementFeature( + EnableExternalContainerDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalContainerDatabaseManagementFeatureRequest, + EnableExternalContainerDatabaseManagementFeatureResponse> + handler); + /** * Enables Database Management service for all the components of the specified external DB * system (except databases). @@ -1043,6 +1169,42 @@ java.util.concurrent.Future dropTablespace( EnableExternalExadataInfrastructureManagementResponse> handler); + /** + * Enables Database Management feature for the specified external non-container 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 + enableExternalNonContainerDatabaseManagementFeature( + EnableExternalNonContainerDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalNonContainerDatabaseManagementFeatureRequest, + EnableExternalNonContainerDatabaseManagementFeatureResponse> + handler); + + /** + * Enables a Database Management feature for the specified external pluggable 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 + enableExternalPluggableDatabaseManagementFeature( + EnableExternalPluggableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnableExternalPluggableDatabaseManagementFeatureRequest, + EnableExternalPluggableDatabaseManagementFeatureResponse> + handler); + /** * Enables the high-frequency Automatic SPM Evolve Advisor task. The high-frequency task runs * every hour and runs for no longer than 30 minutes. These settings are not configurable. @@ -1068,6 +1230,24 @@ java.util.concurrent.Future dropTablespace( EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse> handler); + /** + * Enables a Database Management feature for the specified Oracle cloud pluggable 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 + enablePluggableDatabaseManagementFeature( + EnablePluggableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + EnablePluggableDatabaseManagementFeatureRequest, + EnablePluggableDatabaseManagementFeatureResponse> + handler); + /** * Enables the use of SQL plan baselines stored in SQL Management Base. * @@ -2663,6 +2843,42 @@ java.util.concurrent.Future loadSqlPlanBase LoadSqlPlanBaselinesFromCursorCacheResponse> handler); + /** + * Modifies a Database Management feature for the specified Oracle cloud 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 + modifyDatabaseManagementFeature( + ModifyDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ModifyDatabaseManagementFeatureRequest, + ModifyDatabaseManagementFeatureResponse> + handler); + + /** + * Modifies the Database Management feature for the specified Oracle cloud pluggable 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 + modifyPluggableDatabaseManagementFeature( + ModifyPluggableDatabaseManagementFeatureRequest request, + com.oracle.bmc.responses.AsyncHandler< + ModifyPluggableDatabaseManagementFeatureRequest, + ModifyPluggableDatabaseManagementFeatureResponse> + handler); + /** * Patches the external DB system discovery specified by `externalDbSystemDiscoveryId`. * diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java index 49abf2ed753..d8000211db7 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementAsyncClient.java @@ -1526,6 +1526,93 @@ public java.util.concurrent.Future deletePref .callAsync(handler); } + @Override + public java.util.concurrent.Future + disableDatabaseManagementFeature( + DisableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableDatabaseManagementFeatureRequest, + DisableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + Objects.requireNonNull( + request.getDisableDatabaseManagementFeatureDetails(), + "disableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, DisableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + disableExternalContainerDatabaseManagementFeature( + DisableExternalContainerDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalContainerDatabaseManagementFeatureRequest, + DisableExternalContainerDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalContainerDatabaseManagementFeatureDetails(), + "disableExternalContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, DisableExternalContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableExternalContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableExternalContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalcontainerdatabases") + .appendPathParam(request.getExternalContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future disableExternalDbSystemDatabaseManagement( @@ -1641,6 +1728,100 @@ public java.util.concurrent.Future deletePref .callAsync(handler); } + @Override + public java.util.concurrent.Future + disableExternalNonContainerDatabaseManagementFeature( + DisableExternalNonContainerDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalNonContainerDatabaseManagementFeatureRequest, + DisableExternalNonContainerDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalNonContainerDatabaseManagementFeatureDetails(), + "disableExternalNonContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, + DisableExternalNonContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableExternalNonContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableExternalNonContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalNonContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + DisableExternalNonContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalnoncontainerdatabases") + .appendPathParam(request.getExternalNonContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + disableExternalPluggableDatabaseManagementFeature( + DisableExternalPluggableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisableExternalPluggableDatabaseManagementFeatureRequest, + DisableExternalPluggableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalPluggableDatabaseManagementFeatureDetails(), + "disableExternalPluggableDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, DisableExternalPluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableExternalPluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableExternalPluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalPluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalPluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalpluggabledatabases") + .appendPathParam(request.getExternalPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future disableHighFrequencyAutomaticSpmEvolveAdvisorTask( @@ -1680,6 +1861,48 @@ public java.util.concurrent.Future deletePref .callAsync(handler); } + @Override + public java.util.concurrent.Future + disablePluggableDatabaseManagementFeature( + DisablePluggableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DisablePluggableDatabaseManagementFeatureRequest, + DisablePluggableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getPluggableDatabaseId(), "pluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisablePluggableDatabaseManagementFeatureDetails(), + "disablePluggableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, DisablePluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disablePluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisablePluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisablePluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisablePluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("pluggabledatabases") + .appendPathParam(request.getPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisablePluggableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisablePluggableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future disableSqlPlanBaselinesUsage( @@ -1907,6 +2130,93 @@ public java.util.concurrent.Future dropTablespace( .callAsync(handler); } + @Override + public java.util.concurrent.Future + enableDatabaseManagementFeature( + EnableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableDatabaseManagementFeatureRequest, + EnableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + Objects.requireNonNull( + request.getEnableDatabaseManagementFeatureDetails(), + "enableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, EnableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + enableExternalContainerDatabaseManagementFeature( + EnableExternalContainerDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableExternalContainerDatabaseManagementFeatureRequest, + EnableExternalContainerDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalContainerDatabaseManagementFeatureDetails(), + "enableExternalContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, EnableExternalContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableExternalContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableExternalContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalcontainerdatabases") + .appendPathParam(request.getExternalContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future enableExternalDbSystemDatabaseManagement( @@ -2033,6 +2343,99 @@ public java.util.concurrent.Future dropTablespace( .callAsync(handler); } + @Override + public java.util.concurrent.Future + enableExternalNonContainerDatabaseManagementFeature( + EnableExternalNonContainerDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableExternalNonContainerDatabaseManagementFeatureRequest, + EnableExternalNonContainerDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalNonContainerDatabaseManagementFeatureDetails(), + "enableExternalNonContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, + EnableExternalNonContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableExternalNonContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableExternalNonContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalNonContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalNonContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalnoncontainerdatabases") + .appendPathParam(request.getExternalNonContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + enableExternalPluggableDatabaseManagementFeature( + EnableExternalPluggableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnableExternalPluggableDatabaseManagementFeatureRequest, + EnableExternalPluggableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalPluggableDatabaseManagementFeatureDetails(), + "enableExternalPluggableDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, EnableExternalPluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableExternalPluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableExternalPluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalPluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalPluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalpluggabledatabases") + .appendPathParam(request.getExternalPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future enableHighFrequencyAutomaticSpmEvolveAdvisorTask( @@ -2072,6 +2475,48 @@ public java.util.concurrent.Future dropTablespace( .callAsync(handler); } + @Override + public java.util.concurrent.Future + enablePluggableDatabaseManagementFeature( + EnablePluggableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + EnablePluggableDatabaseManagementFeatureRequest, + EnablePluggableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getPluggableDatabaseId(), "pluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnablePluggableDatabaseManagementFeatureDetails(), + "enablePluggableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, EnablePluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enablePluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnablePluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnablePluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnablePluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("pluggabledatabases") + .appendPathParam(request.getPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnablePluggableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnablePluggableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future enableSqlPlanBaselinesUsage( @@ -4245,6 +4690,7 @@ public java.util.concurrent.Future listExternalDa .appendPathParam("externalDatabases") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("externalDbSystemId", request.getExternalDbSystemId()) + .appendQueryParam("externalDatabaseId", request.getExternalDatabaseId()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) @@ -5688,6 +6134,89 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + modifyDatabaseManagementFeature( + ModifyDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ModifyDatabaseManagementFeatureRequest, + ModifyDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + Objects.requireNonNull( + request.getModifyDatabaseManagementFeatureDetails(), + "modifyDatabaseManagementFeatureDetails is required"); + + return clientCall(request, ModifyDatabaseManagementFeatureResponse::builder) + .logger(LOG, "modifyDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "ModifyDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ModifyDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("actions") + .appendPathParam("modifyDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ModifyDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ModifyDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + modifyPluggableDatabaseManagementFeature( + ModifyPluggableDatabaseManagementFeatureRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ModifyPluggableDatabaseManagementFeatureRequest, + ModifyPluggableDatabaseManagementFeatureResponse> + handler) { + + Validate.notBlank( + request.getPluggableDatabaseId(), "pluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getModifyPluggableDatabaseManagementFeatureDetails(), + "modifyPluggableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, ModifyPluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "modifyPluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "ModifyPluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyPluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ModifyPluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("pluggabledatabases") + .appendPathParam(request.getPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("modifyDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ModifyPluggableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ModifyPluggableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future patchExternalDbSystemDiscovery( diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java index 53e114bc1e6..519796ed495 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DbManagementClient.java @@ -1396,6 +1396,86 @@ public DisableAutomaticSpmEvolveAdvisorTaskResponse disableAutomaticSpmEvolveAdv .callSync(); } + @Override + public DisableDatabaseManagementFeatureResponse disableDatabaseManagementFeature( + DisableDatabaseManagementFeatureRequest request) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + Objects.requireNonNull( + request.getDisableDatabaseManagementFeatureDetails(), + "disableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, DisableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public DisableExternalContainerDatabaseManagementFeatureResponse + disableExternalContainerDatabaseManagementFeature( + DisableExternalContainerDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalContainerDatabaseManagementFeatureDetails(), + "disableExternalContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, DisableExternalContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableExternalContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableExternalContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalcontainerdatabases") + .appendPathParam(request.getExternalContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + @Override public DisableExternalDbSystemDatabaseManagementResponse disableExternalDbSystemDatabaseManagement( @@ -1501,6 +1581,94 @@ public DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemSta .callSync(); } + @Override + public DisableExternalNonContainerDatabaseManagementFeatureResponse + disableExternalNonContainerDatabaseManagementFeature( + DisableExternalNonContainerDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalNonContainerDatabaseManagementFeatureDetails(), + "disableExternalNonContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, + DisableExternalNonContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableExternalNonContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableExternalNonContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalNonContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder( + DisableExternalNonContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalnoncontainerdatabases") + .appendPathParam(request.getExternalNonContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + + @Override + public DisableExternalPluggableDatabaseManagementFeatureResponse + disableExternalPluggableDatabaseManagementFeature( + DisableExternalPluggableDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisableExternalPluggableDatabaseManagementFeatureDetails(), + "disableExternalPluggableDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, DisableExternalPluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disableExternalPluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisableExternalPluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisableExternalPluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisableExternalPluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalpluggabledatabases") + .appendPathParam(request.getExternalPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + @Override public DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse disableHighFrequencyAutomaticSpmEvolveAdvisorTask( @@ -1536,6 +1704,45 @@ public DisableExternalDbSystemStackMonitoringResponse disableExternalDbSystemSta .callSync(); } + @Override + public DisablePluggableDatabaseManagementFeatureResponse + disablePluggableDatabaseManagementFeature( + DisablePluggableDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getPluggableDatabaseId(), "pluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getDisablePluggableDatabaseManagementFeatureDetails(), + "disablePluggableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, DisablePluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "disablePluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "DisablePluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/DisablePluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(DisablePluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("pluggabledatabases") + .appendPathParam(request.getPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("disableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + DisablePluggableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + DisablePluggableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public DisableSqlPlanBaselinesUsageResponse disableSqlPlanBaselinesUsage( DisableSqlPlanBaselinesUsageRequest request) { @@ -1736,6 +1943,86 @@ public EnableAutomaticSpmEvolveAdvisorTaskResponse enableAutomaticSpmEvolveAdvis .callSync(); } + @Override + public EnableDatabaseManagementFeatureResponse enableDatabaseManagementFeature( + EnableDatabaseManagementFeatureRequest request) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + Objects.requireNonNull( + request.getEnableDatabaseManagementFeatureDetails(), + "enableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, EnableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public EnableExternalContainerDatabaseManagementFeatureResponse + enableExternalContainerDatabaseManagementFeature( + EnableExternalContainerDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getExternalContainerDatabaseId(), + "externalContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalContainerDatabaseManagementFeatureDetails(), + "enableExternalContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, EnableExternalContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableExternalContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableExternalContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalcontainerdatabases") + .appendPathParam(request.getExternalContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + @Override public EnableExternalDbSystemDatabaseManagementResponse enableExternalDbSystemDatabaseManagement( @@ -1852,6 +2139,93 @@ public EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStack .callSync(); } + @Override + public EnableExternalNonContainerDatabaseManagementFeatureResponse + enableExternalNonContainerDatabaseManagementFeature( + EnableExternalNonContainerDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getExternalNonContainerDatabaseId(), + "externalNonContainerDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalNonContainerDatabaseManagementFeatureDetails(), + "enableExternalNonContainerDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, + EnableExternalNonContainerDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableExternalNonContainerDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableExternalNonContainerDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalNonContainerDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalNonContainerDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalnoncontainerdatabases") + .appendPathParam(request.getExternalNonContainerDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalNonContainerDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + + @Override + public EnableExternalPluggableDatabaseManagementFeatureResponse + enableExternalPluggableDatabaseManagementFeature( + EnableExternalPluggableDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getExternalPluggableDatabaseId(), + "externalPluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnableExternalPluggableDatabaseManagementFeatureDetails(), + "enableExternalPluggableDatabaseManagementFeatureDetails is required"); + + return clientCall( + request, EnableExternalPluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enableExternalPluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnableExternalPluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnableExternalPluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnableExternalPluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("externalpluggabledatabases") + .appendPathParam(request.getExternalPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnableExternalPluggableDatabaseManagementFeatureResponse.Builder + ::opcWorkRequestId) + .callSync(); + } + @Override public EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskResponse enableHighFrequencyAutomaticSpmEvolveAdvisorTask( @@ -1887,6 +2261,45 @@ public EnableExternalDbSystemStackMonitoringResponse enableExternalDbSystemStack .callSync(); } + @Override + public EnablePluggableDatabaseManagementFeatureResponse + enablePluggableDatabaseManagementFeature( + EnablePluggableDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getPluggableDatabaseId(), "pluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getEnablePluggableDatabaseManagementFeatureDetails(), + "enablePluggableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, EnablePluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "enablePluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "EnablePluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/EnablePluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(EnablePluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("pluggabledatabases") + .appendPathParam(request.getPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("enableDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + EnablePluggableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + EnablePluggableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public EnableSqlPlanBaselinesUsageResponse enableSqlPlanBaselinesUsage( EnableSqlPlanBaselinesUsageRequest request) { @@ -3856,6 +4269,7 @@ public ListExternalDatabasesResponse listExternalDatabases( .appendPathParam("externalDatabases") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("externalDbSystemId", request.getExternalDbSystemId()) + .appendQueryParam("externalDatabaseId", request.getExternalDatabaseId()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("page", request.getPage()) .appendQueryParam("limit", request.getLimit()) @@ -5174,6 +5588,82 @@ public LoadSqlPlanBaselinesFromCursorCacheResponse loadSqlPlanBaselinesFromCurso .callSync(); } + @Override + public ModifyDatabaseManagementFeatureResponse modifyDatabaseManagementFeature( + ModifyDatabaseManagementFeatureRequest request) { + + Validate.notBlank(request.getDatabaseId(), "databaseId must not be blank"); + Objects.requireNonNull( + request.getModifyDatabaseManagementFeatureDetails(), + "modifyDatabaseManagementFeatureDetails is required"); + + return clientCall(request, ModifyDatabaseManagementFeatureResponse::builder) + .logger(LOG, "modifyDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "ModifyDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ModifyDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("databases") + .appendPathParam(request.getDatabaseId()) + .appendPathParam("actions") + .appendPathParam("modifyDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ModifyDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ModifyDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + + @Override + public ModifyPluggableDatabaseManagementFeatureResponse + modifyPluggableDatabaseManagementFeature( + ModifyPluggableDatabaseManagementFeatureRequest request) { + + Validate.notBlank( + request.getPluggableDatabaseId(), "pluggableDatabaseId must not be blank"); + Objects.requireNonNull( + request.getModifyPluggableDatabaseManagementFeatureDetails(), + "modifyPluggableDatabaseManagementFeatureDetails is required"); + + return clientCall(request, ModifyPluggableDatabaseManagementFeatureResponse::builder) + .logger(LOG, "modifyPluggableDatabaseManagementFeature") + .serviceDetails( + "DbManagement", + "ModifyPluggableDatabaseManagementFeature", + "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ModifyPluggableDatabaseManagementFeature") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ModifyPluggableDatabaseManagementFeatureRequest::builder) + .basePath("/20201101") + .appendPathParam("pluggabledatabases") + .appendPathParam(request.getPluggableDatabaseId()) + .appendPathParam("actions") + .appendPathParam("modifyDatabaseManagement") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("if-match", request.getIfMatch()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ModifyPluggableDatabaseManagementFeatureResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", + ModifyPluggableDatabaseManagementFeatureResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public PatchExternalDbSystemDiscoveryResponse patchExternalDbSystemDiscovery( PatchExternalDbSystemDiscoveryRequest request) { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Diagnosability.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Diagnosability.java index 4a0061c4bb4..d52a45e3772 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Diagnosability.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Diagnosability.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsync.java index 94be34877b1..195d05a1d98 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/DiagnosabilityAsync.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public interface DiagnosabilityAsync extends AutoCloseable { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java index da8c3ccfc24..5fd43ef7ede 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabases.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java index c96de854077..7521537b31d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/ManagedMySqlDatabasesAsync.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public interface ManagedMySqlDatabasesAsync extends AutoCloseable { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Perfhub.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Perfhub.java index aed1675114a..2749a1623cf 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Perfhub.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/Perfhub.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsync.java index 8fcbe577505..367a56b5721 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/PerfhubAsync.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public interface PerfhubAsync extends AutoCloseable { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuning.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuning.java index e236ff19b3e..5a366a54817 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuning.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuning.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). * *

This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by * default if no circuit breaker configuration is defined by the user. diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsync.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsync.java index bb6bfbdd2c3..52542d1473e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsync.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/SqlTuningAsync.java @@ -8,9 +8,9 @@ import com.oracle.bmc.databasemanagement.responses.*; /** - * Use the Database Management API to perform tasks such as obtaining performance and resource usage - * metrics for a fleet of Managed Databases or a specific Managed Database, creating Managed - * Database Groups, and running a SQL job on a Managed Database or Managed Database Group. + * Use the Database Management API to monitor and manage resources such as Oracle Databases, MySQL + * Databases, and External Database Systems. For more information, see [Database + * Management](https://docs.cloud.oracle.com/iaas/database-management/home.htm). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") public interface SqlTuningAsync extends AutoCloseable { diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java new file mode 100644 index 00000000000..b706be688b7 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/BasicDatabaseConnectionStringDetails.java @@ -0,0 +1,240 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the Oracle Database basic connection string.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = BasicDatabaseConnectionStringDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class BasicDatabaseConnectionStringDetails extends DatabaseConnectionStringDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The service name of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("service") + private String service; + + /** + * The service name of the database. + * + * @param service the value to set + * @return this builder + */ + public Builder service(String service) { + this.service = service; + this.__explicitlySet__.add("service"); + return this; + } + /** The port number used to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port number used to connect to the database. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** The protocol used to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private Protocol protocol; + + /** + * The protocol used to connect to the database. + * + * @param protocol the value to set + * @return this builder + */ + public Builder protocol(Protocol protocol) { + this.protocol = protocol; + this.__explicitlySet__.add("protocol"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public BasicDatabaseConnectionStringDetails build() { + BasicDatabaseConnectionStringDetails model = + new BasicDatabaseConnectionStringDetails( + this.service, this.port, this.protocol); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(BasicDatabaseConnectionStringDetails model) { + if (model.wasPropertyExplicitlySet("service")) { + this.service(model.getService()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("protocol")) { + this.protocol(model.getProtocol()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public BasicDatabaseConnectionStringDetails(String service, Integer port, Protocol protocol) { + super(); + this.service = service; + this.port = port; + this.protocol = protocol; + } + + /** The service name of the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("service") + private final String service; + + /** + * The service name of the database. + * + * @return the value + */ + public String getService() { + return service; + } + + /** The port number used to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port number used to connect to the database. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** The protocol used to connect to the database. */ + public enum Protocol implements com.oracle.bmc.http.internal.BmcEnum { + Tcp("TCP"), + Tcps("TCPS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Protocol v : Protocol.values()) { + map.put(v.getValue(), v); + } + } + + Protocol(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Protocol create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Protocol: " + key); + } + }; + /** The protocol used to connect to the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("protocol") + private final Protocol protocol; + + /** + * The protocol used to connect to the database. + * + * @return the value + */ + public Protocol getProtocol() { + return protocol; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("BasicDatabaseConnectionStringDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", service=").append(String.valueOf(this.service)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", protocol=").append(String.valueOf(this.protocol)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof BasicDatabaseConnectionStringDetails)) { + return false; + } + + BasicDatabaseConnectionStringDetails other = (BasicDatabaseConnectionStringDetails) o; + return java.util.Objects.equals(this.service, other.service) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.protocol, other.protocol) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.service == null ? 43 : this.service.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.protocol == null ? 43 : this.protocol.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChildDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChildDatabase.java index 77c9fef4a19..285d43e429e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChildDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ChildDatabase.java @@ -31,7 +31,8 @@ public final class ChildDatabase extends com.oracle.bmc.http.client.internal.Exp "databaseSubType", "timeAdded", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ChildDatabase( String id, @@ -43,7 +44,8 @@ public ChildDatabase( DatabaseSubType databaseSubType, java.util.Date timeAdded, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.name = name; @@ -55,6 +57,7 @@ public ChildDatabase( this.timeAdded = timeAdded; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -240,6 +243,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -256,7 +286,8 @@ public ChildDatabase build() { this.databaseSubType, this.timeAdded, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -295,6 +326,9 @@ public Builder copy(ChildDatabase model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -468,6 +502,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -493,6 +552,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeAdded=").append(String.valueOf(this.timeAdded)); 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(); } @@ -517,6 +577,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeAdded, other.timeAdded) && 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); } @@ -540,6 +601,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeAdded == null ? 43 : this.timeAdded.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java new file mode 100644 index 00000000000..6fda711caea --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ConnectorDetails.java @@ -0,0 +1,121 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The connector details required to connect to an Oracle cloud database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType", + defaultImpl = ConnectorDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalConnectorDetails.class, + name = "EXTERNAL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MacsConnectorDetails.class, + name = "MACS"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = PrivateEndPointConnectorDetails.class, + name = "PE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ConnectorDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected ConnectorDetails() { + 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("ConnectorDetails("); + 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 ConnectorDetails)) { + return false; + } + + ConnectorDetails other = (ConnectorDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** + * The list of supported connection types: - PE: Private endpoint - MACS: Management agent - + * EXTERNAL: External database connector + */ + public enum ConnectorType implements com.oracle.bmc.http.internal.BmcEnum { + Pe("PE"), + Macs("MACS"), + External("EXTERNAL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectorType v : ConnectorType.values()) { + map.put(v.getValue(), v); + } + } + + ConnectorType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectorType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ConnectorType: " + key); + } + }; +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionDetails.java new file mode 100644 index 00000000000..dedca959688 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionDetails.java @@ -0,0 +1,155 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The connection details required to connect to the database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseConnectionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseConnectionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectionString", "connectionCredentials"}) + public DatabaseConnectionDetails( + DatabaseConnectionStringDetails connectionString, + DatabaseConnectionCredentials connectionCredentials) { + super(); + this.connectionString = connectionString; + this.connectionCredentials = connectionCredentials; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private DatabaseConnectionStringDetails connectionString; + + public Builder connectionString(DatabaseConnectionStringDetails connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + private DatabaseConnectionCredentials connectionCredentials; + + public Builder connectionCredentials(DatabaseConnectionCredentials connectionCredentials) { + this.connectionCredentials = connectionCredentials; + this.__explicitlySet__.add("connectionCredentials"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseConnectionDetails build() { + DatabaseConnectionDetails model = + new DatabaseConnectionDetails( + this.connectionString, this.connectionCredentials); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseConnectionDetails model) { + if (model.wasPropertyExplicitlySet("connectionString")) { + this.connectionString(model.getConnectionString()); + } + if (model.wasPropertyExplicitlySet("connectionCredentials")) { + this.connectionCredentials(model.getConnectionCredentials()); + } + 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("connectionString") + private final DatabaseConnectionStringDetails connectionString; + + public DatabaseConnectionStringDetails getConnectionString() { + return connectionString; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectionCredentials") + private final DatabaseConnectionCredentials connectionCredentials; + + public DatabaseConnectionCredentials getConnectionCredentials() { + return connectionCredentials; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseConnectionDetails("); + sb.append("super=").append(super.toString()); + sb.append("connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", connectionCredentials=").append(String.valueOf(this.connectionCredentials)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseConnectionDetails)) { + return false; + } + + DatabaseConnectionDetails other = (DatabaseConnectionDetails) o; + return java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.connectionCredentials, other.connectionCredentials) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = + (result * PRIME) + + (this.connectionCredentials == null + ? 43 + : this.connectionCredentials.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java new file mode 100644 index 00000000000..94cedc34998 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseConnectionStringDetails.java @@ -0,0 +1,111 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the Oracle Database connection string.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType", + defaultImpl = DatabaseConnectionStringDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = BasicDatabaseConnectionStringDetails.class, + name = "BASIC") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseConnectionStringDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected DatabaseConnectionStringDetails() { + 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("DatabaseConnectionStringDetails("); + 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 DatabaseConnectionStringDetails)) { + return false; + } + + DatabaseConnectionStringDetails other = (DatabaseConnectionStringDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** The list of supported connection types: - BASIC: Basic connection details */ + public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum { + Basic("BASIC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ConnectionType v : ConnectionType.values()) { + map.put(v.getValue(), v); + } + } + + ConnectionType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ConnectionType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ConnectionType: " + key); + } + }; +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java new file mode 100644 index 00000000000..5a9c41a7992 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureConfiguration.java @@ -0,0 +1,215 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Diagnostics and Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseDiagnosticsAndManagementFeatureConfiguration.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseDiagnosticsAndManagementFeatureConfiguration + extends DatabaseFeatureConfiguration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("featureStatus") + private FeatureStatus featureStatus; + + public Builder featureStatus(FeatureStatus featureStatus) { + this.featureStatus = featureStatus; + this.__explicitlySet__.add("featureStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @param licenseModel the value to set + * @return this builder + */ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseDiagnosticsAndManagementFeatureConfiguration build() { + DatabaseDiagnosticsAndManagementFeatureConfiguration model = + new DatabaseDiagnosticsAndManagementFeatureConfiguration( + this.featureStatus, + this.connectorDetails, + this.databaseConnectionDetails, + this.licenseModel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseDiagnosticsAndManagementFeatureConfiguration model) { + if (model.wasPropertyExplicitlySet("featureStatus")) { + this.featureStatus(model.getFeatureStatus()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseDiagnosticsAndManagementFeatureConfiguration( + FeatureStatus featureStatus, + ConnectorDetails connectorDetails, + DatabaseConnectionDetails databaseConnectionDetails, + LicenseModel licenseModel) { + super(featureStatus, connectorDetails, databaseConnectionDetails); + this.licenseModel = licenseModel; + } + + /** The Oracle license model that applies to the external database. */ + public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseDiagnosticsAndManagementFeatureConfiguration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseDiagnosticsAndManagementFeatureConfiguration)) { + return false; + } + + DatabaseDiagnosticsAndManagementFeatureConfiguration other = + (DatabaseDiagnosticsAndManagementFeatureConfiguration) o; + return java.util.Objects.equals(this.licenseModel, other.licenseModel) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureDetails.java new file mode 100644 index 00000000000..c9fcc916255 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseDiagnosticsAndManagementFeatureDetails.java @@ -0,0 +1,245 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Diagnostics and Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DatabaseDiagnosticsAndManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DatabaseDiagnosticsAndManagementFeatureDetails extends DatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private DatabaseConnectionDetails databaseConnectionDetails; + + public Builder databaseConnectionDetails( + DatabaseConnectionDetails databaseConnectionDetails) { + this.databaseConnectionDetails = databaseConnectionDetails; + this.__explicitlySet__.add("databaseConnectionDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + /** The management type for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementType") + private ManagementType managementType; + + /** + * The management type for the database. + * + * @param managementType the value to set + * @return this builder + */ + public Builder managementType(ManagementType managementType) { + this.managementType = managementType; + this.__explicitlySet__.add("managementType"); + return this; + } + /** Indicates whether the pluggable database can be enabled automatically. */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoEnablePluggableDatabase") + private Boolean isAutoEnablePluggableDatabase; + + /** + * Indicates whether the pluggable database can be enabled automatically. + * + * @param isAutoEnablePluggableDatabase the value to set + * @return this builder + */ + public Builder isAutoEnablePluggableDatabase(Boolean isAutoEnablePluggableDatabase) { + this.isAutoEnablePluggableDatabase = isAutoEnablePluggableDatabase; + this.__explicitlySet__.add("isAutoEnablePluggableDatabase"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DatabaseDiagnosticsAndManagementFeatureDetails build() { + DatabaseDiagnosticsAndManagementFeatureDetails model = + new DatabaseDiagnosticsAndManagementFeatureDetails( + this.databaseConnectionDetails, + this.connectorDetails, + this.managementType, + this.isAutoEnablePluggableDatabase); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DatabaseDiagnosticsAndManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectionDetails")) { + this.databaseConnectionDetails(model.getDatabaseConnectionDetails()); + } + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + if (model.wasPropertyExplicitlySet("managementType")) { + this.managementType(model.getManagementType()); + } + if (model.wasPropertyExplicitlySet("isAutoEnablePluggableDatabase")) { + this.isAutoEnablePluggableDatabase(model.getIsAutoEnablePluggableDatabase()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public DatabaseDiagnosticsAndManagementFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails, + ManagementType managementType, + Boolean isAutoEnablePluggableDatabase) { + super(databaseConnectionDetails, connectorDetails); + this.managementType = managementType; + this.isAutoEnablePluggableDatabase = isAutoEnablePluggableDatabase; + } + + /** The management type for the database. */ + public enum ManagementType implements com.oracle.bmc.http.internal.BmcEnum { + Basic("BASIC"), + Advanced("ADVANCED"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (ManagementType v : ManagementType.values()) { + map.put(v.getValue(), v); + } + } + + ManagementType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static ManagementType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid ManagementType: " + key); + } + }; + /** The management type for the database. */ + @com.fasterxml.jackson.annotation.JsonProperty("managementType") + private final ManagementType managementType; + + /** + * The management type for the database. + * + * @return the value + */ + public ManagementType getManagementType() { + return managementType; + } + + /** Indicates whether the pluggable database can be enabled automatically. */ + @com.fasterxml.jackson.annotation.JsonProperty("isAutoEnablePluggableDatabase") + private final Boolean isAutoEnablePluggableDatabase; + + /** + * Indicates whether the pluggable database can be enabled automatically. + * + * @return the value + */ + public Boolean getIsAutoEnablePluggableDatabase() { + return isAutoEnablePluggableDatabase; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseDiagnosticsAndManagementFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", managementType=").append(String.valueOf(this.managementType)); + sb.append(", isAutoEnablePluggableDatabase=") + .append(String.valueOf(this.isAutoEnablePluggableDatabase)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseDiagnosticsAndManagementFeatureDetails)) { + return false; + } + + DatabaseDiagnosticsAndManagementFeatureDetails other = + (DatabaseDiagnosticsAndManagementFeatureDetails) o; + return java.util.Objects.equals(this.managementType, other.managementType) + && java.util.Objects.equals( + this.isAutoEnablePluggableDatabase, other.isAutoEnablePluggableDatabase) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managementType == null ? 43 : this.managementType.hashCode()); + result = + (result * PRIME) + + (this.isAutoEnablePluggableDatabase == null + ? 43 + : this.isAutoEnablePluggableDatabase.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java new file mode 100644 index 00000000000..da7f52ac488 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureConfiguration.java @@ -0,0 +1,175 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of an external database feature configuration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature", + defaultImpl = DatabaseFeatureConfiguration.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseDiagnosticsAndManagementFeatureConfiguration.class, + name = "DIAGNOSTICS_AND_MANAGEMENT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseFeatureConfiguration + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "featureStatus", + "connectorDetails", + "databaseConnectionDetails" + }) + protected DatabaseFeatureConfiguration( + FeatureStatus featureStatus, + ConnectorDetails connectorDetails, + DatabaseConnectionDetails databaseConnectionDetails) { + super(); + this.featureStatus = featureStatus; + this.connectorDetails = connectorDetails; + this.databaseConnectionDetails = databaseConnectionDetails; + } + + /** The list of statuses for Database Management features. */ + public enum FeatureStatus implements com.oracle.bmc.http.internal.BmcEnum { + Enabled("ENABLED"), + NotEnabled("NOT_ENABLED"), + Unsupported("UNSUPPORTED"), + FailedEnabling("FAILED_ENABLING"), + FailedDisabling("FAILED_DISABLING"), + Failed("FAILED"), + EnabledWithWarnings("ENABLED_WITH_WARNINGS"), + PendingDisable("PENDING_DISABLE"), + Enabling("ENABLING"), + Disabling("DISABLING"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (FeatureStatus v : FeatureStatus.values()) { + map.put(v.getValue(), v); + } + } + + FeatureStatus(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static FeatureStatus create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid FeatureStatus: " + key); + } + }; + /** The list of statuses for Database Management features. */ + @com.fasterxml.jackson.annotation.JsonProperty("featureStatus") + private final FeatureStatus featureStatus; + + /** + * The list of statuses for Database Management features. + * + * @return the value + */ + public FeatureStatus getFeatureStatus() { + return featureStatus; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final ConnectorDetails connectorDetails; + + public ConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private final DatabaseConnectionDetails databaseConnectionDetails; + + public DatabaseConnectionDetails getDatabaseConnectionDetails() { + return databaseConnectionDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseFeatureConfiguration("); + sb.append("super=").append(super.toString()); + sb.append("featureStatus=").append(String.valueOf(this.featureStatus)); + sb.append(", connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(", databaseConnectionDetails=") + .append(String.valueOf(this.databaseConnectionDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseFeatureConfiguration)) { + return false; + } + + DatabaseFeatureConfiguration other = (DatabaseFeatureConfiguration) o; + return java.util.Objects.equals(this.featureStatus, other.featureStatus) + && java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && java.util.Objects.equals( + this.databaseConnectionDetails, other.databaseConnectionDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureStatus == null ? 43 : this.featureStatus.hashCode()); + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = + (result * PRIME) + + (this.databaseConnectionDetails == null + ? 43 + : this.databaseConnectionDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java new file mode 100644 index 00000000000..0c16f5d08e0 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DatabaseFeatureDetails.java @@ -0,0 +1,110 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the specified Database Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature", + defaultImpl = DatabaseFeatureDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = DatabaseDiagnosticsAndManagementFeatureDetails.class, + name = "DIAGNOSTICS_AND_MANAGEMENT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class DatabaseFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"databaseConnectionDetails", "connectorDetails"}) + protected DatabaseFeatureDetails( + DatabaseConnectionDetails databaseConnectionDetails, + ConnectorDetails connectorDetails) { + super(); + this.databaseConnectionDetails = databaseConnectionDetails; + this.connectorDetails = connectorDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectionDetails") + private final DatabaseConnectionDetails databaseConnectionDetails; + + public DatabaseConnectionDetails getDatabaseConnectionDetails() { + return databaseConnectionDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final ConnectorDetails connectorDetails; + + public ConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DatabaseFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("databaseConnectionDetails=") + .append(String.valueOf(this.databaseConnectionDetails)); + sb.append(", connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DatabaseFeatureDetails)) { + return false; + } + + DatabaseFeatureDetails other = (DatabaseFeatureDetails) o; + return java.util.Objects.equals( + this.databaseConnectionDetails, other.databaseConnectionDetails) + && java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.databaseConnectionDetails == null + ? 43 + : this.databaseConnectionDetails.hashCode()); + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java new file mode 100644 index 00000000000..9f6c6d5742b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementFeature.java @@ -0,0 +1,43 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The list of the database management supported features: - DIAGNOSTICS_AND_MANAGEMENT: Diagnostics + * and management. - DB_LIFECYCLE_MANAGEMENT: Database lifecycle management. - SQLWATCH: Real + * application testing. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public enum DbManagementFeature implements com.oracle.bmc.http.internal.BmcEnum { + DiagnosticsAndManagement("DIAGNOSTICS_AND_MANAGEMENT"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DbManagementFeature v : DbManagementFeature.values()) { + map.put(v.getValue(), v); + } + } + + DbManagementFeature(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DbManagementFeature create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DbManagementFeature: " + key); + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java index 3e352d19438..87145b7e482 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpoint.java @@ -37,7 +37,8 @@ public final class DbManagementPrivateEndpoint "lifecycleState", "nsgIds", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public DbManagementPrivateEndpoint( String id, @@ -52,7 +53,8 @@ public DbManagementPrivateEndpoint( LifecycleStates lifecycleState, java.util.List nsgIds, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.name = name; @@ -67,6 +69,7 @@ public DbManagementPrivateEndpoint( this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -311,6 +314,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -330,7 +360,8 @@ public DbManagementPrivateEndpoint build() { this.lifecycleState, this.nsgIds, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -378,6 +409,9 @@ public Builder copy(DbManagementPrivateEndpoint model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -604,6 +638,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -632,6 +691,7 @@ public String toString(boolean includeByteArrayContents) { 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(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(")"); return sb.toString(); } @@ -659,6 +719,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.nsgIds, other.nsgIds) && 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); } @@ -683,6 +744,7 @@ public int 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) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java index 13d8e4eff84..c584a351619 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DbManagementPrivateEndpointSummary.java @@ -33,7 +33,8 @@ public final class DbManagementPrivateEndpointSummary "timeCreated", "lifecycleState", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public DbManagementPrivateEndpointSummary( String id, @@ -45,7 +46,8 @@ public DbManagementPrivateEndpointSummary( java.util.Date timeCreated, LifecycleStates lifecycleState, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.name = name; @@ -57,6 +59,7 @@ public DbManagementPrivateEndpointSummary( this.lifecycleState = lifecycleState; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -248,6 +251,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -264,7 +294,8 @@ public DbManagementPrivateEndpointSummary build() { this.timeCreated, this.lifecycleState, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -303,6 +334,9 @@ public Builder copy(DbManagementPrivateEndpointSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -482,6 +516,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -507,6 +566,7 @@ public String toString(boolean includeByteArrayContents) { 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(")"); return sb.toString(); } @@ -531,6 +591,7 @@ public boolean equals(Object o) { && 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) && super.equals(other); } @@ -552,6 +613,7 @@ public int hashCode() { + (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) + super.hashCode(); return result; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..c09ae6a942b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableDatabaseManagementFeatureDetails.java @@ -0,0 +1,134 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to disable Database Management features for an Oracle cloud database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feature"}) + public DisableDatabaseManagementFeatureDetails(DbManagementFeature feature) { + super(); + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(DbManagementFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisableDatabaseManagementFeatureDetails build() { + DisableDatabaseManagementFeatureDetails model = + new DisableDatabaseManagementFeatureDetails(this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + 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 Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @return the value + */ + public DbManagementFeature getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableDatabaseManagementFeatureDetails)) { + return false; + } + + DisableDatabaseManagementFeatureDetails other = (DisableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.feature, other.feature) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalContainerDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalContainerDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..1339ac1f2ae --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalContainerDatabaseManagementFeatureDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to disable a Database Management feature for an external container database. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisableExternalContainerDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisableExternalContainerDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feature"}) + public DisableExternalContainerDatabaseManagementFeatureDetails(DbManagementFeature feature) { + super(); + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(DbManagementFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisableExternalContainerDatabaseManagementFeatureDetails build() { + DisableExternalContainerDatabaseManagementFeatureDetails model = + new DisableExternalContainerDatabaseManagementFeatureDetails(this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisableExternalContainerDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + 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 Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @return the value + */ + public DbManagementFeature getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisableExternalContainerDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableExternalContainerDatabaseManagementFeatureDetails)) { + return false; + } + + DisableExternalContainerDatabaseManagementFeatureDetails other = + (DisableExternalContainerDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.feature, other.feature) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalNonContainerDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalNonContainerDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..7ce5833bad1 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalNonContainerDatabaseManagementFeatureDetails.java @@ -0,0 +1,137 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to disable a Database Management feature for an external non-container + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisableExternalNonContainerDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisableExternalNonContainerDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feature"}) + public DisableExternalNonContainerDatabaseManagementFeatureDetails( + DbManagementFeature feature) { + super(); + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(DbManagementFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisableExternalNonContainerDatabaseManagementFeatureDetails build() { + DisableExternalNonContainerDatabaseManagementFeatureDetails model = + new DisableExternalNonContainerDatabaseManagementFeatureDetails(this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisableExternalNonContainerDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + 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 Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @return the value + */ + public DbManagementFeature getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisableExternalNonContainerDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableExternalNonContainerDatabaseManagementFeatureDetails)) { + return false; + } + + DisableExternalNonContainerDatabaseManagementFeatureDetails other = + (DisableExternalNonContainerDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.feature, other.feature) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalPluggableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalPluggableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..12e76bb84e8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisableExternalPluggableDatabaseManagementFeatureDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to disable a Database Management feature for an external pluggable database. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisableExternalPluggableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisableExternalPluggableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feature"}) + public DisableExternalPluggableDatabaseManagementFeatureDetails(DbManagementFeature feature) { + super(); + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(DbManagementFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisableExternalPluggableDatabaseManagementFeatureDetails build() { + DisableExternalPluggableDatabaseManagementFeatureDetails model = + new DisableExternalPluggableDatabaseManagementFeatureDetails(this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisableExternalPluggableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + 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 Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @return the value + */ + public DbManagementFeature getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisableExternalPluggableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisableExternalPluggableDatabaseManagementFeatureDetails)) { + return false; + } + + DisableExternalPluggableDatabaseManagementFeatureDetails other = + (DisableExternalPluggableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.feature, other.feature) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisablePluggableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisablePluggableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..b592a48fb73 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/DisablePluggableDatabaseManagementFeatureDetails.java @@ -0,0 +1,136 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to disable a Database Management feature for an Oracle cloud pluggable + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DisablePluggableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DisablePluggableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"feature"}) + public DisablePluggableDatabaseManagementFeatureDetails(DbManagementFeature feature) { + super(); + this.feature = feature; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The name of the Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @param feature the value to set + * @return this builder + */ + public Builder feature(DbManagementFeature feature) { + this.feature = feature; + this.__explicitlySet__.add("feature"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DisablePluggableDatabaseManagementFeatureDetails build() { + DisablePluggableDatabaseManagementFeatureDetails model = + new DisablePluggableDatabaseManagementFeatureDetails(this.feature); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DisablePluggableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("feature")) { + this.feature(model.getFeature()); + } + 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 Database Management feature. */ + @com.fasterxml.jackson.annotation.JsonProperty("feature") + private final DbManagementFeature feature; + + /** + * The name of the Database Management feature. + * + * @return the value + */ + public DbManagementFeature getFeature() { + return feature; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DisablePluggableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("feature=").append(String.valueOf(this.feature)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DisablePluggableDatabaseManagementFeatureDetails)) { + return false; + } + + DisablePluggableDatabaseManagementFeatureDetails other = + (DisablePluggableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.feature, other.feature) && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.feature == null ? 43 : this.feature.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..5f821eb4803 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableDatabaseManagementFeatureDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable Database Management features for an Oracle cloud database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public EnableDatabaseManagementFeatureDetails(DatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private DatabaseFeatureDetails featureDetails; + + public Builder featureDetails(DatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableDatabaseManagementFeatureDetails build() { + EnableDatabaseManagementFeatureDetails model = + new EnableDatabaseManagementFeatureDetails(this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final DatabaseFeatureDetails featureDetails; + + public DatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableDatabaseManagementFeatureDetails)) { + return false; + } + + EnableDatabaseManagementFeatureDetails other = (EnableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalContainerDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalContainerDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..d6e3c60abdc --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalContainerDatabaseManagementFeatureDetails.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable a Database Management feature for an external container database. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableExternalContainerDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableExternalContainerDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public EnableExternalContainerDatabaseManagementFeatureDetails( + ExternalDatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private ExternalDatabaseFeatureDetails featureDetails; + + public Builder featureDetails(ExternalDatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalContainerDatabaseManagementFeatureDetails build() { + EnableExternalContainerDatabaseManagementFeatureDetails model = + new EnableExternalContainerDatabaseManagementFeatureDetails( + this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalContainerDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final ExternalDatabaseFeatureDetails featureDetails; + + public ExternalDatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableExternalContainerDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalContainerDatabaseManagementFeatureDetails)) { + return false; + } + + EnableExternalContainerDatabaseManagementFeatureDetails other = + (EnableExternalContainerDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalNonContainerDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalNonContainerDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..fc3df671bf8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalNonContainerDatabaseManagementFeatureDetails.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable a Database Management feature for an external non-container + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableExternalNonContainerDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableExternalNonContainerDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public EnableExternalNonContainerDatabaseManagementFeatureDetails( + ExternalDatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private ExternalDatabaseFeatureDetails featureDetails; + + public Builder featureDetails(ExternalDatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalNonContainerDatabaseManagementFeatureDetails build() { + EnableExternalNonContainerDatabaseManagementFeatureDetails model = + new EnableExternalNonContainerDatabaseManagementFeatureDetails( + this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalNonContainerDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final ExternalDatabaseFeatureDetails featureDetails; + + public ExternalDatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableExternalNonContainerDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalNonContainerDatabaseManagementFeatureDetails)) { + return false; + } + + EnableExternalNonContainerDatabaseManagementFeatureDetails other = + (EnableExternalNonContainerDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalPluggableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalPluggableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..448b83ea141 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnableExternalPluggableDatabaseManagementFeatureDetails.java @@ -0,0 +1,129 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable a Database Management feature for an external pluggable database. + *
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnableExternalPluggableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnableExternalPluggableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public EnableExternalPluggableDatabaseManagementFeatureDetails( + ExternalPluggableDatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private ExternalPluggableDatabaseFeatureDetails featureDetails; + + public Builder featureDetails(ExternalPluggableDatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnableExternalPluggableDatabaseManagementFeatureDetails build() { + EnableExternalPluggableDatabaseManagementFeatureDetails model = + new EnableExternalPluggableDatabaseManagementFeatureDetails( + this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnableExternalPluggableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final ExternalPluggableDatabaseFeatureDetails featureDetails; + + public ExternalPluggableDatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnableExternalPluggableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnableExternalPluggableDatabaseManagementFeatureDetails)) { + return false; + } + + EnableExternalPluggableDatabaseManagementFeatureDetails other = + (EnableExternalPluggableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnablePluggableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnablePluggableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..ed1d66391d1 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/EnablePluggableDatabaseManagementFeatureDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable a Database Management feature for an Oracle cloud pluggable + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = EnablePluggableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class EnablePluggableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public EnablePluggableDatabaseManagementFeatureDetails(DatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private DatabaseFeatureDetails featureDetails; + + public Builder featureDetails(DatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public EnablePluggableDatabaseManagementFeatureDetails build() { + EnablePluggableDatabaseManagementFeatureDetails model = + new EnablePluggableDatabaseManagementFeatureDetails(this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(EnablePluggableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final DatabaseFeatureDetails featureDetails; + + public DatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("EnablePluggableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof EnablePluggableDatabaseManagementFeatureDetails)) { + return false; + } + + EnablePluggableDatabaseManagementFeatureDetails other = + (EnablePluggableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsm.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsm.java index 1b5db88fd6a..26590c57338 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsm.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsm.java @@ -39,7 +39,8 @@ public final class ExternalAsm extends com.oracle.bmc.http.client.internal.Expli "timeUpdated", "version", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalAsm( String id, @@ -59,7 +60,8 @@ public ExternalAsm( java.util.Date timeUpdated, String version, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -79,6 +81,7 @@ public ExternalAsm( this.version = version; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -395,6 +398,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -419,7 +449,8 @@ public ExternalAsm build() { this.timeUpdated, this.version, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -482,6 +513,9 @@ public Builder copy(ExternalAsm model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -821,6 +855,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -854,6 +913,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", version=").append(String.valueOf(this.version)); 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(); } @@ -886,6 +946,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.version, other.version) && 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); } @@ -933,6 +994,7 @@ public int hashCode() { result = (result * PRIME) + (this.version == null ? 43 : this.version.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstance.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstance.java index 134eeb7e581..aceaf955299 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstance.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstance.java @@ -38,7 +38,8 @@ public final class ExternalAsmInstance "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalAsmInstance( String id, @@ -55,7 +56,8 @@ public ExternalAsmInstance( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -72,6 +74,7 @@ public ExternalAsmInstance( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -338,6 +341,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -359,7 +389,8 @@ public ExternalAsmInstance build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -413,6 +444,9 @@ public Builder copy(ExternalAsmInstance model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -708,6 +742,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -738,6 +797,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -767,6 +827,7 @@ public boolean equals(Object o) { && 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); } @@ -807,6 +868,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstanceSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstanceSummary.java index 4343a2305ca..c7c12ee52bd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstanceSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmInstanceSummary.java @@ -38,7 +38,8 @@ public final class ExternalAsmInstanceSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalAsmInstanceSummary( String id, @@ -55,7 +56,8 @@ public ExternalAsmInstanceSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -72,6 +74,7 @@ public ExternalAsmInstanceSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -338,6 +341,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -359,7 +389,8 @@ public ExternalAsmInstanceSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -413,6 +444,9 @@ public Builder copy(ExternalAsmInstanceSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -657,6 +691,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -687,6 +746,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -716,6 +776,7 @@ public boolean equals(Object o) { && 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); } @@ -756,6 +817,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmSummary.java index 90dd06d6d5e..011f9e84ec8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalAsmSummary.java @@ -35,7 +35,8 @@ public final class ExternalAsmSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalAsmSummary( String id, @@ -49,7 +50,8 @@ public ExternalAsmSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -63,6 +65,7 @@ public ExternalAsmSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -280,6 +283,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -298,7 +328,8 @@ public ExternalAsmSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -343,6 +374,9 @@ public Builder copy(ExternalAsmSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -544,6 +578,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -571,6 +630,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -597,6 +657,7 @@ public boolean equals(Object o) { && 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); } @@ -632,6 +693,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalCluster.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalCluster.java index bf402efd415..8f2f20a02a5 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalCluster.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalCluster.java @@ -42,7 +42,8 @@ public final class ExternalCluster "timeUpdated", "version", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalCluster( String id, @@ -64,7 +65,8 @@ public ExternalCluster( java.util.Date timeUpdated, String version, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -86,6 +88,7 @@ public ExternalCluster( this.version = version; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -430,6 +433,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -456,7 +486,8 @@ public ExternalCluster build() { this.timeUpdated, this.version, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -525,6 +556,9 @@ public Builder copy(ExternalCluster model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -886,6 +920,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -921,6 +980,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", version=").append(String.valueOf(this.version)); 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(); } @@ -955,6 +1015,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.version, other.version) && 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); } @@ -1014,6 +1075,7 @@ public int hashCode() { result = (result * PRIME) + (this.version == null ? 43 : this.version.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstance.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstance.java index 5d2704b790b..72573db57c4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstance.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstance.java @@ -41,7 +41,8 @@ public final class ExternalClusterInstance "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalClusterInstance( String id, @@ -61,7 +62,8 @@ public ExternalClusterInstance( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -81,6 +83,7 @@ public ExternalClusterInstance( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -396,6 +399,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -420,7 +450,8 @@ public ExternalClusterInstance build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -483,6 +514,9 @@ public Builder copy(ExternalClusterInstance model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -868,6 +902,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -901,6 +960,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -933,6 +993,7 @@ public boolean equals(Object o) { && 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); } @@ -982,6 +1043,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstanceSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstanceSummary.java index a096403b9aa..b64e55eebab 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstanceSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterInstanceSummary.java @@ -41,7 +41,8 @@ public final class ExternalClusterInstanceSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalClusterInstanceSummary( String id, @@ -61,7 +62,8 @@ public ExternalClusterInstanceSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -81,6 +83,7 @@ public ExternalClusterInstanceSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -396,6 +399,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -420,7 +450,8 @@ public ExternalClusterInstanceSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -483,6 +514,9 @@ public Builder copy(ExternalClusterInstanceSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -770,6 +804,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -803,6 +862,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -835,6 +895,7 @@ public boolean equals(Object o) { && 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); } @@ -884,6 +945,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterSummary.java index d987f623446..0a9265927d3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalClusterSummary.java @@ -35,7 +35,8 @@ public final class ExternalClusterSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalClusterSummary( String id, @@ -49,7 +50,8 @@ public ExternalClusterSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -63,6 +65,7 @@ public ExternalClusterSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -280,6 +283,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -298,7 +328,8 @@ public ExternalClusterSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -343,6 +374,9 @@ public Builder copy(ExternalClusterSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -544,6 +578,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -571,6 +630,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -597,6 +657,7 @@ public boolean equals(Object o) { && 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); } @@ -632,6 +693,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalConnectorDetails.java new file mode 100644 index 00000000000..1909a2f2108 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalConnectorDetails.java @@ -0,0 +1,147 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details of the external database connector used to connect to the external database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalConnectorDetails extends ConnectorDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private String databaseConnectorId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector. + * + * @param databaseConnectorId the value to set + * @return this builder + */ + public Builder databaseConnectorId(String databaseConnectorId) { + this.databaseConnectorId = databaseConnectorId; + this.__explicitlySet__.add("databaseConnectorId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalConnectorDetails build() { + ExternalConnectorDetails model = new ExternalConnectorDetails(this.databaseConnectorId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalConnectorDetails model) { + if (model.wasPropertyExplicitlySet("databaseConnectorId")) { + this.databaseConnectorId(model.getDatabaseConnectorId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalConnectorDetails(String databaseConnectorId) { + super(); + this.databaseConnectorId = databaseConnectorId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector. + */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseConnectorId") + private final String databaseConnectorId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database connector. + * + * @return the value + */ + public String getDatabaseConnectorId() { + return databaseConnectorId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalConnectorDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", databaseConnectorId=").append(String.valueOf(this.databaseConnectorId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalConnectorDetails)) { + return false; + } + + ExternalConnectorDetails other = (ExternalConnectorDetails) o; + return java.util.Objects.equals(this.databaseConnectorId, other.databaseConnectorId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.databaseConnectorId == null + ? 43 + : this.databaseConnectorId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseDiagnosticsAndManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseDiagnosticsAndManagementFeatureDetails.java new file mode 100644 index 00000000000..bba92b6172a --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseDiagnosticsAndManagementFeatureDetails.java @@ -0,0 +1,184 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Diagnostics and Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalDatabaseDiagnosticsAndManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalDatabaseDiagnosticsAndManagementFeatureDetails + extends ExternalDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @param licenseModel the value to set + * @return this builder + */ + public Builder licenseModel(LicenseModel licenseModel) { + this.licenseModel = licenseModel; + this.__explicitlySet__.add("licenseModel"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalDatabaseDiagnosticsAndManagementFeatureDetails build() { + ExternalDatabaseDiagnosticsAndManagementFeatureDetails model = + new ExternalDatabaseDiagnosticsAndManagementFeatureDetails( + this.connectorDetails, this.licenseModel); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalDatabaseDiagnosticsAndManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + if (model.wasPropertyExplicitlySet("licenseModel")) { + this.licenseModel(model.getLicenseModel()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalDatabaseDiagnosticsAndManagementFeatureDetails( + ConnectorDetails connectorDetails, LicenseModel licenseModel) { + super(connectorDetails); + this.licenseModel = licenseModel; + } + + /** The Oracle license model that applies to the external database. */ + public enum LicenseModel implements com.oracle.bmc.http.internal.BmcEnum { + LicenseIncluded("LICENSE_INCLUDED"), + BringYourOwnLicense("BRING_YOUR_OWN_LICENSE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (LicenseModel v : LicenseModel.values()) { + map.put(v.getValue(), v); + } + } + + LicenseModel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static LicenseModel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid LicenseModel: " + key); + } + }; + /** The Oracle license model that applies to the external database. */ + @com.fasterxml.jackson.annotation.JsonProperty("licenseModel") + private final LicenseModel licenseModel; + + /** + * The Oracle license model that applies to the external database. + * + * @return the value + */ + public LicenseModel getLicenseModel() { + return licenseModel; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalDatabaseDiagnosticsAndManagementFeatureDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", licenseModel=").append(String.valueOf(this.licenseModel)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalDatabaseDiagnosticsAndManagementFeatureDetails)) { + return false; + } + + ExternalDatabaseDiagnosticsAndManagementFeatureDetails other = + (ExternalDatabaseDiagnosticsAndManagementFeatureDetails) o; + return java.util.Objects.equals(this.licenseModel, other.licenseModel) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.licenseModel == null ? 43 : this.licenseModel.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java new file mode 100644 index 00000000000..a1c23ba74c5 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseFeatureDetails.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the specified Database Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature", + defaultImpl = ExternalDatabaseFeatureDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalDatabaseDiagnosticsAndManagementFeatureDetails.class, + name = "DIAGNOSTICS_AND_MANAGEMENT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExternalDatabaseFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectorDetails"}) + protected ExternalDatabaseFeatureDetails(ConnectorDetails connectorDetails) { + super(); + this.connectorDetails = connectorDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final ConnectorDetails connectorDetails; + + public ConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalDatabaseFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalDatabaseFeatureDetails)) { + return false; + } + + ExternalDatabaseFeatureDetails other = (ExternalDatabaseFeatureDetails) o; + return java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java index 5cffa26fd31..9d2820925b7 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDatabaseSummary.java @@ -38,7 +38,8 @@ public final class ExternalDatabaseSummary "lifecycleState", "timeCreated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDatabaseSummary( String id, @@ -55,7 +56,8 @@ public ExternalDatabaseSummary( LifecycleState lifecycleState, java.util.Date timeCreated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -72,6 +74,7 @@ public ExternalDatabaseSummary( this.timeCreated = timeCreated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -326,6 +329,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -347,7 +377,8 @@ public ExternalDatabaseSummary build() { this.lifecycleState, this.timeCreated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -401,6 +432,9 @@ public Builder copy(ExternalDatabaseSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -684,6 +718,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -715,6 +774,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); 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(); } @@ -745,6 +805,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && 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); } @@ -785,6 +846,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHome.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHome.java index 11c4123e04b..0af7aefff39 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHome.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHome.java @@ -35,7 +35,8 @@ public final class ExternalDbHome "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbHome( String id, @@ -50,7 +51,8 @@ public ExternalDbHome( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -65,6 +67,7 @@ public ExternalDbHome( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -297,6 +300,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -316,7 +346,8 @@ public ExternalDbHome build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -364,6 +395,9 @@ public Builder copy(ExternalDbHome model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -629,6 +663,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -657,6 +716,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -684,6 +744,7 @@ public boolean equals(Object o) { && 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); } @@ -720,6 +781,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHomeSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHomeSummary.java index 7ba57648822..3654ec63a46 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHomeSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbHomeSummary.java @@ -35,7 +35,8 @@ public final class ExternalDbHomeSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbHomeSummary( String id, @@ -49,7 +50,8 @@ public ExternalDbHomeSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -63,6 +65,7 @@ public ExternalDbHomeSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -276,6 +279,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -294,7 +324,8 @@ public ExternalDbHomeSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -339,6 +370,9 @@ public Builder copy(ExternalDbHomeSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -536,6 +570,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -563,6 +622,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -589,6 +649,7 @@ public boolean equals(Object o) { && 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); } @@ -622,6 +683,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNode.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNode.java index 1b9af42bd02..e34f90f0b97 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNode.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNode.java @@ -39,7 +39,8 @@ public final class ExternalDbNode "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbNode( String id, @@ -58,7 +59,8 @@ public ExternalDbNode( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -77,6 +79,7 @@ public ExternalDbNode( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -373,6 +376,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -396,7 +426,8 @@ public ExternalDbNode build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -456,6 +487,9 @@ public Builder copy(ExternalDbNode model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -778,6 +812,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -810,6 +869,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -841,6 +901,7 @@ public boolean equals(Object o) { && 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); } @@ -885,6 +946,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNodeSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNodeSummary.java index b531eaa1a67..012ef545c6c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNodeSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbNodeSummary.java @@ -36,7 +36,8 @@ public final class ExternalDbNodeSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbNodeSummary( String id, @@ -51,7 +52,8 @@ public ExternalDbNodeSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -66,6 +68,7 @@ public ExternalDbNodeSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -298,6 +301,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -317,7 +347,8 @@ public ExternalDbNodeSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -365,6 +396,9 @@ public Builder copy(ExternalDbNodeSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -579,6 +613,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -607,6 +666,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -634,6 +694,7 @@ public boolean equals(Object o) { && 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); } @@ -670,6 +731,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystem.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystem.java index 54830616315..256d45abae3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystem.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystem.java @@ -37,7 +37,8 @@ public final class ExternalDbSystem "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbSystem( String id, @@ -54,7 +55,8 @@ public ExternalDbSystem( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -71,6 +73,7 @@ public ExternalDbSystem( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -327,6 +330,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -348,7 +378,8 @@ public ExternalDbSystem build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -402,6 +433,9 @@ public Builder copy(ExternalDbSystem model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -684,6 +718,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -715,6 +774,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -745,6 +805,7 @@ public boolean equals(Object o) { && 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); } @@ -789,6 +850,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemConnectorSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemConnectorSummary.java index 4f834a3c066..567e8193820 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemConnectorSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemConnectorSummary.java @@ -35,7 +35,8 @@ public final class ExternalDbSystemConnectorSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbSystemConnectorSummary( String id, @@ -49,7 +50,8 @@ public ExternalDbSystemConnectorSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -63,6 +65,7 @@ public ExternalDbSystemConnectorSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -282,6 +285,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -300,7 +330,8 @@ public ExternalDbSystemConnectorSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -345,6 +376,9 @@ public Builder copy(ExternalDbSystemConnectorSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -591,6 +625,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -618,6 +677,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -644,6 +704,7 @@ public boolean equals(Object o) { && 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); } @@ -675,6 +736,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscovery.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscovery.java index bfae9af1a9a..1d629e4e619 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscovery.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscovery.java @@ -36,7 +36,8 @@ public final class ExternalDbSystemDiscovery "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbSystemDiscovery( String id, @@ -51,7 +52,8 @@ public ExternalDbSystemDiscovery( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -66,6 +68,7 @@ public ExternalDbSystemDiscovery( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -299,6 +302,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -318,7 +348,8 @@ public ExternalDbSystemDiscovery build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -366,6 +397,9 @@ public Builder copy(ExternalDbSystemDiscovery model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -631,6 +665,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -659,6 +718,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -686,6 +746,7 @@ public boolean equals(Object o) { && 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); } @@ -716,6 +777,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscoverySummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscoverySummary.java index 227486fb7bb..7322ab8bedb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscoverySummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemDiscoverySummary.java @@ -33,7 +33,8 @@ public final class ExternalDbSystemDiscoverySummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbSystemDiscoverySummary( String id, @@ -45,7 +46,8 @@ public ExternalDbSystemDiscoverySummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -57,6 +59,7 @@ public ExternalDbSystemDiscoverySummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -240,6 +243,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -256,7 +286,8 @@ public ExternalDbSystemDiscoverySummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -295,6 +326,9 @@ public Builder copy(ExternalDbSystemDiscoverySummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -466,6 +500,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -491,6 +550,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -515,6 +575,7 @@ public boolean equals(Object o) { && 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); } @@ -538,6 +599,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemMacsConnector.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemMacsConnector.java index fdbb3cc8b9d..1243edc0c06 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemMacsConnector.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemMacsConnector.java @@ -203,6 +203,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -224,7 +251,8 @@ public ExternalDbSystemMacsConnector build() { this.agentId, this.connectionInfo, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -278,6 +306,9 @@ public Builder copy(ExternalDbSystemMacsConnector model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -307,7 +338,8 @@ public ExternalDbSystemMacsConnector( String agentId, ExternalDbSystemConnectionInfo connectionInfo, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -324,6 +356,7 @@ public ExternalDbSystemMacsConnector( this.connectionInfo = connectionInfo; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -392,6 +425,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -411,6 +469,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", connectionInfo=").append(String.valueOf(this.connectionInfo)); 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(); } @@ -429,6 +488,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.connectionInfo, other.connectionInfo) && 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); } @@ -442,6 +502,7 @@ public int hashCode() { + (this.connectionInfo == null ? 43 : this.connectionInfo.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemSummary.java index d61b10865cc..2a6caf853e7 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalDbSystemSummary.java @@ -34,7 +34,8 @@ public final class ExternalDbSystemSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalDbSystemSummary( String id, @@ -47,7 +48,8 @@ public ExternalDbSystemSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -60,6 +62,7 @@ public ExternalDbSystemSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -253,6 +256,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -270,7 +300,8 @@ public ExternalDbSystemSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -312,6 +343,9 @@ public Builder copy(ExternalDbSystemSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -490,6 +524,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -517,6 +576,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -543,6 +603,7 @@ public boolean equals(Object o) { && 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); } @@ -573,6 +634,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructure.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructure.java index 474630e08ac..71d6af426db 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructure.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructure.java @@ -258,6 +258,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -282,7 +309,8 @@ public ExternalExadataInfrastructure build() { this.databaseSystems, this.databaseCompartments, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -345,6 +373,9 @@ public Builder copy(ExternalExadataInfrastructure model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -377,7 +408,8 @@ public ExternalExadataInfrastructure( java.util.List databaseSystems, java.util.List databaseCompartments, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -397,6 +429,7 @@ public ExternalExadataInfrastructure( this.databaseCompartments = databaseCompartments; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** The rack size of the Exadata infrastructure. */ @@ -615,6 +648,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -638,6 +696,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", databaseCompartments=").append(String.valueOf(this.databaseCompartments)); 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(); } @@ -660,6 +719,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.databaseCompartments, other.databaseCompartments) && 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); } @@ -683,6 +743,7 @@ public int hashCode() { : this.databaseCompartments.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructureSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructureSummary.java index 100e36a7068..4bc030fa162 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructureSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataInfrastructureSummary.java @@ -227,6 +227,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -249,7 +276,8 @@ public ExternalExadataInfrastructureSummary build() { this.licenseModel, this.gridHomePath, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -306,6 +334,9 @@ public Builder copy(ExternalExadataInfrastructureSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -336,7 +367,8 @@ public ExternalExadataInfrastructureSummary( LicenseModel licenseModel, String gridHomePath, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -354,6 +386,7 @@ public ExternalExadataInfrastructureSummary( this.gridHomePath = gridHomePath; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** The rack size of the Exadata infrastructure. */ @@ -548,6 +581,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -569,6 +627,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", gridHomePath=").append(String.valueOf(this.gridHomePath)); 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(); } @@ -589,6 +648,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.gridHomePath, other.gridHomePath) && 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); } @@ -604,6 +664,7 @@ public int hashCode() { result = (result * PRIME) + (this.gridHomePath == null ? 43 : this.gridHomePath.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnector.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnector.java index e1d375cc41c..074fae4cd9d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnector.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnector.java @@ -239,6 +239,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -261,7 +288,8 @@ public ExternalExadataStorageConnector build() { this.connectionUri, this.storageServerId, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -318,6 +346,9 @@ public Builder copy(ExternalExadataStorageConnector model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -348,7 +379,8 @@ public ExternalExadataStorageConnector( String connectionUri, String storageServerId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -366,6 +398,7 @@ public ExternalExadataStorageConnector( this.storageServerId = storageServerId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -478,6 +511,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -500,6 +558,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", storageServerId=").append(String.valueOf(this.storageServerId)); 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(); } @@ -520,6 +579,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.storageServerId, other.storageServerId) && 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); } @@ -541,6 +601,7 @@ public int hashCode() { + (this.storageServerId == null ? 43 : this.storageServerId.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnectorSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnectorSummary.java index 67352ee46f2..3d3e455ccf4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnectorSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageConnectorSummary.java @@ -220,6 +220,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -241,7 +268,8 @@ public ExternalExadataStorageConnectorSummary build() { this.storageServerId, this.agentId, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -295,6 +323,9 @@ public Builder copy(ExternalExadataStorageConnectorSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -324,7 +355,8 @@ public ExternalExadataStorageConnectorSummary( String storageServerId, String agentId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -341,6 +373,7 @@ public ExternalExadataStorageConnectorSummary( this.agentId = agentId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -436,6 +469,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -456,6 +514,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", agentId=").append(String.valueOf(this.agentId)); 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(); } @@ -475,6 +534,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.agentId, other.agentId) && 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); } @@ -491,6 +551,7 @@ public int hashCode() { result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageGrid.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageGrid.java index 9e0cd8ce183..2c69f14dee7 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageGrid.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageGrid.java @@ -213,6 +213,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -234,7 +261,8 @@ public ExternalExadataStorageGrid build() { this.serverCount, this.storageServers, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -288,6 +316,9 @@ public Builder copy(ExternalExadataStorageGrid model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -317,7 +348,8 @@ public ExternalExadataStorageGrid( java.math.BigDecimal serverCount, java.util.List storageServers, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -334,6 +366,7 @@ public ExternalExadataStorageGrid( this.storageServers = storageServers; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -421,6 +454,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -442,6 +500,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", storageServers=").append(String.valueOf(this.storageServers)); 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(); } @@ -461,6 +520,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.storageServers, other.storageServers) && 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); } @@ -479,6 +539,7 @@ public int hashCode() { + (this.storageServers == null ? 43 : this.storageServers.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServer.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServer.java index 5524a1148e9..d8520cba9b4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServer.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServer.java @@ -330,6 +330,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -359,7 +386,8 @@ public ExternalExadataStorageServer build() { this.maxFlashDiskThroughput, this.connector, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -437,6 +465,9 @@ public Builder copy(ExternalExadataStorageServer model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -474,7 +505,8 @@ public ExternalExadataStorageServer( Integer maxFlashDiskThroughput, ExternalExadataStorageConnectorSummary connector, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -499,6 +531,7 @@ public ExternalExadataStorageServer( this.connector = connector; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** @@ -688,6 +721,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -717,6 +775,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", connector=").append(String.valueOf(this.connector)); 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(); } @@ -745,6 +804,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.connector, other.connector) && 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); } @@ -783,6 +843,7 @@ public int hashCode() { result = (result * PRIME) + (this.connector == null ? 43 : this.connector.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServerSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServerSummary.java index 4aeb7fa2676..362e3ae1836 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServerSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalExadataStorageServerSummary.java @@ -302,6 +302,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -329,7 +356,8 @@ public ExternalExadataStorageServerSummary build() { this.maxFlashDiskThroughput, this.connectorId, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -401,6 +429,9 @@ public Builder copy(ExternalExadataStorageServerSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -436,7 +467,8 @@ public ExternalExadataStorageServerSummary( Integer maxFlashDiskThroughput, String connectorId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, displayName, @@ -459,6 +491,7 @@ public ExternalExadataStorageServerSummary( this.connectorId = connectorId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** The make model of the Exadata storage server. */ @@ -624,6 +657,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -650,6 +708,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", connectorId=").append(String.valueOf(this.connectorId)); 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(); } @@ -676,6 +735,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.connectorId, other.connectorId) && 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); } @@ -706,6 +766,7 @@ public int hashCode() { result = (result * PRIME) + (this.connectorId == null ? 43 : this.connectorId.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListener.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListener.java index 34275f37cd6..157cb99ae7b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListener.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListener.java @@ -49,7 +49,8 @@ public final class ExternalListener "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalListener( String id, @@ -78,7 +79,8 @@ public ExternalListener( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -107,6 +109,7 @@ public ExternalListener( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -568,6 +571,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -601,7 +631,8 @@ public ExternalListener build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -691,6 +722,9 @@ public Builder copy(ExternalListener model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -1202,6 +1236,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -1244,6 +1303,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -1285,6 +1345,7 @@ public boolean equals(Object o) { && 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); } @@ -1353,6 +1414,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListenerSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListenerSummary.java index 818e5e3f86d..13448d518a8 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListenerSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalListenerSummary.java @@ -37,7 +37,8 @@ public final class ExternalListenerSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ExternalListenerSummary( String id, @@ -53,7 +54,8 @@ public ExternalListenerSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.displayName = displayName; @@ -69,6 +71,7 @@ public ExternalListenerSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -322,6 +325,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -342,7 +372,8 @@ public ExternalListenerSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -393,6 +424,9 @@ public Builder copy(ExternalListenerSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -624,6 +658,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -653,6 +712,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -681,6 +741,7 @@ public boolean equals(Object o) { && 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); } @@ -720,6 +781,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.java new file mode 100644 index 00000000000..12ccf423939 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.java @@ -0,0 +1,116 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the Diagnostics and Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails + extends ExternalPluggableDatabaseFeatureDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private ConnectorDetails connectorDetails; + + public Builder connectorDetails(ConnectorDetails connectorDetails) { + this.connectorDetails = connectorDetails; + this.__explicitlySet__.add("connectorDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails build() { + ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails model = + new ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails( + this.connectorDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("connectorDetails")) { + this.connectorDetails(model.getConnectorDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails( + ConnectorDetails connectorDetails) { + super(connectorDetails); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails("); + 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 ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails)) { + return false; + } + + ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails other = + (ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java new file mode 100644 index 00000000000..47a5f09e687 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ExternalPluggableDatabaseFeatureDetails.java @@ -0,0 +1,91 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to enable the specified Database Management feature.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "feature", + defaultImpl = ExternalPluggableDatabaseFeatureDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails.class, + name = "DIAGNOSTICS_AND_MANAGEMENT") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class ExternalPluggableDatabaseFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"connectorDetails"}) + protected ExternalPluggableDatabaseFeatureDetails(ConnectorDetails connectorDetails) { + super(); + this.connectorDetails = connectorDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("connectorDetails") + private final ConnectorDetails connectorDetails; + + public ConnectorDetails getConnectorDetails() { + return connectorDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ExternalPluggableDatabaseFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("connectorDetails=").append(String.valueOf(this.connectorDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ExternalPluggableDatabaseFeatureDetails)) { + return false; + } + + ExternalPluggableDatabaseFeatureDetails other = (ExternalPluggableDatabaseFeatureDetails) o; + return java.util.Objects.equals(this.connectorDetails, other.connectorDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.connectorDetails == null ? 43 : this.connectorDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java index 5626bcbca5c..05a88842d75 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveClusterUsageMetrics.java @@ -77,12 +77,12 @@ public Builder status(HeatWaveClusterStatus status) { this.__explicitlySet__.add("status"); return this; } - /** The OCID for the DB system associated with the HeatWave cluster. */ + /** The OCID of the MySQL Database System associated with the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") private String dbSystemId; /** - * The OCID for the DB system associated with the HeatWave cluster. + * The OCID of the MySQL Database System associated with the HeatWave cluster. * * @param dbSystemId the value to set * @return this builder @@ -92,12 +92,12 @@ public Builder dbSystemId(String dbSystemId) { this.__explicitlySet__.add("dbSystemId"); return this; } - /** The name of the DB system associated with the HeatWave cluster. */ + /** The name of the MySQL Database System associated with the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemName") private String dbSystemName; /** - * The name of the DB system associated with the HeatWave cluster. + * The name of the MySQL Database System associated with the HeatWave cluster. * * @param dbSystemName the value to set * @return this builder @@ -122,12 +122,12 @@ public Builder heatWaveClusterDisplayName(String heatWaveClusterDisplayName) { this.__explicitlySet__.add("heatWaveClusterDisplayName"); return this; } - /** Number of nodes in the HeatWave cluster. */ + /** The number of nodes in the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private Integer nodeCount; /** - * Number of nodes in the HeatWave cluster. + * The number of nodes in the HeatWave cluster. * * @param nodeCount the value to set * @return this builder @@ -137,12 +137,12 @@ public Builder nodeCount(Integer nodeCount) { this.__explicitlySet__.add("nodeCount"); return this; } - /** If Lakehouse is enabled for the HeatWave cluster or not. */ + /** Indicates whether Lakehouse is enabled for the HeatWave cluster or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isLakehouseEnabled") private Boolean isLakehouseEnabled; /** - * If Lakehouse is enabled for the HeatWave cluster or not. + * Indicates whether Lakehouse is enabled for the HeatWave cluster or not. * * @param isLakehouseEnabled the value to set * @return this builder @@ -152,12 +152,12 @@ public Builder isLakehouseEnabled(Boolean isLakehouseEnabled) { this.__explicitlySet__.add("isLakehouseEnabled"); return this; } - /** Shape of the nodes in the HeatWave cluster. */ + /** The shape of the nodes in the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveNodeShape") private String heatWaveNodeShape; /** - * Shape of the nodes in the HeatWave cluster. + * The shape of the nodes in the HeatWave cluster. * * @param heatWaveNodeShape the value to set * @return this builder @@ -182,12 +182,12 @@ public Builder memorySize(Integer memorySize) { this.__explicitlySet__.add("memorySize"); return this; } - /** A list of the database health metrics like CPU and Memory. */ + /** A list of the HeatWave cluster health metrics like CPU and Memory. */ @com.fasterxml.jackson.annotation.JsonProperty("metrics") private java.util.List metrics; /** - * A list of the database health metrics like CPU and Memory. + * A list of the HeatWave cluster health metrics like CPU and Memory. * * @param metrics the value to set * @return this builder @@ -278,12 +278,12 @@ public HeatWaveClusterStatus getStatus() { return status; } - /** The OCID for the DB system associated with the HeatWave cluster. */ + /** The OCID of the MySQL Database System associated with the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") private final String dbSystemId; /** - * The OCID for the DB system associated with the HeatWave cluster. + * The OCID of the MySQL Database System associated with the HeatWave cluster. * * @return the value */ @@ -291,12 +291,12 @@ public String getDbSystemId() { return dbSystemId; } - /** The name of the DB system associated with the HeatWave cluster. */ + /** The name of the MySQL Database System associated with the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("dbSystemName") private final String dbSystemName; /** - * The name of the DB system associated with the HeatWave cluster. + * The name of the MySQL Database System associated with the HeatWave cluster. * * @return the value */ @@ -317,12 +317,12 @@ public String getHeatWaveClusterDisplayName() { return heatWaveClusterDisplayName; } - /** Number of nodes in the HeatWave cluster. */ + /** The number of nodes in the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("nodeCount") private final Integer nodeCount; /** - * Number of nodes in the HeatWave cluster. + * The number of nodes in the HeatWave cluster. * * @return the value */ @@ -330,12 +330,12 @@ public Integer getNodeCount() { return nodeCount; } - /** If Lakehouse is enabled for the HeatWave cluster or not. */ + /** Indicates whether Lakehouse is enabled for the HeatWave cluster or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isLakehouseEnabled") private final Boolean isLakehouseEnabled; /** - * If Lakehouse is enabled for the HeatWave cluster or not. + * Indicates whether Lakehouse is enabled for the HeatWave cluster or not. * * @return the value */ @@ -343,12 +343,12 @@ public Boolean getIsLakehouseEnabled() { return isLakehouseEnabled; } - /** Shape of the nodes in the HeatWave cluster. */ + /** The shape of the nodes in the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveNodeShape") private final String heatWaveNodeShape; /** - * Shape of the nodes in the HeatWave cluster. + * The shape of the nodes in the HeatWave cluster. * * @return the value */ @@ -369,12 +369,12 @@ public Integer getMemorySize() { return memorySize; } - /** A list of the database health metrics like CPU and Memory. */ + /** A list of the HeatWave cluster health metrics like CPU and Memory. */ @com.fasterxml.jackson.annotation.JsonProperty("metrics") private final java.util.List metrics; /** - * A list of the database health metrics like CPU and Memory. + * A list of the HeatWave cluster health metrics like CPU and Memory. * * @return the value */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java index 1d31507e184..59ad8c579e3 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetMetrics.java @@ -84,15 +84,15 @@ public Builder fleetClusters(java.util.List fleetCl return this; } /** - * A summary of the inventory count and the metrics that describe the aggregated usage of - * CPU, storage, and so on of all the HeatWave clusters in the fleet. + * The number of HeatWave clusters in the fleet and a summary of the metrics that provide + * the aggregated usage of CPU, storage, and so on of all the clusters. */ @com.fasterxml.jackson.annotation.JsonProperty("fleetSummary") private java.util.List fleetSummary; /** - * A summary of the inventory count and the metrics that describe the aggregated usage of - * CPU, storage, and so on of all the HeatWave clusters in the fleet. + * The number of HeatWave clusters in the fleet and a summary of the metrics that provide + * the aggregated usage of CPU, storage, and so on of all the clusters. * * @param fleetSummary the value to set * @return this builder @@ -183,15 +183,15 @@ public java.util.List getFleetClusters() { } /** - * A summary of the inventory count and the metrics that describe the aggregated usage of CPU, - * storage, and so on of all the HeatWave clusters in the fleet. + * The number of HeatWave clusters in the fleet and a summary of the metrics that provide the + * aggregated usage of CPU, storage, and so on of all the clusters. */ @com.fasterxml.jackson.annotation.JsonProperty("fleetSummary") private final java.util.List fleetSummary; /** - * A summary of the inventory count and the metrics that describe the aggregated usage of CPU, - * storage, and so on of all the HeatWave clusters in the fleet. + * The number of HeatWave clusters in the fleet and a summary of the metrics that provide the + * aggregated usage of CPU, storage, and so on of all the clusters. * * @return the value */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java index 0c5640d5096..27e5a8ce177 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveFleetSummary.java @@ -5,8 +5,8 @@ package com.oracle.bmc.databasemanagement.model; /** - * A summary of the inventory count and the metrics that describe the aggregated usage of CPU, - * storage, and so on of all the HeatWave clusters in the fleet.
+ * The inventory count of HeatWave clusters in the fleet and a summary of the metrics that provide + * the aggregated usage of CPU, storage, and so on of all the clusters.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -35,12 +35,12 @@ public HeatWaveFleetSummary( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The usage metrics for the Managed HeatWave clusters in the fleet. */ + /** The usage metrics for the HeatWave clusters in the fleet. */ @com.fasterxml.jackson.annotation.JsonProperty("aggregatedMetrics") private java.util.List aggregatedMetrics; /** - * The usage metrics for the Managed HeatWave clusters in the fleet. + * The usage metrics for the HeatWave clusters in the fleet. * * @param aggregatedMetrics the value to set * @return this builder @@ -51,12 +51,16 @@ public Builder aggregatedMetrics( this.__explicitlySet__.add("aggregatedMetrics"); return this; } - /** Summary counts of HeatWave clusters in the fleet grouped by cluster type. */ + /** + * The number of HeatWave clusters in the fleet, grouped by cluster type or other + * properties. + */ @com.fasterxml.jackson.annotation.JsonProperty("inventory") private java.util.List inventory; /** - * Summary counts of HeatWave clusters in the fleet grouped by cluster type. + * The number of HeatWave clusters in the fleet, grouped by cluster type or other + * properties. * * @param inventory the value to set * @return this builder @@ -100,12 +104,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The usage metrics for the Managed HeatWave clusters in the fleet. */ + /** The usage metrics for the HeatWave clusters in the fleet. */ @com.fasterxml.jackson.annotation.JsonProperty("aggregatedMetrics") private final java.util.List aggregatedMetrics; /** - * The usage metrics for the Managed HeatWave clusters in the fleet. + * The usage metrics for the HeatWave clusters in the fleet. * * @return the value */ @@ -113,12 +117,14 @@ public java.util.List getAggregatedMetrics return aggregatedMetrics; } - /** Summary counts of HeatWave clusters in the fleet grouped by cluster type. */ + /** + * The number of HeatWave clusters in the fleet, grouped by cluster type or other properties. + */ @com.fasterxml.jackson.annotation.JsonProperty("inventory") private final java.util.List inventory; /** - * Summary counts of HeatWave clusters in the fleet grouped by cluster type. + * The number of HeatWave clusters in the fleet, grouped by cluster type or other properties. * * @return the value */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java index 551cb4cb23c..48b2ef58949 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/HeatWaveNode.java @@ -65,12 +65,12 @@ public Builder status(HeatWaveNodeStatus status) { this.__explicitlySet__.add("status"); return this; } - /** The date and time the node was created. */ + /** The date and time the HeatWave node was created. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** - * The date and time the node was created. + * The date and time the HeatWave node was created. * * @param timeCreated the value to set * @return this builder @@ -146,12 +146,12 @@ public HeatWaveNodeStatus getStatus() { return status; } - /** The date and time the node was created. */ + /** The date and time the HeatWave node was created. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The date and time the node was created. + * The date and time the HeatWave node was created. * * @return the value */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/JobSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/JobSummary.java index 9e2a9d028e1..8f93789110b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/JobSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/JobSummary.java @@ -38,7 +38,8 @@ public final class JobSummary extends com.oracle.bmc.http.client.internal.Explic "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public JobSummary( String id, @@ -57,7 +58,8 @@ public JobSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -76,6 +78,7 @@ public JobSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -370,6 +373,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -393,7 +423,8 @@ public JobSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -453,6 +484,9 @@ public Builder copy(JobSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -721,6 +755,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -753,6 +812,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -786,6 +846,7 @@ public boolean equals(Object o) { && 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); } @@ -828,6 +889,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java index 8bacc49976d..131a5461e3a 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/LoadSqlTuningSetDetails.java @@ -1391,6 +1391,7 @@ public String getUpdateAttributes() { public enum UpdateCondition implements com.oracle.bmc.http.internal.BmcEnum { Old("OLD"), New("NEW"), + Null("NULL"), ; private final String value; diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MacsConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MacsConnectorDetails.java new file mode 100644 index 00000000000..bf4e4bac521 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MacsConnectorDetails.java @@ -0,0 +1,145 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The management agent details required to connect to an Oracle cloud Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MacsConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MacsConnectorDetails extends ConnectorDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * management agent. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managementAgentId") + private String managementAgentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * management agent. + * + * @param managementAgentId the value to set + * @return this builder + */ + public Builder managementAgentId(String managementAgentId) { + this.managementAgentId = managementAgentId; + this.__explicitlySet__.add("managementAgentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MacsConnectorDetails build() { + MacsConnectorDetails model = new MacsConnectorDetails(this.managementAgentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MacsConnectorDetails model) { + if (model.wasPropertyExplicitlySet("managementAgentId")) { + this.managementAgentId(model.getManagementAgentId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MacsConnectorDetails(String managementAgentId) { + super(); + this.managementAgentId = managementAgentId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * management agent. + */ + @com.fasterxml.jackson.annotation.JsonProperty("managementAgentId") + private final String managementAgentId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * management agent. + * + * @return the value + */ + public String getManagementAgentId() { + return managementAgentId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MacsConnectorDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", managementAgentId=").append(String.valueOf(this.managementAgentId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MacsConnectorDetails)) { + return false; + } + + MacsConnectorDetails other = (MacsConnectorDetails) o; + return java.util.Objects.equals(this.managementAgentId, other.managementAgentId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.managementAgentId == null ? 43 : this.managementAgentId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java index 904bcba6c73..b9203912a65 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabase.java @@ -47,7 +47,8 @@ public final class ManagedDatabase "pdbStatus", "additionalDetails", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ManagedDatabase( String id, @@ -74,7 +75,8 @@ public ManagedDatabase( java.util.List pdbStatus, java.util.Map additionalDetails, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -101,6 +103,7 @@ public ManagedDatabase( this.additionalDetails = additionalDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -537,6 +540,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -568,7 +598,8 @@ public ManagedDatabase build() { this.pdbStatus, this.additionalDetails, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -652,6 +683,9 @@ public Builder copy(ManagedDatabase model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -1046,6 +1080,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -1087,6 +1146,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", additionalDetails=").append(String.valueOf(this.additionalDetails)); 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(); } @@ -1127,6 +1187,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.additionalDetails, other.additionalDetails) && 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); } @@ -1193,6 +1254,7 @@ public int hashCode() { + (this.additionalDetails == null ? 43 : this.additionalDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroup.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroup.java index d0b56461bfa..2ad80471344 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroup.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroup.java @@ -33,7 +33,8 @@ public final class ManagedDatabaseGroup "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ManagedDatabaseGroup( String name, @@ -45,7 +46,8 @@ public ManagedDatabaseGroup( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.name = name; this.id = id; @@ -57,6 +59,7 @@ public ManagedDatabaseGroup( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -236,6 +239,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -252,7 +282,8 @@ public ManagedDatabaseGroup build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -291,6 +322,9 @@ public Builder copy(ManagedDatabaseGroup model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -458,6 +492,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -483,6 +542,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -507,6 +567,7 @@ public boolean equals(Object o) { && 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); } @@ -530,6 +591,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroupSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroupSummary.java index 176c15d16d8..e994b9bbe1b 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroupSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseGroupSummary.java @@ -32,7 +32,8 @@ public final class ManagedDatabaseGroupSummary "lifecycleState", "timeCreated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ManagedDatabaseGroupSummary( String name, @@ -43,7 +44,8 @@ public ManagedDatabaseGroupSummary( LifecycleStates lifecycleState, java.util.Date timeCreated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.name = name; this.id = id; @@ -54,6 +56,7 @@ public ManagedDatabaseGroupSummary( this.timeCreated = timeCreated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -218,6 +221,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -233,7 +263,8 @@ public ManagedDatabaseGroupSummary build() { this.lifecycleState, this.timeCreated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -269,6 +300,9 @@ public Builder copy(ManagedDatabaseGroupSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -423,6 +457,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -447,6 +506,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); 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(); } @@ -470,6 +530,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.timeCreated, other.timeCreated) && 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); } @@ -494,6 +555,7 @@ public int hashCode() { result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java index ecc3e62fce2..eb113af1c4c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedDatabaseSummary.java @@ -39,7 +39,8 @@ public final class ManagedDatabaseSummary "timeCreated", "databaseVersion", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public ManagedDatabaseSummary( String id, @@ -57,7 +58,8 @@ public ManagedDatabaseSummary( java.util.Date timeCreated, String databaseVersion, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -75,6 +77,7 @@ public ManagedDatabaseSummary( this.databaseVersion = databaseVersion; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -362,6 +365,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -384,7 +414,8 @@ public ManagedDatabaseSummary build() { this.timeCreated, this.databaseVersion, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -441,6 +472,9 @@ public Builder copy(ManagedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -704,6 +738,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -735,6 +794,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", databaseVersion=").append(String.valueOf(this.databaseVersion)); 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(); } @@ -765,6 +825,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.databaseVersion, other.databaseVersion) && 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); } @@ -802,6 +863,7 @@ public int hashCode() { + (this.databaseVersion == null ? 43 : this.databaseVersion.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java index 77c645c2a08..0ea0bf26c33 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ManagedMySqlDatabase.java @@ -178,12 +178,12 @@ public Builder heatWaveClusterDisplayName(String heatWaveClusterDisplayName) { this.__explicitlySet__.add("heatWaveClusterDisplayName"); return this; } - /** If HeatWave is enabled for this db system or not. */ + /** Indicates whether HeatWave is enabled for the MySQL Database System or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isHeatWaveEnabled") private Boolean isHeatWaveEnabled; /** - * If HeatWave is enabled for this db system or not. + * Indicates whether HeatWave is enabled for the MySQL Database System or not. * * @param isHeatWaveEnabled the value to set * @return this builder @@ -193,12 +193,12 @@ public Builder isHeatWaveEnabled(Boolean isHeatWaveEnabled) { this.__explicitlySet__.add("isHeatWaveEnabled"); return this; } - /** If HeatWave Lakehouse is enabled for the db system or not. */ + /** Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isLakehouseEnabled") private Boolean isLakehouseEnabled; /** - * If HeatWave Lakehouse is enabled for the db system or not. + * Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not. * * @param isLakehouseEnabled the value to set * @return this builder @@ -208,12 +208,12 @@ public Builder isLakehouseEnabled(Boolean isLakehouseEnabled) { this.__explicitlySet__.add("isLakehouseEnabled"); return this; } - /** Shape of the nodes in the HeatWave cluster. */ + /** The shape of the nodes in the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveNodeShape") private String heatWaveNodeShape; /** - * Shape of the nodes in the HeatWave cluster. + * The shape of the nodes in the HeatWave cluster. * * @param heatWaveNodeShape the value to set * @return this builder @@ -238,12 +238,12 @@ public Builder heatWaveMemorySize(Integer heatWaveMemorySize) { this.__explicitlySet__.add("heatWaveMemorySize"); return this; } - /** The information about an individual HeatWave nodes in the cluster. */ + /** The information about individual HeatWave nodes in the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveNodes") private java.util.List heatWaveNodes; /** - * The information about an individual HeatWave nodes in the cluster. + * The information about individual HeatWave nodes in the cluster. * * @param heatWaveNodes the value to set * @return this builder @@ -253,12 +253,12 @@ public Builder heatWaveNodes(java.util.List heatWaveNodes) { this.__explicitlySet__.add("heatWaveNodes"); return this; } - /** If the HeatWave cluster is active or not. */ + /** Indicates whether the HeatWave cluster is active or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isHeatWaveActive") private Boolean isHeatWaveActive; /** - * If the HeatWave cluster is active or not. + * Indicates whether the HeatWave cluster is active or not. * * @param isHeatWaveActive the value to set * @return this builder @@ -458,12 +458,12 @@ public String getHeatWaveClusterDisplayName() { return heatWaveClusterDisplayName; } - /** If HeatWave is enabled for this db system or not. */ + /** Indicates whether HeatWave is enabled for the MySQL Database System or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isHeatWaveEnabled") private final Boolean isHeatWaveEnabled; /** - * If HeatWave is enabled for this db system or not. + * Indicates whether HeatWave is enabled for the MySQL Database System or not. * * @return the value */ @@ -471,12 +471,12 @@ public Boolean getIsHeatWaveEnabled() { return isHeatWaveEnabled; } - /** If HeatWave Lakehouse is enabled for the db system or not. */ + /** Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isLakehouseEnabled") private final Boolean isLakehouseEnabled; /** - * If HeatWave Lakehouse is enabled for the db system or not. + * Indicates whether HeatWave Lakehouse is enabled for the MySQL Database System or not. * * @return the value */ @@ -484,12 +484,12 @@ public Boolean getIsLakehouseEnabled() { return isLakehouseEnabled; } - /** Shape of the nodes in the HeatWave cluster. */ + /** The shape of the nodes in the HeatWave cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveNodeShape") private final String heatWaveNodeShape; /** - * Shape of the nodes in the HeatWave cluster. + * The shape of the nodes in the HeatWave cluster. * * @return the value */ @@ -510,12 +510,12 @@ public Integer getHeatWaveMemorySize() { return heatWaveMemorySize; } - /** The information about an individual HeatWave nodes in the cluster. */ + /** The information about individual HeatWave nodes in the cluster. */ @com.fasterxml.jackson.annotation.JsonProperty("heatWaveNodes") private final java.util.List heatWaveNodes; /** - * The information about an individual HeatWave nodes in the cluster. + * The information about individual HeatWave nodes in the cluster. * * @return the value */ @@ -523,12 +523,12 @@ public java.util.List getHeatWaveNodes() { return heatWaveNodes; } - /** If the HeatWave cluster is active or not. */ + /** Indicates whether the HeatWave cluster is active or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isHeatWaveActive") private final Boolean isHeatWaveActive; /** - * If the HeatWave cluster is active or not. + * Indicates whether the HeatWave cluster is active or not. * * @return the value */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..6f20d4f3134 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyDatabaseManagementFeatureDetails.java @@ -0,0 +1,125 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to modify a Database Management features for an Oracle cloud database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ModifyDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ModifyDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public ModifyDatabaseManagementFeatureDetails(DatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private DatabaseFeatureDetails featureDetails; + + public Builder featureDetails(DatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ModifyDatabaseManagementFeatureDetails build() { + ModifyDatabaseManagementFeatureDetails model = + new ModifyDatabaseManagementFeatureDetails(this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModifyDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final DatabaseFeatureDetails featureDetails; + + public DatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ModifyDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModifyDatabaseManagementFeatureDetails)) { + return false; + } + + ModifyDatabaseManagementFeatureDetails other = (ModifyDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyPluggableDatabaseManagementFeatureDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyPluggableDatabaseManagementFeatureDetails.java new file mode 100644 index 00000000000..d4ca954804f --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/ModifyPluggableDatabaseManagementFeatureDetails.java @@ -0,0 +1,127 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The details required to modify a Database Management feature for an Oracle cloud pluggable + * database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ModifyPluggableDatabaseManagementFeatureDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ModifyPluggableDatabaseManagementFeatureDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"featureDetails"}) + public ModifyPluggableDatabaseManagementFeatureDetails(DatabaseFeatureDetails featureDetails) { + super(); + this.featureDetails = featureDetails; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") + private DatabaseFeatureDetails featureDetails; + + public Builder featureDetails(DatabaseFeatureDetails featureDetails) { + this.featureDetails = featureDetails; + this.__explicitlySet__.add("featureDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ModifyPluggableDatabaseManagementFeatureDetails build() { + ModifyPluggableDatabaseManagementFeatureDetails model = + new ModifyPluggableDatabaseManagementFeatureDetails(this.featureDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ModifyPluggableDatabaseManagementFeatureDetails model) { + if (model.wasPropertyExplicitlySet("featureDetails")) { + this.featureDetails(model.getFeatureDetails()); + } + 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("featureDetails") + private final DatabaseFeatureDetails featureDetails; + + public DatabaseFeatureDetails getFeatureDetails() { + return featureDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ModifyPluggableDatabaseManagementFeatureDetails("); + sb.append("super=").append(super.toString()); + sb.append("featureDetails=").append(String.valueOf(this.featureDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ModifyPluggableDatabaseManagementFeatureDetails)) { + return false; + } + + ModifyPluggableDatabaseManagementFeatureDetails other = + (ModifyPluggableDatabaseManagementFeatureDetails) o; + return java.util.Objects.equals(this.featureDetails, other.featureDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java index 6310ce6db33..5c117ab8fd4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlDatabaseUsageMetrics.java @@ -191,12 +191,12 @@ public Builder databaseStatus(MySqlDatabaseStatus databaseStatus) { this.__explicitlySet__.add("databaseStatus"); return this; } - /** If HeatWave is enabled for this db system or not. */ + /** Indicates whether HeatWave is enabled for the MySQL Database System or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isHeatWaveEnabled") private Boolean isHeatWaveEnabled; /** - * If HeatWave is enabled for this db system or not. + * Indicates whether HeatWave is enabled for the MySQL Database System or not. * * @param isHeatWaveEnabled the value to set * @return this builder @@ -435,12 +435,12 @@ public MySqlDatabaseStatus getDatabaseStatus() { return databaseStatus; } - /** If HeatWave is enabled for this db system or not. */ + /** Indicates whether HeatWave is enabled for the MySQL Database System or not. */ @com.fasterxml.jackson.annotation.JsonProperty("isHeatWaveEnabled") private final Boolean isHeatWaveEnabled; /** - * If HeatWave is enabled for this db system or not. + * Indicates whether HeatWave is enabled for the MySQL Database System or not. * * @return the value */ diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java index 292852d65dc..3743cc148dd 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/MySqlFleetMetricDefinition.java @@ -25,6 +25,7 @@ public final class MySqlFleetMetricDefinition @Deprecated @java.beans.ConstructorProperties({ "metricValue", + "metricValueDouble", "metricName", "timestamp", "dimensions", @@ -32,12 +33,14 @@ public final class MySqlFleetMetricDefinition }) public MySqlFleetMetricDefinition( Integer metricValue, + Double metricValueDouble, String metricName, java.util.Date timestamp, java.util.List dimensions, String unit) { super(); this.metricValue = metricValue; + this.metricValueDouble = metricValueDouble; this.metricName = metricName; this.timestamp = timestamp; this.dimensions = dimensions; @@ -61,6 +64,21 @@ public Builder metricValue(Integer metricValue) { this.__explicitlySet__.add("metricValue"); return this; } + /** The value of the metric. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricValueDouble") + private Double metricValueDouble; + + /** + * The value of the metric. + * + * @param metricValueDouble the value to set + * @return this builder + */ + public Builder metricValueDouble(Double metricValueDouble) { + this.metricValueDouble = metricValueDouble; + this.__explicitlySet__.add("metricValueDouble"); + return this; + } /** The name of the metric. */ @com.fasterxml.jackson.annotation.JsonProperty("metricName") private String metricName; @@ -129,6 +147,7 @@ public MySqlFleetMetricDefinition build() { MySqlFleetMetricDefinition model = new MySqlFleetMetricDefinition( this.metricValue, + this.metricValueDouble, this.metricName, this.timestamp, this.dimensions, @@ -144,6 +163,9 @@ public Builder copy(MySqlFleetMetricDefinition model) { if (model.wasPropertyExplicitlySet("metricValue")) { this.metricValue(model.getMetricValue()); } + if (model.wasPropertyExplicitlySet("metricValueDouble")) { + this.metricValueDouble(model.getMetricValueDouble()); + } if (model.wasPropertyExplicitlySet("metricName")) { this.metricName(model.getMetricName()); } @@ -182,6 +204,19 @@ public Integer getMetricValue() { return metricValue; } + /** The value of the metric. */ + @com.fasterxml.jackson.annotation.JsonProperty("metricValueDouble") + private final Double metricValueDouble; + + /** + * The value of the metric. + * + * @return the value + */ + public Double getMetricValueDouble() { + return metricValueDouble; + } + /** The name of the metric. */ @com.fasterxml.jackson.annotation.JsonProperty("metricName") private final String metricName; @@ -250,6 +285,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("MySqlFleetMetricDefinition("); sb.append("super=").append(super.toString()); sb.append("metricValue=").append(String.valueOf(this.metricValue)); + sb.append(", metricValueDouble=").append(String.valueOf(this.metricValueDouble)); sb.append(", metricName=").append(String.valueOf(this.metricName)); sb.append(", timestamp=").append(String.valueOf(this.timestamp)); sb.append(", dimensions=").append(String.valueOf(this.dimensions)); @@ -269,6 +305,7 @@ public boolean equals(Object o) { MySqlFleetMetricDefinition other = (MySqlFleetMetricDefinition) o; return java.util.Objects.equals(this.metricValue, other.metricValue) + && java.util.Objects.equals(this.metricValueDouble, other.metricValueDouble) && java.util.Objects.equals(this.metricName, other.metricName) && java.util.Objects.equals(this.timestamp, other.timestamp) && java.util.Objects.equals(this.dimensions, other.dimensions) @@ -281,6 +318,9 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.metricValue == null ? 43 : this.metricValue.hashCode()); + result = + (result * PRIME) + + (this.metricValueDouble == null ? 43 : this.metricValueDouble.hashCode()); result = (result * PRIME) + (this.metricName == null ? 43 : this.metricName.hashCode()); result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java index e8ff941e9be..759f69434cb 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredential.java @@ -36,7 +36,8 @@ public final class NamedCredential "timeUpdated", "associatedResource", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public NamedCredential( String name, @@ -52,7 +53,8 @@ public NamedCredential( java.util.Date timeUpdated, String associatedResource, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.name = name; this.id = id; @@ -68,6 +70,7 @@ public NamedCredential( this.associatedResource = associatedResource; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -305,6 +308,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -325,7 +355,8 @@ public NamedCredential build() { this.timeUpdated, this.associatedResource, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -376,6 +407,9 @@ public Builder copy(NamedCredential model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -593,6 +627,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -622,6 +681,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", associatedResource=").append(String.valueOf(this.associatedResource)); 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(); } @@ -650,6 +710,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.associatedResource, other.associatedResource) && 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); } @@ -681,6 +742,7 @@ public int hashCode() { : this.associatedResource.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java index 888c4b80cd1..f3f2fe5cf8d 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/NamedCredentialSummary.java @@ -35,7 +35,8 @@ public final class NamedCredentialSummary "timeCreated", "timeUpdated", "freeformTags", - "definedTags" + "definedTags", + "systemTags" }) public NamedCredentialSummary( String id, @@ -49,7 +50,8 @@ public NamedCredentialSummary( java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super(); this.id = id; this.compartmentId = compartmentId; @@ -63,6 +65,7 @@ public NamedCredentialSummary( this.timeUpdated = timeUpdated; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -278,6 +281,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -296,7 +326,8 @@ public NamedCredentialSummary build() { this.timeCreated, this.timeUpdated, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -341,6 +372,9 @@ public Builder copy(NamedCredentialSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -540,6 +574,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -567,6 +626,7 @@ public String toString(boolean includeByteArrayContents) { 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(); } @@ -593,6 +653,7 @@ public boolean equals(Object o) { && 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); } @@ -618,6 +679,7 @@ public int 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PrivateEndPointConnectorDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PrivateEndPointConnectorDetails.java new file mode 100644 index 00000000000..709eefb2812 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/PrivateEndPointConnectorDetails.java @@ -0,0 +1,146 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.model; + +/** + * The private endpoint details required to connect to an Oracle cloud Database.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = PrivateEndPointConnectorDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectorType") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class PrivateEndPointConnectorDetails extends ConnectorDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndPointId") + private String privateEndPointId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * private endpoint. + * + * @param privateEndPointId the value to set + * @return this builder + */ + public Builder privateEndPointId(String privateEndPointId) { + this.privateEndPointId = privateEndPointId; + this.__explicitlySet__.add("privateEndPointId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public PrivateEndPointConnectorDetails build() { + PrivateEndPointConnectorDetails model = + new PrivateEndPointConnectorDetails(this.privateEndPointId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(PrivateEndPointConnectorDetails model) { + if (model.wasPropertyExplicitlySet("privateEndPointId")) { + this.privateEndPointId(model.getPrivateEndPointId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public PrivateEndPointConnectorDetails(String privateEndPointId) { + super(); + this.privateEndPointId = privateEndPointId; + } + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * private endpoint. + */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndPointId") + private final String privateEndPointId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * private endpoint. + * + * @return the value + */ + public String getPrivateEndPointId() { + return privateEndPointId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("PrivateEndPointConnectorDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", privateEndPointId=").append(String.valueOf(this.privateEndPointId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof PrivateEndPointConnectorDetails)) { + return false; + } + + PrivateEndPointConnectorDetails other = (PrivateEndPointConnectorDetails) o; + return java.util.Objects.equals(this.privateEndPointId, other.privateEndPointId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.privateEndPointId == null ? 43 : this.privateEndPointId.hashCode()); + return result; + } +} diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java index 6c9c1487a08..f281e60687e 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SaveSqlTuningSetAsDetails.java @@ -1211,6 +1211,7 @@ public UpdateOption getUpdateOption() { public enum UpdateCondition implements com.oracle.bmc.http.internal.BmcEnum { Old("OLD"), New("NEW"), + Null("NULL"), ; private final String value; diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java index 3d9fed11246..c42698756b9 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlJob.java @@ -343,6 +343,33 @@ public Builder 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System + * tags can be viewed by users, but can only be created by the system. + * + *

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(); @@ -375,7 +402,8 @@ public SqlJob build() { this.role, this.namedCredentialId, this.freeformTags, - this.definedTags); + this.definedTags, + this.systemTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -462,6 +490,9 @@ public Builder copy(SqlJob model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } return this; } } @@ -502,7 +533,8 @@ public SqlJob( Role role, String namedCredentialId, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + java.util.Map> systemTags) { super( id, compartmentId, @@ -530,6 +562,7 @@ public SqlJob( this.namedCredentialId = namedCredentialId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.systemTags = systemTags; } /** The type of SQL. This is a mandatory field for the EXECUTE_SQL operationType. */ @@ -824,6 +857,31 @@ 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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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](https://docs.cloud.oracle.com/Content/General/Concepts/resourcetags.htm). System tags + * can be viewed by users, but can only be created by the system. + * + *

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); @@ -849,6 +907,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", namedCredentialId=").append(String.valueOf(this.namedCredentialId)); 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(); } @@ -873,6 +932,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.namedCredentialId, other.namedCredentialId) && 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); } @@ -894,6 +954,7 @@ public int hashCode() { + (this.namedCredentialId == null ? 43 : this.namedCredentialId.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()); return result; } } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaseline.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaseline.java index 9a43ca32420..049edbca37c 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaseline.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaseline.java @@ -48,12 +48,12 @@ public SqlPlanBaseline( java.util.Date timeCreated, java.util.Date timeLastModified, java.util.Date timeLastExecuted, - String enabled, - String accepted, - String fixed, - String reproduced, - String autoPurge, - String adaptive, + Enabled enabled, + Accepted accepted, + Fixed fixed, + Reproduced reproduced, + AutoPurge autoPurge, + Adaptive adaptive, String module, String action, String executionPlan) { @@ -197,7 +197,7 @@ public Builder timeLastExecuted(java.util.Date timeLastExecuted) { * Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("enabled") - private String enabled; + private Enabled enabled; /** * Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). @@ -205,14 +205,14 @@ public Builder timeLastExecuted(java.util.Date timeLastExecuted) { * @param enabled the value to set * @return this builder */ - public Builder enabled(String enabled) { + public Builder enabled(Enabled enabled) { this.enabled = enabled; this.__explicitlySet__.add("enabled"); return this; } /** Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("accepted") - private String accepted; + private Accepted accepted; /** * Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). @@ -220,14 +220,14 @@ public Builder enabled(String enabled) { * @param accepted the value to set * @return this builder */ - public Builder accepted(String accepted) { + public Builder accepted(Accepted accepted) { this.accepted = accepted; this.__explicitlySet__.add("accepted"); return this; } /** Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("fixed") - private String fixed; + private Fixed fixed; /** * Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). @@ -235,7 +235,7 @@ public Builder accepted(String accepted) { * @param fixed the value to set * @return this builder */ - public Builder fixed(String fixed) { + public Builder fixed(Fixed fixed) { this.fixed = fixed; this.__explicitlySet__.add("fixed"); return this; @@ -246,7 +246,7 @@ public Builder fixed(String fixed) { * baseline. */ @com.fasterxml.jackson.annotation.JsonProperty("reproduced") - private String reproduced; + private Reproduced reproduced; /** * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not @@ -256,14 +256,14 @@ public Builder fixed(String fixed) { * @param reproduced the value to set * @return this builder */ - public Builder reproduced(String reproduced) { + public Builder reproduced(Reproduced reproduced) { this.reproduced = reproduced; this.__explicitlySet__.add("reproduced"); return this; } /** Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("autoPurge") - private String autoPurge; + private AutoPurge autoPurge; /** * Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). @@ -271,7 +271,7 @@ public Builder reproduced(String reproduced) { * @param autoPurge the value to set * @return this builder */ - public Builder autoPurge(String autoPurge) { + public Builder autoPurge(AutoPurge autoPurge) { this.autoPurge = autoPurge; this.__explicitlySet__.add("autoPurge"); return this; @@ -289,7 +289,7 @@ public Builder autoPurge(String autoPurge) { * property is set to {@code NO} since the plan is no longer adaptive, but resolved. */ @com.fasterxml.jackson.annotation.JsonProperty("adaptive") - private String adaptive; + private Adaptive adaptive; /** * Indicates whether a plan that is automatically captured by SQL plan management is marked @@ -306,7 +306,7 @@ public Builder autoPurge(String autoPurge) { * @param adaptive the value to set * @return this builder */ - public Builder adaptive(String adaptive) { + public Builder adaptive(Adaptive adaptive) { this.adaptive = adaptive; this.__explicitlySet__.add("adaptive"); return this; @@ -549,51 +549,237 @@ public java.util.Date getTimeLastExecuted() { return timeLastExecuted; } + /** Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). */ + public enum Enabled implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Enabled.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Enabled v : Enabled.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Enabled(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Enabled create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Enabled', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("enabled") - private final String enabled; + private final Enabled enabled; /** * Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). * * @return the value */ - public String getEnabled() { + public Enabled getEnabled() { return enabled; } + /** Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). */ + public enum Accepted implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Accepted.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Accepted v : Accepted.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Accepted(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Accepted create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Accepted', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("accepted") - private final String accepted; + private final Accepted accepted; /** * Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). * * @return the value */ - public String getAccepted() { + public Accepted getAccepted() { return accepted; } + /** Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). */ + public enum Fixed implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Fixed.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fixed v : Fixed.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Fixed(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fixed create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Fixed', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("fixed") - private final String fixed; + private final Fixed fixed; /** * Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). * * @return the value */ - public String getFixed() { + public Fixed getFixed() { return fixed; } + /** + * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not ({@code + * NO}). The value is set to {@code YES} when a plan is initially added to the plan baseline. + */ + public enum Reproduced implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Reproduced.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Reproduced v : Reproduced.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Reproduced(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Reproduced create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Reproduced', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not ({@code * NO}). The value is set to {@code YES} when a plan is initially added to the plan baseline. */ @com.fasterxml.jackson.annotation.JsonProperty("reproduced") - private final String reproduced; + private final Reproduced reproduced; /** * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not ({@code @@ -601,23 +787,126 @@ public String getFixed() { * * @return the value */ - public String getReproduced() { + public Reproduced getReproduced() { return reproduced; } + /** Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). */ + public enum AutoPurge implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AutoPurge.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoPurge v : AutoPurge.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoPurge(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoPurge create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoPurge', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("autoPurge") - private final String autoPurge; + private final AutoPurge autoPurge; /** * Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). * * @return the value */ - public String getAutoPurge() { + public AutoPurge getAutoPurge() { return autoPurge; } + /** + * Indicates whether a plan that is automatically captured by SQL plan management is marked + * adaptive or not. + * + *

When a new adaptive plan is found for a SQL statement that has an existing SQL plan + * baseline, that new plan will be added to the SQL plan baseline as an unaccepted plan, and the + * {@code ADAPTIVE} property will be marked {@code YES}. When this new plan is verified (either + * manually or via the auto evolve task), the plan will be test executed and the final plan + * determined at execution will become an accepted plan if its performance is better than the + * existing plan baseline. At this point, the value of the {@code ADAPTIVE} property is set to + * {@code NO} since the plan is no longer adaptive, but resolved. + */ + public enum Adaptive implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Adaptive.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Adaptive v : Adaptive.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Adaptive(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Adaptive create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Adaptive', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** * Indicates whether a plan that is automatically captured by SQL plan management is marked * adaptive or not. @@ -631,7 +920,7 @@ public String getAutoPurge() { * {@code NO} since the plan is no longer adaptive, but resolved. */ @com.fasterxml.jackson.annotation.JsonProperty("adaptive") - private final String adaptive; + private final Adaptive adaptive; /** * Indicates whether a plan that is automatically captured by SQL plan management is marked @@ -647,7 +936,7 @@ public String getAutoPurge() { * * @return the value */ - public String getAdaptive() { + public Adaptive getAdaptive() { return adaptive; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaselineSummary.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaselineSummary.java index 9023ba29a07..b14e355a5e2 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaselineSummary.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlPlanBaselineSummary.java @@ -46,12 +46,12 @@ public SqlPlanBaselineSummary( java.util.Date timeCreated, java.util.Date timeLastModified, java.util.Date timeLastExecuted, - String enabled, - String accepted, - String fixed, - String reproduced, - String autoPurge, - String adaptive) { + Enabled enabled, + Accepted accepted, + Fixed fixed, + Reproduced reproduced, + AutoPurge autoPurge, + Adaptive adaptive) { super(); this.planName = planName; this.sqlHandle = sqlHandle; @@ -189,7 +189,7 @@ public Builder timeLastExecuted(java.util.Date timeLastExecuted) { * Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("enabled") - private String enabled; + private Enabled enabled; /** * Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). @@ -197,14 +197,14 @@ public Builder timeLastExecuted(java.util.Date timeLastExecuted) { * @param enabled the value to set * @return this builder */ - public Builder enabled(String enabled) { + public Builder enabled(Enabled enabled) { this.enabled = enabled; this.__explicitlySet__.add("enabled"); return this; } /** Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("accepted") - private String accepted; + private Accepted accepted; /** * Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). @@ -212,14 +212,14 @@ public Builder enabled(String enabled) { * @param accepted the value to set * @return this builder */ - public Builder accepted(String accepted) { + public Builder accepted(Accepted accepted) { this.accepted = accepted; this.__explicitlySet__.add("accepted"); return this; } /** Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("fixed") - private String fixed; + private Fixed fixed; /** * Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). @@ -227,7 +227,7 @@ public Builder accepted(String accepted) { * @param fixed the value to set * @return this builder */ - public Builder fixed(String fixed) { + public Builder fixed(Fixed fixed) { this.fixed = fixed; this.__explicitlySet__.add("fixed"); return this; @@ -238,7 +238,7 @@ public Builder fixed(String fixed) { * baseline. */ @com.fasterxml.jackson.annotation.JsonProperty("reproduced") - private String reproduced; + private Reproduced reproduced; /** * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not @@ -248,14 +248,14 @@ public Builder fixed(String fixed) { * @param reproduced the value to set * @return this builder */ - public Builder reproduced(String reproduced) { + public Builder reproduced(Reproduced reproduced) { this.reproduced = reproduced; this.__explicitlySet__.add("reproduced"); return this; } /** Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("autoPurge") - private String autoPurge; + private AutoPurge autoPurge; /** * Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). @@ -263,7 +263,7 @@ public Builder reproduced(String reproduced) { * @param autoPurge the value to set * @return this builder */ - public Builder autoPurge(String autoPurge) { + public Builder autoPurge(AutoPurge autoPurge) { this.autoPurge = autoPurge; this.__explicitlySet__.add("autoPurge"); return this; @@ -281,7 +281,7 @@ public Builder autoPurge(String autoPurge) { * property is set to {@code NO} since the plan is no longer adaptive, but resolved. */ @com.fasterxml.jackson.annotation.JsonProperty("adaptive") - private String adaptive; + private Adaptive adaptive; /** * Indicates whether a plan that is automatically captured by SQL plan management is marked @@ -298,7 +298,7 @@ public Builder autoPurge(String autoPurge) { * @param adaptive the value to set * @return this builder */ - public Builder adaptive(String adaptive) { + public Builder adaptive(Adaptive adaptive) { this.adaptive = adaptive; this.__explicitlySet__.add("adaptive"); return this; @@ -484,51 +484,237 @@ public java.util.Date getTimeLastExecuted() { return timeLastExecuted; } + /** Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). */ + public enum Enabled implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Enabled.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Enabled v : Enabled.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Enabled(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Enabled create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Enabled', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("enabled") - private final String enabled; + private final Enabled enabled; /** * Indicates whether the plan baseline is enabled ({@code YES}) or disabled ({@code NO}). * * @return the value */ - public String getEnabled() { + public Enabled getEnabled() { return enabled; } + /** Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). */ + public enum Accepted implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Accepted.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Accepted v : Accepted.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Accepted(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Accepted create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Accepted', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("accepted") - private final String accepted; + private final Accepted accepted; /** * Indicates whether the plan baseline is accepted ({@code YES}) or not ({@code NO}). * * @return the value */ - public String getAccepted() { + public Accepted getAccepted() { return accepted; } + /** Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). */ + public enum Fixed implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Fixed.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Fixed v : Fixed.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Fixed(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Fixed create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Fixed', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("fixed") - private final String fixed; + private final Fixed fixed; /** * Indicates whether the plan baseline is fixed ({@code YES}) or not ({@code NO}). * * @return the value */ - public String getFixed() { + public Fixed getFixed() { return fixed; } + /** + * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not ({@code + * NO}). The value is set to {@code YES} when a plan is initially added to the plan baseline. + */ + public enum Reproduced implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Reproduced.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Reproduced v : Reproduced.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Reproduced(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Reproduced create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Reproduced', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not ({@code * NO}). The value is set to {@code YES} when a plan is initially added to the plan baseline. */ @com.fasterxml.jackson.annotation.JsonProperty("reproduced") - private final String reproduced; + private final Reproduced reproduced; /** * Indicates whether the optimizer was able to reproduce the plan ({@code YES}) or not ({@code @@ -536,23 +722,126 @@ public String getFixed() { * * @return the value */ - public String getReproduced() { + public Reproduced getReproduced() { return reproduced; } + /** Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). */ + public enum AutoPurge implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AutoPurge.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AutoPurge v : AutoPurge.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AutoPurge(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AutoPurge create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AutoPurge', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). */ @com.fasterxml.jackson.annotation.JsonProperty("autoPurge") - private final String autoPurge; + private final AutoPurge autoPurge; /** * Indicates whether the plan baseline is auto-purged ({@code YES}) or not ({@code NO}). * * @return the value */ - public String getAutoPurge() { + public AutoPurge getAutoPurge() { return autoPurge; } + /** + * Indicates whether a plan that is automatically captured by SQL plan management is marked + * adaptive or not. + * + *

When a new adaptive plan is found for a SQL statement that has an existing SQL plan + * baseline, that new plan will be added to the SQL plan baseline as an unaccepted plan, and the + * {@code ADAPTIVE} property will be marked {@code YES}. When this new plan is verified (either + * manually or via the auto evolve task), the plan will be test executed and the final plan + * determined at execution will become an accepted plan if its performance is better than the + * existing plan baseline. At this point, the value of the {@code ADAPTIVE} property is set to + * {@code NO} since the plan is no longer adaptive, but resolved. + */ + public enum Adaptive implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(Adaptive.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Adaptive v : Adaptive.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Adaptive(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Adaptive create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Adaptive', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** * Indicates whether a plan that is automatically captured by SQL plan management is marked * adaptive or not. @@ -566,7 +855,7 @@ public String getAutoPurge() { * {@code NO} since the plan is no longer adaptive, but resolved. */ @com.fasterxml.jackson.annotation.JsonProperty("adaptive") - private final String adaptive; + private final Adaptive adaptive; /** * Indicates whether a plan that is automatically captured by SQL plan management is marked @@ -582,7 +871,7 @@ public String getAutoPurge() { * * @return the value */ - public String getAdaptive() { + public Adaptive getAdaptive() { return adaptive; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSet.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSet.java index 2dffe73d0c4..085a479cb3f 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSet.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/SqlTuningSet.java @@ -46,7 +46,7 @@ public SqlTuningSet( SqlTuningSetStatusTypes status, String scheduledJobName, String errorMessage, - String allSqlStatementsFetched, + AllSqlStatementsFetched allSqlStatementsFetched, java.util.List sqlList) { super(); this.id = id; @@ -223,7 +223,7 @@ public Builder errorMessage(String errorMessage) { * criteria. User should fine tune the filter criteria to narrow down the result set. */ @com.fasterxml.jackson.annotation.JsonProperty("allSqlStatementsFetched") - private String allSqlStatementsFetched; + private AllSqlStatementsFetched allSqlStatementsFetched; /** * In OCI database management, there is a limit to fetch only 2000 rows. This flag indicates @@ -235,7 +235,7 @@ public Builder errorMessage(String errorMessage) { * @param allSqlStatementsFetched the value to set * @return this builder */ - public Builder allSqlStatementsFetched(String allSqlStatementsFetched) { + public Builder allSqlStatementsFetched(AllSqlStatementsFetched allSqlStatementsFetched) { this.allSqlStatementsFetched = allSqlStatementsFetched; this.__explicitlySet__.add("allSqlStatementsFetched"); return this; @@ -461,6 +461,58 @@ public String getErrorMessage() { return errorMessage; } + /** + * In OCI database management, there is a limit to fetch only 2000 rows. This flag indicates + * whether all Sql statements of this Sql tuning set matching the filter criteria are fetched or + * not. Possible values are 'Yes' or 'No' - Yes - All Sql statements matching the filter + * criteria are fetched. - No - There are more Sql statements matching the fitler criteria. User + * should fine tune the filter criteria to narrow down the result set. + */ + public enum AllSqlStatementsFetched implements com.oracle.bmc.http.internal.BmcEnum { + Yes("YES"), + No("NO"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(AllSqlStatementsFetched.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AllSqlStatementsFetched v : AllSqlStatementsFetched.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + AllSqlStatementsFetched(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AllSqlStatementsFetched create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'AllSqlStatementsFetched', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; /** * In OCI database management, there is a limit to fetch only 2000 rows. This flag indicates * whether all Sql statements of this Sql tuning set matching the filter criteria are fetched or @@ -469,7 +521,7 @@ public String getErrorMessage() { * should fine tune the filter criteria to narrow down the result set. */ @com.fasterxml.jackson.annotation.JsonProperty("allSqlStatementsFetched") - private final String allSqlStatementsFetched; + private final AllSqlStatementsFetched allSqlStatementsFetched; /** * In OCI database management, there is a limit to fetch only 2000 rows. This flag indicates @@ -480,7 +532,7 @@ public String getErrorMessage() { * * @return the value */ - public String getAllSqlStatementsFetched() { + public AllSqlStatementsFetched getAllSqlStatementsFetched() { return allSqlStatementsFetched; } diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java index f323af56e6e..1df444db0ae 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/model/WorkRequestOperationType.java @@ -21,6 +21,15 @@ public enum WorkRequestOperationType implements com.oracle.bmc.http.internal.Bmc EnableExadataInfrastructure("ENABLE_EXADATA_INFRASTRUCTURE"), DeleteExadataInfrastructure("DELETE_EXADATA_INFRASTRUCTURE"), ChangeExadataCompartment("CHANGE_EXADATA_COMPARTMENT"), + EnableSqlWatch("ENABLE_SQL_WATCH"), + DisableSqlWatch("DISABLE_SQL_WATCH"), + ModifySqlWatch("MODIFY_SQL_WATCH"), + EnableDblm("ENABLE_DBLM"), + DisableDblm("DISABLE_DBLM"), + ModifyDblm("MODIFY_DBLM"), + EnableDbmgmt("ENABLE_DBMGMT"), + DisableDbmgmt("DISABLE_DBMGMT"), + ModifyDbmgmt("MODIFY_DBMGMT"), /** * This value is used if a service returns a value for this enum that is not recognized by this diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..b03f8728d08 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableDatabaseManagementFeatureRequest.java @@ -0,0 +1,381 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + private String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + public String getDatabaseId() { + return databaseId; + } + /** + * The details required to disable a Database Management feature for an Oracle cloud database. + */ + private com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails + disableDatabaseManagementFeatureDetails; + + /** + * The details required to disable a Database Management feature for an Oracle cloud database. + */ + public com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails + getDisableDatabaseManagementFeatureDetails() { + return disableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails + getBody$() { + return disableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .DisableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + private String databaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + * + * @param databaseId the value to set + * @return this builder instance + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * The details required to disable a Database Management feature for an Oracle cloud + * database. + */ + private com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails + disableDatabaseManagementFeatureDetails = null; + + /** + * The details required to disable a Database Management feature for an Oracle cloud + * database. + * + * @param disableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder disableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails + disableDatabaseManagementFeatureDetails) { + this.disableDatabaseManagementFeatureDetails = disableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableDatabaseManagementFeatureRequest o) { + databaseId(o.getDatabaseId()); + disableDatabaseManagementFeatureDetails(o.getDisableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableDatabaseManagementFeatureRequest as configured by this + * builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of DisableDatabaseManagementFeatureRequest + */ + public DisableDatabaseManagementFeatureRequest build() { + DisableDatabaseManagementFeatureRequest 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.databasemanagement.model.DisableDatabaseManagementFeatureDetails + body) { + disableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of DisableDatabaseManagementFeatureRequest as configured by this + * builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DisableDatabaseManagementFeatureRequest + */ + public DisableDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + DisableDatabaseManagementFeatureRequest request = + new DisableDatabaseManagementFeatureRequest(); + request.databaseId = databaseId; + request.disableDatabaseManagementFeatureDetails = + disableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DisableDatabaseManagementFeatureRequest(databaseId, + // disableDatabaseManagementFeatureDetails, 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() + .databaseId(databaseId) + .disableDatabaseManagementFeatureDetails(disableDatabaseManagementFeatureDetails) + .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(",databaseId=").append(String.valueOf(this.databaseId)); + sb.append(",disableDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.disableDatabaseManagementFeatureDetails)); + 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 DisableDatabaseManagementFeatureRequest)) { + return false; + } + + DisableDatabaseManagementFeatureRequest other = (DisableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals( + this.disableDatabaseManagementFeatureDetails, + other.disableDatabaseManagementFeatureDetails) + && 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.databaseId == null ? 43 : this.databaseId.hashCode()); + result = + (result * PRIME) + + (this.disableDatabaseManagementFeatureDetails == null + ? 43 + : this.disableDatabaseManagementFeatureDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalContainerDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalContainerDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..da9d4124a5d --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalContainerDatabaseManagementFeatureRequest.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableExternalContainerDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalContainerDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + */ + private String externalContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + */ + public String getExternalContainerDatabaseId() { + return externalContainerDatabaseId; + } + /** + * The details required to disable a Database Management feature for an external container + * database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails + disableExternalContainerDatabaseManagementFeatureDetails; + + /** + * The details required to disable a Database Management feature for an external container + * database. + */ + public com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails + getDisableExternalContainerDatabaseManagementFeatureDetails() { + return disableExternalContainerDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails + getBody$() { + return disableExternalContainerDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalContainerDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + */ + private String externalContainerDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + * + * @param externalContainerDatabaseId the value to set + * @return this builder instance + */ + public Builder externalContainerDatabaseId(String externalContainerDatabaseId) { + this.externalContainerDatabaseId = externalContainerDatabaseId; + return this; + } + + /** + * The details required to disable a Database Management feature for an external container + * database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails + disableExternalContainerDatabaseManagementFeatureDetails = null; + + /** + * The details required to disable a Database Management feature for an external container + * database. + * + * @param disableExternalContainerDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder disableExternalContainerDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails + disableExternalContainerDatabaseManagementFeatureDetails) { + this.disableExternalContainerDatabaseManagementFeatureDetails = + disableExternalContainerDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableExternalContainerDatabaseManagementFeatureRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + disableExternalContainerDatabaseManagementFeatureDetails( + o.getDisableExternalContainerDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of DisableExternalContainerDatabaseManagementFeatureRequest + */ + public DisableExternalContainerDatabaseManagementFeatureRequest build() { + DisableExternalContainerDatabaseManagementFeatureRequest 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.databasemanagement.model + .DisableExternalContainerDatabaseManagementFeatureDetails + body) { + disableExternalContainerDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of DisableExternalContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DisableExternalContainerDatabaseManagementFeatureRequest + */ + public DisableExternalContainerDatabaseManagementFeatureRequest + buildWithoutInvocationCallback() { + DisableExternalContainerDatabaseManagementFeatureRequest request = + new DisableExternalContainerDatabaseManagementFeatureRequest(); + request.externalContainerDatabaseId = externalContainerDatabaseId; + request.disableExternalContainerDatabaseManagementFeatureDetails = + disableExternalContainerDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // DisableExternalContainerDatabaseManagementFeatureRequest(externalContainerDatabaseId, + // disableExternalContainerDatabaseManagementFeatureDetails, 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() + .externalContainerDatabaseId(externalContainerDatabaseId) + .disableExternalContainerDatabaseManagementFeatureDetails( + disableExternalContainerDatabaseManagementFeatureDetails) + .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(",externalContainerDatabaseId=") + .append(String.valueOf(this.externalContainerDatabaseId)); + sb.append(",disableExternalContainerDatabaseManagementFeatureDetails=") + .append( + String.valueOf( + this.disableExternalContainerDatabaseManagementFeatureDetails)); + 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 DisableExternalContainerDatabaseManagementFeatureRequest)) { + return false; + } + + DisableExternalContainerDatabaseManagementFeatureRequest other = + (DisableExternalContainerDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalContainerDatabaseId, other.externalContainerDatabaseId) + && java.util.Objects.equals( + this.disableExternalContainerDatabaseManagementFeatureDetails, + other.disableExternalContainerDatabaseManagementFeatureDetails) + && 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.externalContainerDatabaseId == null + ? 43 + : this.externalContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.disableExternalContainerDatabaseManagementFeatureDetails == null + ? 43 + : this.disableExternalContainerDatabaseManagementFeatureDetails + .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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalNonContainerDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalNonContainerDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..228f8a577cd --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalNonContainerDatabaseManagementFeatureRequest.java @@ -0,0 +1,405 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableExternalNonContainerDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalNonContainerDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + */ + private String externalNonContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + */ + public String getExternalNonContainerDatabaseId() { + return externalNonContainerDatabaseId; + } + /** + * The details required to disable a Database Management feature for an external non-container + * database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails + disableExternalNonContainerDatabaseManagementFeatureDetails; + + /** + * The details required to disable a Database Management feature for an external non-container + * database. + */ + public com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails + getDisableExternalNonContainerDatabaseManagementFeatureDetails() { + return disableExternalNonContainerDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails + getBody$() { + return disableExternalNonContainerDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalNonContainerDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + */ + private String externalNonContainerDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + * + * @param externalNonContainerDatabaseId the value to set + * @return this builder instance + */ + public Builder externalNonContainerDatabaseId(String externalNonContainerDatabaseId) { + this.externalNonContainerDatabaseId = externalNonContainerDatabaseId; + return this; + } + + /** + * The details required to disable a Database Management feature for an external + * non-container database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails + disableExternalNonContainerDatabaseManagementFeatureDetails = null; + + /** + * The details required to disable a Database Management feature for an external + * non-container database. + * + * @param disableExternalNonContainerDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder disableExternalNonContainerDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails + disableExternalNonContainerDatabaseManagementFeatureDetails) { + this.disableExternalNonContainerDatabaseManagementFeatureDetails = + disableExternalNonContainerDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableExternalNonContainerDatabaseManagementFeatureRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + disableExternalNonContainerDatabaseManagementFeatureDetails( + o.getDisableExternalNonContainerDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalNonContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of DisableExternalNonContainerDatabaseManagementFeatureRequest + */ + public DisableExternalNonContainerDatabaseManagementFeatureRequest build() { + DisableExternalNonContainerDatabaseManagementFeatureRequest 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.databasemanagement.model + .DisableExternalNonContainerDatabaseManagementFeatureDetails + body) { + disableExternalNonContainerDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of DisableExternalNonContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DisableExternalNonContainerDatabaseManagementFeatureRequest + */ + public DisableExternalNonContainerDatabaseManagementFeatureRequest + buildWithoutInvocationCallback() { + DisableExternalNonContainerDatabaseManagementFeatureRequest request = + new DisableExternalNonContainerDatabaseManagementFeatureRequest(); + request.externalNonContainerDatabaseId = externalNonContainerDatabaseId; + request.disableExternalNonContainerDatabaseManagementFeatureDetails = + disableExternalNonContainerDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // DisableExternalNonContainerDatabaseManagementFeatureRequest(externalNonContainerDatabaseId, disableExternalNonContainerDatabaseManagementFeatureDetails, 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() + .externalNonContainerDatabaseId(externalNonContainerDatabaseId) + .disableExternalNonContainerDatabaseManagementFeatureDetails( + disableExternalNonContainerDatabaseManagementFeatureDetails) + .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(",externalNonContainerDatabaseId=") + .append(String.valueOf(this.externalNonContainerDatabaseId)); + sb.append(",disableExternalNonContainerDatabaseManagementFeatureDetails=") + .append( + String.valueOf( + this.disableExternalNonContainerDatabaseManagementFeatureDetails)); + 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 DisableExternalNonContainerDatabaseManagementFeatureRequest)) { + return false; + } + + DisableExternalNonContainerDatabaseManagementFeatureRequest other = + (DisableExternalNonContainerDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalNonContainerDatabaseId, other.externalNonContainerDatabaseId) + && java.util.Objects.equals( + this.disableExternalNonContainerDatabaseManagementFeatureDetails, + other.disableExternalNonContainerDatabaseManagementFeatureDetails) + && 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.externalNonContainerDatabaseId == null + ? 43 + : this.externalNonContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.disableExternalNonContainerDatabaseManagementFeatureDetails == null + ? 43 + : this.disableExternalNonContainerDatabaseManagementFeatureDetails + .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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalPluggableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalPluggableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..825f8e0b7c2 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisableExternalPluggableDatabaseManagementFeatureRequest.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisableExternalPluggableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalPluggableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + */ + private String externalPluggableDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + */ + public String getExternalPluggableDatabaseId() { + return externalPluggableDatabaseId; + } + /** + * The details required to disable a Database Management feature for an external pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails + disableExternalPluggableDatabaseManagementFeatureDetails; + + /** + * The details required to disable a Database Management feature for an external pluggable + * database. + */ + public com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails + getDisableExternalPluggableDatabaseManagementFeatureDetails() { + return disableExternalPluggableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails + getBody$() { + return disableExternalPluggableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisableExternalPluggableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + */ + private String externalPluggableDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + * + * @param externalPluggableDatabaseId the value to set + * @return this builder instance + */ + public Builder externalPluggableDatabaseId(String externalPluggableDatabaseId) { + this.externalPluggableDatabaseId = externalPluggableDatabaseId; + return this; + } + + /** + * The details required to disable a Database Management feature for an external pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails + disableExternalPluggableDatabaseManagementFeatureDetails = null; + + /** + * The details required to disable a Database Management feature for an external pluggable + * database. + * + * @param disableExternalPluggableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder disableExternalPluggableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails + disableExternalPluggableDatabaseManagementFeatureDetails) { + this.disableExternalPluggableDatabaseManagementFeatureDetails = + disableExternalPluggableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisableExternalPluggableDatabaseManagementFeatureRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + disableExternalPluggableDatabaseManagementFeatureDetails( + o.getDisableExternalPluggableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisableExternalPluggableDatabaseManagementFeatureRequest as + * configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of DisableExternalPluggableDatabaseManagementFeatureRequest + */ + public DisableExternalPluggableDatabaseManagementFeatureRequest build() { + DisableExternalPluggableDatabaseManagementFeatureRequest 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.databasemanagement.model + .DisableExternalPluggableDatabaseManagementFeatureDetails + body) { + disableExternalPluggableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of DisableExternalPluggableDatabaseManagementFeatureRequest as + * configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DisableExternalPluggableDatabaseManagementFeatureRequest + */ + public DisableExternalPluggableDatabaseManagementFeatureRequest + buildWithoutInvocationCallback() { + DisableExternalPluggableDatabaseManagementFeatureRequest request = + new DisableExternalPluggableDatabaseManagementFeatureRequest(); + request.externalPluggableDatabaseId = externalPluggableDatabaseId; + request.disableExternalPluggableDatabaseManagementFeatureDetails = + disableExternalPluggableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // DisableExternalPluggableDatabaseManagementFeatureRequest(externalPluggableDatabaseId, + // disableExternalPluggableDatabaseManagementFeatureDetails, 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() + .externalPluggableDatabaseId(externalPluggableDatabaseId) + .disableExternalPluggableDatabaseManagementFeatureDetails( + disableExternalPluggableDatabaseManagementFeatureDetails) + .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(",externalPluggableDatabaseId=") + .append(String.valueOf(this.externalPluggableDatabaseId)); + sb.append(",disableExternalPluggableDatabaseManagementFeatureDetails=") + .append( + String.valueOf( + this.disableExternalPluggableDatabaseManagementFeatureDetails)); + 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 DisableExternalPluggableDatabaseManagementFeatureRequest)) { + return false; + } + + DisableExternalPluggableDatabaseManagementFeatureRequest other = + (DisableExternalPluggableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalPluggableDatabaseId, other.externalPluggableDatabaseId) + && java.util.Objects.equals( + this.disableExternalPluggableDatabaseManagementFeatureDetails, + other.disableExternalPluggableDatabaseManagementFeatureDetails) + && 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.externalPluggableDatabaseId == null + ? 43 + : this.externalPluggableDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.disableExternalPluggableDatabaseManagementFeatureDetails == null + ? 43 + : this.disableExternalPluggableDatabaseManagementFeatureDetails + .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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisablePluggableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisablePluggableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..cc7f826367f --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/DisablePluggableDatabaseManagementFeatureRequest.java @@ -0,0 +1,397 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * DisablePluggableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisablePluggableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .DisablePluggableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + private String pluggableDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + public String getPluggableDatabaseId() { + return pluggableDatabaseId; + } + /** + * The details required to disable a Database Management feature for an Oracle cloud pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model.DisablePluggableDatabaseManagementFeatureDetails + disablePluggableDatabaseManagementFeatureDetails; + + /** + * The details required to disable a Database Management feature for an Oracle cloud pluggable + * database. + */ + public com.oracle.bmc.databasemanagement.model.DisablePluggableDatabaseManagementFeatureDetails + getDisablePluggableDatabaseManagementFeatureDetails() { + return disablePluggableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.DisablePluggableDatabaseManagementFeatureDetails + getBody$() { + return disablePluggableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + DisablePluggableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .DisablePluggableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + private String pluggableDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + * + * @param pluggableDatabaseId the value to set + * @return this builder instance + */ + public Builder pluggableDatabaseId(String pluggableDatabaseId) { + this.pluggableDatabaseId = pluggableDatabaseId; + return this; + } + + /** + * The details required to disable a Database Management feature for an Oracle cloud + * pluggable database. + */ + private com.oracle.bmc.databasemanagement.model + .DisablePluggableDatabaseManagementFeatureDetails + disablePluggableDatabaseManagementFeatureDetails = null; + + /** + * The details required to disable a Database Management feature for an Oracle cloud + * pluggable database. + * + * @param disablePluggableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder disablePluggableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .DisablePluggableDatabaseManagementFeatureDetails + disablePluggableDatabaseManagementFeatureDetails) { + this.disablePluggableDatabaseManagementFeatureDetails = + disablePluggableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DisablePluggableDatabaseManagementFeatureRequest o) { + pluggableDatabaseId(o.getPluggableDatabaseId()); + disablePluggableDatabaseManagementFeatureDetails( + o.getDisablePluggableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DisablePluggableDatabaseManagementFeatureRequest as configured by + * this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of DisablePluggableDatabaseManagementFeatureRequest + */ + public DisablePluggableDatabaseManagementFeatureRequest build() { + DisablePluggableDatabaseManagementFeatureRequest 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.databasemanagement.model + .DisablePluggableDatabaseManagementFeatureDetails + body) { + disablePluggableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of DisablePluggableDatabaseManagementFeatureRequest as configured by + * this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DisablePluggableDatabaseManagementFeatureRequest + */ + public DisablePluggableDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + DisablePluggableDatabaseManagementFeatureRequest request = + new DisablePluggableDatabaseManagementFeatureRequest(); + request.pluggableDatabaseId = pluggableDatabaseId; + request.disablePluggableDatabaseManagementFeatureDetails = + disablePluggableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new DisablePluggableDatabaseManagementFeatureRequest(pluggableDatabaseId, + // disablePluggableDatabaseManagementFeatureDetails, 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() + .pluggableDatabaseId(pluggableDatabaseId) + .disablePluggableDatabaseManagementFeatureDetails( + disablePluggableDatabaseManagementFeatureDetails) + .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(",pluggableDatabaseId=").append(String.valueOf(this.pluggableDatabaseId)); + sb.append(",disablePluggableDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.disablePluggableDatabaseManagementFeatureDetails)); + 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 DisablePluggableDatabaseManagementFeatureRequest)) { + return false; + } + + DisablePluggableDatabaseManagementFeatureRequest other = + (DisablePluggableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pluggableDatabaseId, other.pluggableDatabaseId) + && java.util.Objects.equals( + this.disablePluggableDatabaseManagementFeatureDetails, + other.disablePluggableDatabaseManagementFeatureDetails) + && 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.pluggableDatabaseId == null + ? 43 + : this.pluggableDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.disablePluggableDatabaseManagementFeatureDetails == null + ? 43 + : this.disablePluggableDatabaseManagementFeatureDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..ff6c3ebf5f3 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableDatabaseManagementFeatureRequest.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + private String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + public String getDatabaseId() { + return databaseId; + } + /** + * The details required to enable a Database Management feature for an Oracle cloud database. + */ + private com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails + enableDatabaseManagementFeatureDetails; + + /** + * The details required to enable a Database Management feature for an Oracle cloud database. + */ + public com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails + getEnableDatabaseManagementFeatureDetails() { + return enableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails + getBody$() { + return enableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .EnableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + private String databaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + * + * @param databaseId the value to set + * @return this builder instance + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * The details required to enable a Database Management feature for an Oracle cloud + * database. + */ + private com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails + enableDatabaseManagementFeatureDetails = null; + + /** + * The details required to enable a Database Management feature for an Oracle cloud + * database. + * + * @param enableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails + enableDatabaseManagementFeatureDetails) { + this.enableDatabaseManagementFeatureDetails = enableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableDatabaseManagementFeatureRequest o) { + databaseId(o.getDatabaseId()); + enableDatabaseManagementFeatureDetails(o.getEnableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableDatabaseManagementFeatureRequest as configured by this + * builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of EnableDatabaseManagementFeatureRequest + */ + public EnableDatabaseManagementFeatureRequest build() { + EnableDatabaseManagementFeatureRequest 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.databasemanagement.model.EnableDatabaseManagementFeatureDetails + body) { + enableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableDatabaseManagementFeatureRequest as configured by this + * builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of EnableDatabaseManagementFeatureRequest + */ + public EnableDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + EnableDatabaseManagementFeatureRequest request = + new EnableDatabaseManagementFeatureRequest(); + request.databaseId = databaseId; + request.enableDatabaseManagementFeatureDetails = enableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new EnableDatabaseManagementFeatureRequest(databaseId, + // enableDatabaseManagementFeatureDetails, 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() + .databaseId(databaseId) + .enableDatabaseManagementFeatureDetails(enableDatabaseManagementFeatureDetails) + .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(",databaseId=").append(String.valueOf(this.databaseId)); + sb.append(",enableDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.enableDatabaseManagementFeatureDetails)); + 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 EnableDatabaseManagementFeatureRequest)) { + return false; + } + + EnableDatabaseManagementFeatureRequest other = (EnableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals( + this.enableDatabaseManagementFeatureDetails, + other.enableDatabaseManagementFeatureDetails) + && 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.databaseId == null ? 43 : this.databaseId.hashCode()); + result = + (result * PRIME) + + (this.enableDatabaseManagementFeatureDetails == null + ? 43 + : this.enableDatabaseManagementFeatureDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalContainerDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalContainerDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..e8e413f9f58 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalContainerDatabaseManagementFeatureRequest.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableExternalContainerDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalContainerDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + */ + private String externalContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + */ + public String getExternalContainerDatabaseId() { + return externalContainerDatabaseId; + } + /** + * The details required to enable a Database Management feature for an external container + * database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails + enableExternalContainerDatabaseManagementFeatureDetails; + + /** + * The details required to enable a Database Management feature for an external container + * database. + */ + public com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails + getEnableExternalContainerDatabaseManagementFeatureDetails() { + return enableExternalContainerDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails + getBody$() { + return enableExternalContainerDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalContainerDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + */ + private String externalContainerDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external container database. + * + * @param externalContainerDatabaseId the value to set + * @return this builder instance + */ + public Builder externalContainerDatabaseId(String externalContainerDatabaseId) { + this.externalContainerDatabaseId = externalContainerDatabaseId; + return this; + } + + /** + * The details required to enable a Database Management feature for an external container + * database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails + enableExternalContainerDatabaseManagementFeatureDetails = null; + + /** + * The details required to enable a Database Management feature for an external container + * database. + * + * @param enableExternalContainerDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableExternalContainerDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails + enableExternalContainerDatabaseManagementFeatureDetails) { + this.enableExternalContainerDatabaseManagementFeatureDetails = + enableExternalContainerDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableExternalContainerDatabaseManagementFeatureRequest o) { + externalContainerDatabaseId(o.getExternalContainerDatabaseId()); + enableExternalContainerDatabaseManagementFeatureDetails( + o.getEnableExternalContainerDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of EnableExternalContainerDatabaseManagementFeatureRequest + */ + public EnableExternalContainerDatabaseManagementFeatureRequest build() { + EnableExternalContainerDatabaseManagementFeatureRequest 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.databasemanagement.model + .EnableExternalContainerDatabaseManagementFeatureDetails + body) { + enableExternalContainerDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableExternalContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of EnableExternalContainerDatabaseManagementFeatureRequest + */ + public EnableExternalContainerDatabaseManagementFeatureRequest + buildWithoutInvocationCallback() { + EnableExternalContainerDatabaseManagementFeatureRequest request = + new EnableExternalContainerDatabaseManagementFeatureRequest(); + request.externalContainerDatabaseId = externalContainerDatabaseId; + request.enableExternalContainerDatabaseManagementFeatureDetails = + enableExternalContainerDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // EnableExternalContainerDatabaseManagementFeatureRequest(externalContainerDatabaseId, + // enableExternalContainerDatabaseManagementFeatureDetails, 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() + .externalContainerDatabaseId(externalContainerDatabaseId) + .enableExternalContainerDatabaseManagementFeatureDetails( + enableExternalContainerDatabaseManagementFeatureDetails) + .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(",externalContainerDatabaseId=") + .append(String.valueOf(this.externalContainerDatabaseId)); + sb.append(",enableExternalContainerDatabaseManagementFeatureDetails=") + .append( + String.valueOf( + this.enableExternalContainerDatabaseManagementFeatureDetails)); + 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 EnableExternalContainerDatabaseManagementFeatureRequest)) { + return false; + } + + EnableExternalContainerDatabaseManagementFeatureRequest other = + (EnableExternalContainerDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalContainerDatabaseId, other.externalContainerDatabaseId) + && java.util.Objects.equals( + this.enableExternalContainerDatabaseManagementFeatureDetails, + other.enableExternalContainerDatabaseManagementFeatureDetails) + && 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.externalContainerDatabaseId == null + ? 43 + : this.externalContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enableExternalContainerDatabaseManagementFeatureDetails == null + ? 43 + : this.enableExternalContainerDatabaseManagementFeatureDetails + .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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalNonContainerDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalNonContainerDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..a7852fa156f --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalNonContainerDatabaseManagementFeatureRequest.java @@ -0,0 +1,405 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableExternalNonContainerDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalNonContainerDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + */ + private String externalNonContainerDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + */ + public String getExternalNonContainerDatabaseId() { + return externalNonContainerDatabaseId; + } + /** + * The details required to enable a Database Management feature for an external non-container + * database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails + enableExternalNonContainerDatabaseManagementFeatureDetails; + + /** + * The details required to enable a Database Management feature for an external non-container + * database. + */ + public com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails + getEnableExternalNonContainerDatabaseManagementFeatureDetails() { + return enableExternalNonContainerDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails + getBody$() { + return enableExternalNonContainerDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalNonContainerDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + */ + private String externalNonContainerDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external non-container database. + * + * @param externalNonContainerDatabaseId the value to set + * @return this builder instance + */ + public Builder externalNonContainerDatabaseId(String externalNonContainerDatabaseId) { + this.externalNonContainerDatabaseId = externalNonContainerDatabaseId; + return this; + } + + /** + * The details required to enable a Database Management feature for an external + * non-container database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails + enableExternalNonContainerDatabaseManagementFeatureDetails = null; + + /** + * The details required to enable a Database Management feature for an external + * non-container database. + * + * @param enableExternalNonContainerDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableExternalNonContainerDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails + enableExternalNonContainerDatabaseManagementFeatureDetails) { + this.enableExternalNonContainerDatabaseManagementFeatureDetails = + enableExternalNonContainerDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableExternalNonContainerDatabaseManagementFeatureRequest o) { + externalNonContainerDatabaseId(o.getExternalNonContainerDatabaseId()); + enableExternalNonContainerDatabaseManagementFeatureDetails( + o.getEnableExternalNonContainerDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalNonContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of EnableExternalNonContainerDatabaseManagementFeatureRequest + */ + public EnableExternalNonContainerDatabaseManagementFeatureRequest build() { + EnableExternalNonContainerDatabaseManagementFeatureRequest 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.databasemanagement.model + .EnableExternalNonContainerDatabaseManagementFeatureDetails + body) { + enableExternalNonContainerDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableExternalNonContainerDatabaseManagementFeatureRequest as + * configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of EnableExternalNonContainerDatabaseManagementFeatureRequest + */ + public EnableExternalNonContainerDatabaseManagementFeatureRequest + buildWithoutInvocationCallback() { + EnableExternalNonContainerDatabaseManagementFeatureRequest request = + new EnableExternalNonContainerDatabaseManagementFeatureRequest(); + request.externalNonContainerDatabaseId = externalNonContainerDatabaseId; + request.enableExternalNonContainerDatabaseManagementFeatureDetails = + enableExternalNonContainerDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // EnableExternalNonContainerDatabaseManagementFeatureRequest(externalNonContainerDatabaseId, enableExternalNonContainerDatabaseManagementFeatureDetails, 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() + .externalNonContainerDatabaseId(externalNonContainerDatabaseId) + .enableExternalNonContainerDatabaseManagementFeatureDetails( + enableExternalNonContainerDatabaseManagementFeatureDetails) + .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(",externalNonContainerDatabaseId=") + .append(String.valueOf(this.externalNonContainerDatabaseId)); + sb.append(",enableExternalNonContainerDatabaseManagementFeatureDetails=") + .append( + String.valueOf( + this.enableExternalNonContainerDatabaseManagementFeatureDetails)); + 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 EnableExternalNonContainerDatabaseManagementFeatureRequest)) { + return false; + } + + EnableExternalNonContainerDatabaseManagementFeatureRequest other = + (EnableExternalNonContainerDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalNonContainerDatabaseId, other.externalNonContainerDatabaseId) + && java.util.Objects.equals( + this.enableExternalNonContainerDatabaseManagementFeatureDetails, + other.enableExternalNonContainerDatabaseManagementFeatureDetails) + && 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.externalNonContainerDatabaseId == null + ? 43 + : this.externalNonContainerDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enableExternalNonContainerDatabaseManagementFeatureDetails == null + ? 43 + : this.enableExternalNonContainerDatabaseManagementFeatureDetails + .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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalPluggableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalPluggableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..2663e7c2f91 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnableExternalPluggableDatabaseManagementFeatureRequest.java @@ -0,0 +1,407 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnableExternalPluggableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalPluggableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + */ + private String externalPluggableDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + */ + public String getExternalPluggableDatabaseId() { + return externalPluggableDatabaseId; + } + /** + * The details required to enable a Database Management feature for an external pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails + enableExternalPluggableDatabaseManagementFeatureDetails; + + /** + * The details required to enable a Database Management feature for an external pluggable + * database. + */ + public com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails + getEnableExternalPluggableDatabaseManagementFeatureDetails() { + return enableExternalPluggableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails + getBody$() { + return enableExternalPluggableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnableExternalPluggableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + */ + private String externalPluggableDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external pluggable database. + * + * @param externalPluggableDatabaseId the value to set + * @return this builder instance + */ + public Builder externalPluggableDatabaseId(String externalPluggableDatabaseId) { + this.externalPluggableDatabaseId = externalPluggableDatabaseId; + return this; + } + + /** + * The details required to enable a Database Management feature for an external pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails + enableExternalPluggableDatabaseManagementFeatureDetails = null; + + /** + * The details required to enable a Database Management feature for an external pluggable + * database. + * + * @param enableExternalPluggableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder enableExternalPluggableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails + enableExternalPluggableDatabaseManagementFeatureDetails) { + this.enableExternalPluggableDatabaseManagementFeatureDetails = + enableExternalPluggableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnableExternalPluggableDatabaseManagementFeatureRequest o) { + externalPluggableDatabaseId(o.getExternalPluggableDatabaseId()); + enableExternalPluggableDatabaseManagementFeatureDetails( + o.getEnableExternalPluggableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnableExternalPluggableDatabaseManagementFeatureRequest as + * configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of EnableExternalPluggableDatabaseManagementFeatureRequest + */ + public EnableExternalPluggableDatabaseManagementFeatureRequest build() { + EnableExternalPluggableDatabaseManagementFeatureRequest 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.databasemanagement.model + .EnableExternalPluggableDatabaseManagementFeatureDetails + body) { + enableExternalPluggableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnableExternalPluggableDatabaseManagementFeatureRequest as + * configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of EnableExternalPluggableDatabaseManagementFeatureRequest + */ + public EnableExternalPluggableDatabaseManagementFeatureRequest + buildWithoutInvocationCallback() { + EnableExternalPluggableDatabaseManagementFeatureRequest request = + new EnableExternalPluggableDatabaseManagementFeatureRequest(); + request.externalPluggableDatabaseId = externalPluggableDatabaseId; + request.enableExternalPluggableDatabaseManagementFeatureDetails = + enableExternalPluggableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new + // EnableExternalPluggableDatabaseManagementFeatureRequest(externalPluggableDatabaseId, + // enableExternalPluggableDatabaseManagementFeatureDetails, 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() + .externalPluggableDatabaseId(externalPluggableDatabaseId) + .enableExternalPluggableDatabaseManagementFeatureDetails( + enableExternalPluggableDatabaseManagementFeatureDetails) + .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(",externalPluggableDatabaseId=") + .append(String.valueOf(this.externalPluggableDatabaseId)); + sb.append(",enableExternalPluggableDatabaseManagementFeatureDetails=") + .append( + String.valueOf( + this.enableExternalPluggableDatabaseManagementFeatureDetails)); + 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 EnableExternalPluggableDatabaseManagementFeatureRequest)) { + return false; + } + + EnableExternalPluggableDatabaseManagementFeatureRequest other = + (EnableExternalPluggableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.externalPluggableDatabaseId, other.externalPluggableDatabaseId) + && java.util.Objects.equals( + this.enableExternalPluggableDatabaseManagementFeatureDetails, + other.enableExternalPluggableDatabaseManagementFeatureDetails) + && 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.externalPluggableDatabaseId == null + ? 43 + : this.externalPluggableDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enableExternalPluggableDatabaseManagementFeatureDetails == null + ? 43 + : this.enableExternalPluggableDatabaseManagementFeatureDetails + .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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnablePluggableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnablePluggableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..1fa287439d4 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/EnablePluggableDatabaseManagementFeatureRequest.java @@ -0,0 +1,397 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * EnablePluggableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnablePluggableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .EnablePluggableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + private String pluggableDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + public String getPluggableDatabaseId() { + return pluggableDatabaseId; + } + /** + * The details required to enable a Database Management feature for an Oracle cloud pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model.EnablePluggableDatabaseManagementFeatureDetails + enablePluggableDatabaseManagementFeatureDetails; + + /** + * The details required to enable a Database Management feature for an Oracle cloud pluggable + * database. + */ + public com.oracle.bmc.databasemanagement.model.EnablePluggableDatabaseManagementFeatureDetails + getEnablePluggableDatabaseManagementFeatureDetails() { + return enablePluggableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.EnablePluggableDatabaseManagementFeatureDetails + getBody$() { + return enablePluggableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + EnablePluggableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .EnablePluggableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + private String pluggableDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + * + * @param pluggableDatabaseId the value to set + * @return this builder instance + */ + public Builder pluggableDatabaseId(String pluggableDatabaseId) { + this.pluggableDatabaseId = pluggableDatabaseId; + return this; + } + + /** + * The details required to enable a Database Management feature for an Oracle cloud + * pluggable database. + */ + private com.oracle.bmc.databasemanagement.model + .EnablePluggableDatabaseManagementFeatureDetails + enablePluggableDatabaseManagementFeatureDetails = null; + + /** + * The details required to enable a Database Management feature for an Oracle cloud + * pluggable database. + * + * @param enablePluggableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder enablePluggableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .EnablePluggableDatabaseManagementFeatureDetails + enablePluggableDatabaseManagementFeatureDetails) { + this.enablePluggableDatabaseManagementFeatureDetails = + enablePluggableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(EnablePluggableDatabaseManagementFeatureRequest o) { + pluggableDatabaseId(o.getPluggableDatabaseId()); + enablePluggableDatabaseManagementFeatureDetails( + o.getEnablePluggableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of EnablePluggableDatabaseManagementFeatureRequest as configured by + * this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of EnablePluggableDatabaseManagementFeatureRequest + */ + public EnablePluggableDatabaseManagementFeatureRequest build() { + EnablePluggableDatabaseManagementFeatureRequest 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.databasemanagement.model + .EnablePluggableDatabaseManagementFeatureDetails + body) { + enablePluggableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of EnablePluggableDatabaseManagementFeatureRequest as configured by + * this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of EnablePluggableDatabaseManagementFeatureRequest + */ + public EnablePluggableDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + EnablePluggableDatabaseManagementFeatureRequest request = + new EnablePluggableDatabaseManagementFeatureRequest(); + request.pluggableDatabaseId = pluggableDatabaseId; + request.enablePluggableDatabaseManagementFeatureDetails = + enablePluggableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new EnablePluggableDatabaseManagementFeatureRequest(pluggableDatabaseId, + // enablePluggableDatabaseManagementFeatureDetails, 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() + .pluggableDatabaseId(pluggableDatabaseId) + .enablePluggableDatabaseManagementFeatureDetails( + enablePluggableDatabaseManagementFeatureDetails) + .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(",pluggableDatabaseId=").append(String.valueOf(this.pluggableDatabaseId)); + sb.append(",enablePluggableDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.enablePluggableDatabaseManagementFeatureDetails)); + 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 EnablePluggableDatabaseManagementFeatureRequest)) { + return false; + } + + EnablePluggableDatabaseManagementFeatureRequest other = + (EnablePluggableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pluggableDatabaseId, other.pluggableDatabaseId) + && java.util.Objects.equals( + this.enablePluggableDatabaseManagementFeatureDetails, + other.enablePluggableDatabaseManagementFeatureDetails) + && 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.pluggableDatabaseId == null + ? 43 + : this.pluggableDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.enablePluggableDatabaseManagementFeatureDetails == null + ? 43 + : this.enablePluggableDatabaseManagementFeatureDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalDatabasesRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalDatabasesRequest.java index 6561554e8f1..321b37dcce4 100644 --- a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalDatabasesRequest.java +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ListExternalDatabasesRequest.java @@ -41,6 +41,19 @@ public String getCompartmentId() { public String getExternalDbSystemId() { return externalDbSystemId; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + */ + private String externalDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + */ + public String getExternalDatabaseId() { + return externalDatabaseId; + } /** A filter to only return the resources that match the entire display name. */ private String displayName; @@ -184,6 +197,24 @@ public Builder externalDbSystemId(String externalDbSystemId) { return this; } + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + */ + private String externalDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * external database. + * + * @param externalDatabaseId the value to set + * @return this builder instance + */ + public Builder externalDatabaseId(String externalDatabaseId) { + this.externalDatabaseId = externalDatabaseId; + return this; + } + /** A filter to only return the resources that match the entire display name. */ private String displayName = null; @@ -314,6 +345,7 @@ public Builder retryConfiguration( public Builder copy(ListExternalDatabasesRequest o) { compartmentId(o.getCompartmentId()); externalDbSystemId(o.getExternalDbSystemId()); + externalDatabaseId(o.getExternalDatabaseId()); displayName(o.getDisplayName()); page(o.getPage()); limit(o.getLimit()); @@ -356,6 +388,7 @@ public ListExternalDatabasesRequest buildWithoutInvocationCallback() { ListExternalDatabasesRequest request = new ListExternalDatabasesRequest(); request.compartmentId = compartmentId; request.externalDbSystemId = externalDbSystemId; + request.externalDatabaseId = externalDatabaseId; request.displayName = displayName; request.page = page; request.limit = limit; @@ -363,8 +396,8 @@ public ListExternalDatabasesRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.opcRequestId = opcRequestId; return request; - // new ListExternalDatabasesRequest(compartmentId, externalDbSystemId, displayName, - // page, limit, sortBy, sortOrder, opcRequestId); + // new ListExternalDatabasesRequest(compartmentId, externalDbSystemId, + // externalDatabaseId, displayName, page, limit, sortBy, sortOrder, opcRequestId); } } @@ -377,6 +410,7 @@ public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) .externalDbSystemId(externalDbSystemId) + .externalDatabaseId(externalDatabaseId) .displayName(displayName) .page(page) .limit(limit) @@ -401,6 +435,7 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",externalDbSystemId=").append(String.valueOf(this.externalDbSystemId)); + sb.append(",externalDatabaseId=").append(String.valueOf(this.externalDatabaseId)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",page=").append(String.valueOf(this.page)); sb.append(",limit=").append(String.valueOf(this.limit)); @@ -424,6 +459,7 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.externalDbSystemId, other.externalDbSystemId) + && java.util.Objects.equals(this.externalDatabaseId, other.externalDatabaseId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.page, other.page) && java.util.Objects.equals(this.limit, other.limit) @@ -444,6 +480,11 @@ public int hashCode() { + (this.externalDbSystemId == null ? 43 : this.externalDbSystemId.hashCode()); + result = + (result * PRIME) + + (this.externalDatabaseId == null + ? 43 + : this.externalDatabaseId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); diff --git a/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..423a5022ad2 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyDatabaseManagementFeatureRequest.java @@ -0,0 +1,380 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * ModifyDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ModifyDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + private String databaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + public String getDatabaseId() { + return databaseId; + } + /** + * The details required to modify a Database Management feature for an Oracle cloud database. + */ + private com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails + modifyDatabaseManagementFeatureDetails; + + /** + * The details required to modify a Database Management feature for an Oracle cloud database. + */ + public com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails + getModifyDatabaseManagementFeatureDetails() { + return modifyDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails + getBody$() { + return modifyDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ModifyDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .ModifyDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + */ + private String databaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Database. + * + * @param databaseId the value to set + * @return this builder instance + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + return this; + } + + /** + * The details required to modify a Database Management feature for an Oracle cloud + * database. + */ + private com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails + modifyDatabaseManagementFeatureDetails = null; + + /** + * The details required to modify a Database Management feature for an Oracle cloud + * database. + * + * @param modifyDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder modifyDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails + modifyDatabaseManagementFeatureDetails) { + this.modifyDatabaseManagementFeatureDetails = modifyDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ModifyDatabaseManagementFeatureRequest o) { + databaseId(o.getDatabaseId()); + modifyDatabaseManagementFeatureDetails(o.getModifyDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ModifyDatabaseManagementFeatureRequest as configured by this + * builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of ModifyDatabaseManagementFeatureRequest + */ + public ModifyDatabaseManagementFeatureRequest build() { + ModifyDatabaseManagementFeatureRequest 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.databasemanagement.model.ModifyDatabaseManagementFeatureDetails + body) { + modifyDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of ModifyDatabaseManagementFeatureRequest as configured by this + * builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ModifyDatabaseManagementFeatureRequest + */ + public ModifyDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + ModifyDatabaseManagementFeatureRequest request = + new ModifyDatabaseManagementFeatureRequest(); + request.databaseId = databaseId; + request.modifyDatabaseManagementFeatureDetails = modifyDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new ModifyDatabaseManagementFeatureRequest(databaseId, + // modifyDatabaseManagementFeatureDetails, 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() + .databaseId(databaseId) + .modifyDatabaseManagementFeatureDetails(modifyDatabaseManagementFeatureDetails) + .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(",databaseId=").append(String.valueOf(this.databaseId)); + sb.append(",modifyDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.modifyDatabaseManagementFeatureDetails)); + 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 ModifyDatabaseManagementFeatureRequest)) { + return false; + } + + ModifyDatabaseManagementFeatureRequest other = (ModifyDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals( + this.modifyDatabaseManagementFeatureDetails, + other.modifyDatabaseManagementFeatureDetails) + && 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.databaseId == null ? 43 : this.databaseId.hashCode()); + result = + (result * PRIME) + + (this.modifyDatabaseManagementFeatureDetails == null + ? 43 + : this.modifyDatabaseManagementFeatureDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyPluggableDatabaseManagementFeatureRequest.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyPluggableDatabaseManagementFeatureRequest.java new file mode 100644 index 00000000000..cb53a9c9ca9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/requests/ModifyPluggableDatabaseManagementFeatureRequest.java @@ -0,0 +1,397 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.requests; + +import com.oracle.bmc.databasemanagement.model.*; +/** + * Example: Click here to see how to use + * ModifyPluggableDatabaseManagementFeatureRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ModifyPluggableDatabaseManagementFeatureRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.databasemanagement.model + .ModifyPluggableDatabaseManagementFeatureDetails> { + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + private String pluggableDatabaseId; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + public String getPluggableDatabaseId() { + return pluggableDatabaseId; + } + /** + * The details required to modify a Database Management feature for an Oracle cloud pluggable + * database. + */ + private com.oracle.bmc.databasemanagement.model.ModifyPluggableDatabaseManagementFeatureDetails + modifyPluggableDatabaseManagementFeatureDetails; + + /** + * The details required to modify a Database Management feature for an Oracle cloud pluggable + * database. + */ + public com.oracle.bmc.databasemanagement.model.ModifyPluggableDatabaseManagementFeatureDetails + getModifyPluggableDatabaseManagementFeatureDetails() { + return modifyPluggableDatabaseManagementFeatureDetails; + } + /** 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; + } + + /** + * Alternative accessor for the body parameter. + * + * @return body parameter + */ + @Override + @com.oracle.bmc.InternalSdk + public com.oracle.bmc.databasemanagement.model.ModifyPluggableDatabaseManagementFeatureDetails + getBody$() { + return modifyPluggableDatabaseManagementFeatureDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ModifyPluggableDatabaseManagementFeatureRequest, + com.oracle.bmc.databasemanagement.model + .ModifyPluggableDatabaseManagementFeatureDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + */ + private String pluggableDatabaseId = null; + + /** + * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the + * Oracle cloud pluggable database. + * + * @param pluggableDatabaseId the value to set + * @return this builder instance + */ + public Builder pluggableDatabaseId(String pluggableDatabaseId) { + this.pluggableDatabaseId = pluggableDatabaseId; + return this; + } + + /** + * The details required to modify a Database Management feature for an Oracle cloud + * pluggable database. + */ + private com.oracle.bmc.databasemanagement.model + .ModifyPluggableDatabaseManagementFeatureDetails + modifyPluggableDatabaseManagementFeatureDetails = null; + + /** + * The details required to modify a Database Management feature for an Oracle cloud + * pluggable database. + * + * @param modifyPluggableDatabaseManagementFeatureDetails the value to set + * @return this builder instance + */ + public Builder modifyPluggableDatabaseManagementFeatureDetails( + com.oracle.bmc.databasemanagement.model + .ModifyPluggableDatabaseManagementFeatureDetails + modifyPluggableDatabaseManagementFeatureDetails) { + this.modifyPluggableDatabaseManagementFeatureDetails = + modifyPluggableDatabaseManagementFeatureDetails; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ModifyPluggableDatabaseManagementFeatureRequest o) { + pluggableDatabaseId(o.getPluggableDatabaseId()); + modifyPluggableDatabaseManagementFeatureDetails( + o.getModifyPluggableDatabaseManagementFeatureDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + ifMatch(o.getIfMatch()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ModifyPluggableDatabaseManagementFeatureRequest as configured by + * this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of ModifyPluggableDatabaseManagementFeatureRequest + */ + public ModifyPluggableDatabaseManagementFeatureRequest build() { + ModifyPluggableDatabaseManagementFeatureRequest 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.databasemanagement.model + .ModifyPluggableDatabaseManagementFeatureDetails + body) { + modifyPluggableDatabaseManagementFeatureDetails(body); + return this; + } + + /** + * Build the instance of ModifyPluggableDatabaseManagementFeatureRequest as configured by + * this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ModifyPluggableDatabaseManagementFeatureRequest + */ + public ModifyPluggableDatabaseManagementFeatureRequest buildWithoutInvocationCallback() { + ModifyPluggableDatabaseManagementFeatureRequest request = + new ModifyPluggableDatabaseManagementFeatureRequest(); + request.pluggableDatabaseId = pluggableDatabaseId; + request.modifyPluggableDatabaseManagementFeatureDetails = + modifyPluggableDatabaseManagementFeatureDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + request.ifMatch = ifMatch; + return request; + // new ModifyPluggableDatabaseManagementFeatureRequest(pluggableDatabaseId, + // modifyPluggableDatabaseManagementFeatureDetails, 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() + .pluggableDatabaseId(pluggableDatabaseId) + .modifyPluggableDatabaseManagementFeatureDetails( + modifyPluggableDatabaseManagementFeatureDetails) + .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(",pluggableDatabaseId=").append(String.valueOf(this.pluggableDatabaseId)); + sb.append(",modifyPluggableDatabaseManagementFeatureDetails=") + .append(String.valueOf(this.modifyPluggableDatabaseManagementFeatureDetails)); + 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 ModifyPluggableDatabaseManagementFeatureRequest)) { + return false; + } + + ModifyPluggableDatabaseManagementFeatureRequest other = + (ModifyPluggableDatabaseManagementFeatureRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.pluggableDatabaseId, other.pluggableDatabaseId) + && java.util.Objects.equals( + this.modifyPluggableDatabaseManagementFeatureDetails, + other.modifyPluggableDatabaseManagementFeatureDetails) + && 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.pluggableDatabaseId == null + ? 43 + : this.pluggableDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.modifyPluggableDatabaseManagementFeatureDetails == null + ? 43 + : this.modifyPluggableDatabaseManagementFeatureDetails.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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..06460bcc5b9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableDatabaseManagementFeatureResponse.java @@ -0,0 +1,187 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableDatabaseManagementFeatureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DisableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DisableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DisableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DisableDatabaseManagementFeatureResponse build() { + return new DisableDatabaseManagementFeatureResponse( + __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 DisableDatabaseManagementFeatureResponse)) { + return false; + } + + DisableDatabaseManagementFeatureResponse other = + (DisableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalContainerDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalContainerDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..9cba25b9c80 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalContainerDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalContainerDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DisableExternalContainerDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DisableExternalContainerDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DisableExternalContainerDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DisableExternalContainerDatabaseManagementFeatureResponse build() { + return new DisableExternalContainerDatabaseManagementFeatureResponse( + __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 DisableExternalContainerDatabaseManagementFeatureResponse)) { + return false; + } + + DisableExternalContainerDatabaseManagementFeatureResponse other = + (DisableExternalContainerDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalNonContainerDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalNonContainerDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..2b06ccde2fc --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalNonContainerDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalNonContainerDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DisableExternalNonContainerDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DisableExternalNonContainerDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DisableExternalNonContainerDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DisableExternalNonContainerDatabaseManagementFeatureResponse build() { + return new DisableExternalNonContainerDatabaseManagementFeatureResponse( + __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 DisableExternalNonContainerDatabaseManagementFeatureResponse)) { + return false; + } + + DisableExternalNonContainerDatabaseManagementFeatureResponse other = + (DisableExternalNonContainerDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalPluggableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalPluggableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..372f6aac84b --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisableExternalPluggableDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisableExternalPluggableDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DisableExternalPluggableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DisableExternalPluggableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DisableExternalPluggableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DisableExternalPluggableDatabaseManagementFeatureResponse build() { + return new DisableExternalPluggableDatabaseManagementFeatureResponse( + __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 DisableExternalPluggableDatabaseManagementFeatureResponse)) { + return false; + } + + DisableExternalPluggableDatabaseManagementFeatureResponse other = + (DisableExternalPluggableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisablePluggableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisablePluggableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..618a0f1d80c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/DisablePluggableDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class DisablePluggableDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private DisablePluggableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DisablePluggableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(DisablePluggableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DisablePluggableDatabaseManagementFeatureResponse build() { + return new DisablePluggableDatabaseManagementFeatureResponse( + __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 DisablePluggableDatabaseManagementFeatureResponse)) { + return false; + } + + DisablePluggableDatabaseManagementFeatureResponse other = + (DisablePluggableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..779fc0cd59e --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableDatabaseManagementFeatureResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableDatabaseManagementFeatureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private EnableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + EnableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EnableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public EnableDatabaseManagementFeatureResponse build() { + return new EnableDatabaseManagementFeatureResponse( + __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 EnableDatabaseManagementFeatureResponse)) { + return false; + } + + EnableDatabaseManagementFeatureResponse other = (EnableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalContainerDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalContainerDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..f9c52da60ee --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalContainerDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalContainerDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private EnableExternalContainerDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + EnableExternalContainerDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EnableExternalContainerDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public EnableExternalContainerDatabaseManagementFeatureResponse build() { + return new EnableExternalContainerDatabaseManagementFeatureResponse( + __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 EnableExternalContainerDatabaseManagementFeatureResponse)) { + return false; + } + + EnableExternalContainerDatabaseManagementFeatureResponse other = + (EnableExternalContainerDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalNonContainerDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalNonContainerDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..67eadf2dcad --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalNonContainerDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalNonContainerDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private EnableExternalNonContainerDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + EnableExternalNonContainerDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EnableExternalNonContainerDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public EnableExternalNonContainerDatabaseManagementFeatureResponse build() { + return new EnableExternalNonContainerDatabaseManagementFeatureResponse( + __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 EnableExternalNonContainerDatabaseManagementFeatureResponse)) { + return false; + } + + EnableExternalNonContainerDatabaseManagementFeatureResponse other = + (EnableExternalNonContainerDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalPluggableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalPluggableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..0b9090cabb8 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnableExternalPluggableDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnableExternalPluggableDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private EnableExternalPluggableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + EnableExternalPluggableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EnableExternalPluggableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public EnableExternalPluggableDatabaseManagementFeatureResponse build() { + return new EnableExternalPluggableDatabaseManagementFeatureResponse( + __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 EnableExternalPluggableDatabaseManagementFeatureResponse)) { + return false; + } + + EnableExternalPluggableDatabaseManagementFeatureResponse other = + (EnableExternalPluggableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnablePluggableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnablePluggableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..3d9edc9fe81 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/EnablePluggableDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class EnablePluggableDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private EnablePluggableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + EnablePluggableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(EnablePluggableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public EnablePluggableDatabaseManagementFeatureResponse build() { + return new EnablePluggableDatabaseManagementFeatureResponse( + __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 EnablePluggableDatabaseManagementFeatureResponse)) { + return false; + } + + EnablePluggableDatabaseManagementFeatureResponse other = + (EnablePluggableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..395624a7da9 --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyDatabaseManagementFeatureResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ModifyDatabaseManagementFeatureResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ModifyDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ModifyDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ModifyDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ModifyDatabaseManagementFeatureResponse build() { + return new ModifyDatabaseManagementFeatureResponse( + __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 ModifyDatabaseManagementFeatureResponse)) { + return false; + } + + ModifyDatabaseManagementFeatureResponse other = (ModifyDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyPluggableDatabaseManagementFeatureResponse.java b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyPluggableDatabaseManagementFeatureResponse.java new file mode 100644 index 00000000000..c0a3e31bc0c --- /dev/null +++ b/bmc-databasemanagement/src/main/java/com/oracle/bmc/databasemanagement/responses/ModifyPluggableDatabaseManagementFeatureResponse.java @@ -0,0 +1,188 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.databasemanagement.responses; + +import com.oracle.bmc.databasemanagement.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20201101") +public class ModifyPluggableDatabaseManagementFeatureResponse + extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @return the value + */ + public String getOpcWorkRequestId() { + return opcWorkRequestId; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcWorkRequestId" + }) + private ModifyPluggableDatabaseManagementFeatureResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcWorkRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcWorkRequestId = opcWorkRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ModifyPluggableDatabaseManagementFeatureResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier for the asynchronous request. You can use this to query + * status of the asynchronous operation. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ModifyPluggableDatabaseManagementFeatureResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcWorkRequestId(o.getOpcWorkRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ModifyPluggableDatabaseManagementFeatureResponse build() { + return new ModifyPluggableDatabaseManagementFeatureResponse( + __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 ModifyPluggableDatabaseManagementFeatureResponse)) { + return false; + } + + ModifyPluggableDatabaseManagementFeatureResponse other = + (ModifyPluggableDatabaseManagementFeatureResponse) 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-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json index 33868a8939b..b9ef1efea7f 100644 --- a/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json +++ b/bmc-databasemanagement/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemanagement/reflect-config.json @@ -847,6 +847,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BasicDatabaseConnectionStringDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BasicDatabaseConnectionStringDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.BasicDatabaseConnectionStringDetails$Protocol", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.BasicNamedCredentialContent", @@ -1105,6 +1125,19 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ConnectorDetails$ConnectorType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ConsumerGroupPrivilegeCollection", @@ -1472,6 +1505,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseConnectionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseConnectionString", @@ -1492,6 +1539,19 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseConnectionStringDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseConnectionStringDetails$ConnectionType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseCredentialDetails", @@ -1525,6 +1585,66 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseDiagnosticsAndManagementFeatureConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseDiagnosticsAndManagementFeatureConfiguration$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseDiagnosticsAndManagementFeatureConfiguration$LicenseModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseDiagnosticsAndManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseDiagnosticsAndManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseDiagnosticsAndManagementFeatureDetails$ManagementType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFeatureConfiguration", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFeatureConfiguration$FeatureStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DatabaseFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DatabaseFleetHealthMetrics", @@ -1919,6 +2039,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DbManagementFeature", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DbManagementPrivateEndpoint", @@ -2014,6 +2140,62 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalContainerDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalContainerDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalNonContainerDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalNonContainerDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalPluggableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisableExternalPluggableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DisableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails", @@ -2028,6 +2210,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisablePluggableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.DisablePluggableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.DisableSqlPlanBaselinesUsageDetails", @@ -2317,6 +2513,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalContainerDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalContainerDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.EnableExternalDbSystemDatabaseManagementDetails", @@ -2371,6 +2595,34 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalNonContainerDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalNonContainerDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalPluggableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnableExternalPluggableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.EnableHighFrequencyAutomaticSpmEvolveAdvisorTaskDetails", @@ -2385,6 +2637,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnablePluggableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.EnablePluggableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.EnableSqlPlanBaselinesUsageDetails", @@ -2802,6 +3068,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseCollection", @@ -2830,6 +3110,33 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseDiagnosticsAndManagementFeatureDetails$LicenseModel", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExternalDatabaseInstance", @@ -3666,6 +3973,27 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseDiagnosticsAndManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ExternalPluggableDatabaseFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ExternalServicedAsm", @@ -4443,6 +4771,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MacsConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.MacsConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ManagedDatabase", @@ -4712,6 +5054,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ModifyDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ModifyPluggableDatabaseManagementFeatureDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.ModifyPluggableDatabaseManagementFeatureDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ModifySnapshotSettingsDetails", @@ -5425,6 +5795,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.PrivateEndPointConnectorDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.PrivateEndPointConnectorDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.ProxiedForUserCollection", @@ -5945,6 +6329,42 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Enabled", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Accepted", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Fixed", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Reproduced", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$AutoPurge", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaseline$Adaptive", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineAggregation", @@ -6101,6 +6521,42 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Enabled", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Accepted", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Fixed", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Reproduced", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$AutoPurge", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlPlanBaselineSummary$Adaptive", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.SqlTuningAdvisorTaskCollection", @@ -6337,6 +6793,12 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemanagement.model.SqlTuningSet$AllSqlStatementsFetched", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.databasemanagement.model.SqlTuningSetAdminActionStatus", diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 5698608e8dd..3b69ba8bf90 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 32319041d70..68012d9b4df 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index 6ba23d217e6..8a8aaac4b5b 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java index 14dc94805ec..a039af1d5be 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalog.java @@ -1412,6 +1412,21 @@ GetCatalogPrivateEndpointResponse getCatalogPrivateEndpoint( */ ImportGlossaryResponse importGlossary(ImportGlossaryRequest request); + /** + * Imports lineage metadata. Returns details about the job that performs the import. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use ImportLineage API. + */ + ImportLineageResponse importLineage(ImportLineageRequest request); + /** * List the physical entities aggregated by this logical entity. * diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java index 157b8faa29c..cd3566ab90d 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsync.java @@ -1371,6 +1371,21 @@ java.util.concurrent.Future importGlossary( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Imports lineage metadata. Returns details about the job that performs the import. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future importLineage( + ImportLineageRequest request, + com.oracle.bmc.responses.AsyncHandler + handler); + /** * List the physical entities aggregated by this logical entity. * diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java index 112e31cc849..a63f1c50ba6 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogAsyncClient.java @@ -3448,6 +3448,45 @@ public java.util.concurrent.Future importGlossary( .callAsync(handler); } + @Override + public java.util.concurrent.Future importLineage( + ImportLineageRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Objects.requireNonNull( + request.getImportLineageDetails(), "importLineageDetails is required"); + + return clientCall(request, ImportLineageResponse::builder) + .logger(LOG, "importLineage") + .serviceDetails( + "DataCatalog", + "ImportLineage", + "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ImportLineage") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ImportLineageRequest::builder) + .basePath("/20190325") + .appendPathParam("catalogs") + .appendPathParam(request.getCatalogId()) + .appendPathParam("dataAssets") + .appendPathParam(request.getDataAssetKey()) + .appendPathParam("actions") + .appendPathParam("importLineage") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleBody( + com.oracle.bmc.datacatalog.model.ImportLineageJobResult.class, + ImportLineageResponse.Builder::importLineageJobResult) + .handleResponseHeaderString( + "opc-request-id", ImportLineageResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listAggregatedPhysicalEntities( @@ -4017,6 +4056,7 @@ public java.util.concurrent.Future listEntities( .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendQueryParam("isProcess", request.getIsProcess()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java index f35e2f38309..156e4a7d77e 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/DataCatalogClient.java @@ -3191,6 +3191,43 @@ public ImportGlossaryResponse importGlossary(ImportGlossaryRequest request) { .callSync(); } + @Override + public ImportLineageResponse importLineage(ImportLineageRequest request) { + + Validate.notBlank(request.getCatalogId(), "catalogId must not be blank"); + + Validate.notBlank(request.getDataAssetKey(), "dataAssetKey must not be blank"); + Objects.requireNonNull( + request.getImportLineageDetails(), "importLineageDetails is required"); + + return clientCall(request, ImportLineageResponse::builder) + .logger(LOG, "importLineage") + .serviceDetails( + "DataCatalog", + "ImportLineage", + "https://docs.oracle.com/iaas/api/#/en/data-catalog/20190325/DataAsset/ImportLineage") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ImportLineageRequest::builder) + .basePath("/20190325") + .appendPathParam("catalogs") + .appendPathParam(request.getCatalogId()) + .appendPathParam("dataAssets") + .appendPathParam(request.getDataAssetKey()) + .appendPathParam("actions") + .appendPathParam("importLineage") + .accept("application/json") + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.datacatalog.model.ImportLineageJobResult.class, + ImportLineageResponse.Builder::importLineageJobResult) + .handleResponseHeaderString( + "opc-request-id", ImportLineageResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ListAggregatedPhysicalEntitiesResponse listAggregatedPhysicalEntities( ListAggregatedPhysicalEntitiesRequest request) { @@ -3725,6 +3762,7 @@ public ListEntitiesResponse listEntities(ListEntitiesRequest request) { .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendQueryParam("isProcess", request.getIsProcess()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageDetails.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageDetails.java new file mode 100644 index 00000000000..1f83f88e55e --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageDetails.java @@ -0,0 +1,141 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Specifies the lineage contents to be imported.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ImportLineageDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ImportLineageDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"lineagePayload"}) + public ImportLineageDetails(byte[] lineagePayload) { + super(); + this.lineagePayload = lineagePayload; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The payload used to import lineage. */ + @com.fasterxml.jackson.annotation.JsonProperty("lineagePayload") + private byte[] lineagePayload; + + /** + * The payload used to import lineage. + * + * @param lineagePayload the value to set + * @return this builder + */ + public Builder lineagePayload(byte[] lineagePayload) { + this.lineagePayload = lineagePayload; + this.__explicitlySet__.add("lineagePayload"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ImportLineageDetails build() { + ImportLineageDetails model = new ImportLineageDetails(this.lineagePayload); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ImportLineageDetails model) { + if (model.wasPropertyExplicitlySet("lineagePayload")) { + this.lineagePayload(model.getLineagePayload()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The payload used to import lineage. */ + @com.fasterxml.jackson.annotation.JsonProperty("lineagePayload") + private final byte[] lineagePayload; + + /** + * The payload used to import lineage. + * + * @return the value + */ + public byte[] getLineagePayload() { + return lineagePayload; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ImportLineageDetails("); + sb.append("super=").append(super.toString()); + sb.append("lineagePayload=") + .append( + (includeByteArrayContents + ? java.util.Arrays.toString(this.lineagePayload) + : (String.valueOf(this.lineagePayload) + + (this.lineagePayload != null + ? " (byte[" + this.lineagePayload.length + "])" + : "")))); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ImportLineageDetails)) { + return false; + } + + ImportLineageDetails other = (ImportLineageDetails) o; + return java.util.Arrays.equals(this.lineagePayload, other.lineagePayload) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + java.util.Arrays.hashCode(this.lineagePayload); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageJobResult.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageJobResult.java new file mode 100644 index 00000000000..ef5ba5ff96b --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/model/ImportLineageJobResult.java @@ -0,0 +1,306 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.model; + +/** + * Information about lineage import operation.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ImportLineageJobResult.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ImportLineageJobResult + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "dataAssetKey", + "importJobDefinitionKey", + "importJobKey", + "importJobExecutionKey", + "importJobExecutionStatus" + }) + public ImportLineageJobResult( + String dataAssetKey, + String importJobDefinitionKey, + String importJobKey, + String importJobExecutionKey, + JobExecutionState importJobExecutionStatus) { + super(); + this.dataAssetKey = dataAssetKey; + this.importJobDefinitionKey = importJobDefinitionKey; + this.importJobKey = importJobKey; + this.importJobExecutionKey = importJobExecutionKey; + this.importJobExecutionStatus = importJobExecutionStatus; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The unique key of the data asset on which import is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private String dataAssetKey; + + /** + * The unique key of the data asset on which import is triggered. + * + * @param dataAssetKey the value to set + * @return this builder + */ + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + this.__explicitlySet__.add("dataAssetKey"); + return this; + } + /** The unique key of the job definition resource that is used for the import. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobDefinitionKey") + private String importJobDefinitionKey; + + /** + * The unique key of the job definition resource that is used for the import. + * + * @param importJobDefinitionKey the value to set + * @return this builder + */ + public Builder importJobDefinitionKey(String importJobDefinitionKey) { + this.importJobDefinitionKey = importJobDefinitionKey; + this.__explicitlySet__.add("importJobDefinitionKey"); + return this; + } + /** The unique key of the job for the import. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobKey") + private String importJobKey; + + /** + * The unique key of the job for the import. + * + * @param importJobKey the value to set + * @return this builder + */ + public Builder importJobKey(String importJobKey) { + this.importJobKey = importJobKey; + this.__explicitlySet__.add("importJobKey"); + return this; + } + /** The unique key of the parent job execution for which the log resource is created. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobExecutionKey") + private String importJobExecutionKey; + + /** + * The unique key of the parent job execution for which the log resource is created. + * + * @param importJobExecutionKey the value to set + * @return this builder + */ + public Builder importJobExecutionKey(String importJobExecutionKey) { + this.importJobExecutionKey = importJobExecutionKey; + this.__explicitlySet__.add("importJobExecutionKey"); + return this; + } + /** The state of the import job execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobExecutionStatus") + private JobExecutionState importJobExecutionStatus; + + /** + * The state of the import job execution. + * + * @param importJobExecutionStatus the value to set + * @return this builder + */ + public Builder importJobExecutionStatus(JobExecutionState importJobExecutionStatus) { + this.importJobExecutionStatus = importJobExecutionStatus; + this.__explicitlySet__.add("importJobExecutionStatus"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ImportLineageJobResult build() { + ImportLineageJobResult model = + new ImportLineageJobResult( + this.dataAssetKey, + this.importJobDefinitionKey, + this.importJobKey, + this.importJobExecutionKey, + this.importJobExecutionStatus); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ImportLineageJobResult model) { + if (model.wasPropertyExplicitlySet("dataAssetKey")) { + this.dataAssetKey(model.getDataAssetKey()); + } + if (model.wasPropertyExplicitlySet("importJobDefinitionKey")) { + this.importJobDefinitionKey(model.getImportJobDefinitionKey()); + } + if (model.wasPropertyExplicitlySet("importJobKey")) { + this.importJobKey(model.getImportJobKey()); + } + if (model.wasPropertyExplicitlySet("importJobExecutionKey")) { + this.importJobExecutionKey(model.getImportJobExecutionKey()); + } + if (model.wasPropertyExplicitlySet("importJobExecutionStatus")) { + this.importJobExecutionStatus(model.getImportJobExecutionStatus()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The unique key of the data asset on which import is triggered. */ + @com.fasterxml.jackson.annotation.JsonProperty("dataAssetKey") + private final String dataAssetKey; + + /** + * The unique key of the data asset on which import is triggered. + * + * @return the value + */ + public String getDataAssetKey() { + return dataAssetKey; + } + + /** The unique key of the job definition resource that is used for the import. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobDefinitionKey") + private final String importJobDefinitionKey; + + /** + * The unique key of the job definition resource that is used for the import. + * + * @return the value + */ + public String getImportJobDefinitionKey() { + return importJobDefinitionKey; + } + + /** The unique key of the job for the import. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobKey") + private final String importJobKey; + + /** + * The unique key of the job for the import. + * + * @return the value + */ + public String getImportJobKey() { + return importJobKey; + } + + /** The unique key of the parent job execution for which the log resource is created. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobExecutionKey") + private final String importJobExecutionKey; + + /** + * The unique key of the parent job execution for which the log resource is created. + * + * @return the value + */ + public String getImportJobExecutionKey() { + return importJobExecutionKey; + } + + /** The state of the import job execution. */ + @com.fasterxml.jackson.annotation.JsonProperty("importJobExecutionStatus") + private final JobExecutionState importJobExecutionStatus; + + /** + * The state of the import job execution. + * + * @return the value + */ + public JobExecutionState getImportJobExecutionStatus() { + return importJobExecutionStatus; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ImportLineageJobResult("); + sb.append("super=").append(super.toString()); + sb.append("dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(", importJobDefinitionKey=").append(String.valueOf(this.importJobDefinitionKey)); + sb.append(", importJobKey=").append(String.valueOf(this.importJobKey)); + sb.append(", importJobExecutionKey=").append(String.valueOf(this.importJobExecutionKey)); + sb.append(", importJobExecutionStatus=") + .append(String.valueOf(this.importJobExecutionStatus)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ImportLineageJobResult)) { + return false; + } + + ImportLineageJobResult other = (ImportLineageJobResult) o; + return java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals( + this.importJobDefinitionKey, other.importJobDefinitionKey) + && java.util.Objects.equals(this.importJobKey, other.importJobKey) + && java.util.Objects.equals(this.importJobExecutionKey, other.importJobExecutionKey) + && java.util.Objects.equals( + this.importJobExecutionStatus, other.importJobExecutionStatus) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = + (result * PRIME) + + (this.importJobDefinitionKey == null + ? 43 + : this.importJobDefinitionKey.hashCode()); + result = (result * PRIME) + (this.importJobKey == null ? 43 : this.importJobKey.hashCode()); + result = + (result * PRIME) + + (this.importJobExecutionKey == null + ? 43 + : this.importJobExecutionKey.hashCode()); + result = + (result * PRIME) + + (this.importJobExecutionStatus == null + ? 43 + : this.importJobExecutionStatus.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportLineageRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportLineageRequest.java new file mode 100644 index 00000000000..21a58005c40 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ImportLineageRequest.java @@ -0,0 +1,328 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.requests; + +import com.oracle.bmc.datacatalog.model.*; +/** + * Example: Click here to see how to use ImportLineageRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public class ImportLineageRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datacatalog.model.ImportLineageDetails> { + + /** Unique catalog identifier. */ + private String catalogId; + + /** Unique catalog identifier. */ + public String getCatalogId() { + return catalogId; + } + /** Unique data asset key. */ + private String dataAssetKey; + + /** Unique data asset key. */ + public String getDataAssetKey() { + return dataAssetKey; + } + /** Details needed by the lineage import request. */ + private com.oracle.bmc.datacatalog.model.ImportLineageDetails importLineageDetails; + + /** Details needed by the lineage import request. */ + public com.oracle.bmc.datacatalog.model.ImportLineageDetails getImportLineageDetails() { + return importLineageDetails; + } + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after 24 + * hours, but can be invalidated before then due to conflicting operations. For example, if 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.datacatalog.model.ImportLineageDetails getBody$() { + return importLineageDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ImportLineageRequest, com.oracle.bmc.datacatalog.model.ImportLineageDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** Unique catalog identifier. */ + private String catalogId = null; + + /** + * Unique catalog identifier. + * + * @param catalogId the value to set + * @return this builder instance + */ + public Builder catalogId(String catalogId) { + this.catalogId = catalogId; + return this; + } + + /** Unique data asset key. */ + private String dataAssetKey = null; + + /** + * Unique data asset key. + * + * @param dataAssetKey the value to set + * @return this builder instance + */ + public Builder dataAssetKey(String dataAssetKey) { + this.dataAssetKey = dataAssetKey; + return this; + } + + /** Details needed by the lineage import request. */ + private com.oracle.bmc.datacatalog.model.ImportLineageDetails importLineageDetails = null; + + /** + * Details needed by the lineage import request. + * + * @param importLineageDetails the value to set + * @return this builder instance + */ + public Builder importLineageDetails( + com.oracle.bmc.datacatalog.model.ImportLineageDetails importLineageDetails) { + this.importLineageDetails = importLineageDetails; + return this; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** The client request ID for tracing. */ + private String opcRequestId = null; + + /** + * The client request ID for tracing. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ImportLineageRequest o) { + catalogId(o.getCatalogId()); + dataAssetKey(o.getDataAssetKey()); + importLineageDetails(o.getImportLineageDetails()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ImportLineageRequest as configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of ImportLineageRequest + */ + public ImportLineageRequest build() { + ImportLineageRequest 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.datacatalog.model.ImportLineageDetails body) { + importLineageDetails(body); + return this; + } + + /** + * Build the instance of ImportLineageRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ImportLineageRequest + */ + public ImportLineageRequest buildWithoutInvocationCallback() { + ImportLineageRequest request = new ImportLineageRequest(); + request.catalogId = catalogId; + request.dataAssetKey = dataAssetKey; + request.importLineageDetails = importLineageDetails; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ImportLineageRequest(catalogId, dataAssetKey, importLineageDetails, + // 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() + .catalogId(catalogId) + .dataAssetKey(dataAssetKey) + .importLineageDetails(importLineageDetails) + .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(",catalogId=").append(String.valueOf(this.catalogId)); + sb.append(",dataAssetKey=").append(String.valueOf(this.dataAssetKey)); + sb.append(",importLineageDetails=").append(String.valueOf(this.importLineageDetails)); + 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 ImportLineageRequest)) { + return false; + } + + ImportLineageRequest other = (ImportLineageRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.catalogId, other.catalogId) + && java.util.Objects.equals(this.dataAssetKey, other.dataAssetKey) + && java.util.Objects.equals(this.importLineageDetails, other.importLineageDetails) + && 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.catalogId == null ? 43 : this.catalogId.hashCode()); + result = (result * PRIME) + (this.dataAssetKey == null ? 43 : this.dataAssetKey.hashCode()); + result = + (result * PRIME) + + (this.importLineageDetails == null + ? 43 + : this.importLineageDetails.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-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java index a375b75ae11..7ee3632f6f5 100644 --- a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/requests/ListEntitiesRequest.java @@ -410,6 +410,13 @@ public String getPage() { public String getOpcRequestId() { return opcRequestId; } + /** A filter to return only process entities. */ + private Boolean isProcess; + + /** A filter to return only process entities. */ + public Boolean getIsProcess() { + return isProcess; + } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< @@ -882,6 +889,20 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** A filter to return only process entities. */ + private Boolean isProcess = null; + + /** + * A filter to return only process entities. + * + * @param isProcess the value to set + * @return this builder instance + */ + public Builder isProcess(Boolean isProcess) { + this.isProcess = isProcess; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -940,6 +961,7 @@ public Builder copy(ListEntitiesRequest o) { limit(o.getLimit()); page(o.getPage()); opcRequestId(o.getOpcRequestId()); + isProcess(o.getIsProcess()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -1002,12 +1024,14 @@ public ListEntitiesRequest buildWithoutInvocationCallback() { request.limit = limit; request.page = page; request.opcRequestId = opcRequestId; + request.isProcess = isProcess; return request; // new ListEntitiesRequest(catalogId, dataAssetKey, displayName, businessName, // displayOrBusinessNameContains, typeKey, displayNameContains, lifecycleState, // timeCreated, timeUpdated, createdById, updatedById, externalKey, patternKey, // timeExternal, timeStatusUpdated, isLogical, isPartition, folderKey, path, - // harvestStatus, lastJobKey, fields, sortBy, sortOrder, limit, page, opcRequestId); + // harvestStatus, lastJobKey, fields, sortBy, sortOrder, limit, page, opcRequestId, + // isProcess); } } @@ -1045,7 +1069,8 @@ public Builder toBuilder() { .sortOrder(sortOrder) .limit(limit) .page(page) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .isProcess(isProcess); } /** @@ -1091,6 +1116,7 @@ public String toString() { 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(",isProcess=").append(String.valueOf(this.isProcess)); sb.append(")"); return sb.toString(); } @@ -1134,7 +1160,8 @@ public boolean equals(Object o) { && 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); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.isProcess, other.isProcess); } @Override @@ -1183,6 +1210,7 @@ public int 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.isProcess == null ? 43 : this.isProcess.hashCode()); return result; } } diff --git a/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportLineageResponse.java b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportLineageResponse.java new file mode 100644 index 00000000000..54caac45da9 --- /dev/null +++ b/bmc-datacatalog/src/main/java/com/oracle/bmc/datacatalog/responses/ImportLineageResponse.java @@ -0,0 +1,181 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datacatalog.responses; + +import com.oracle.bmc.datacatalog.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190325") +public class ImportLineageResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code ImportLineageJobResult} instance. */ + private com.oracle.bmc.datacatalog.model.ImportLineageJobResult importLineageJobResult; + + /** + * The returned {@code ImportLineageJobResult} instance. + * + * @return the value + */ + public com.oracle.bmc.datacatalog.model.ImportLineageJobResult getImportLineageJobResult() { + return importLineageJobResult; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "importLineageJobResult" + }) + private ImportLineageResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + com.oracle.bmc.datacatalog.model.ImportLineageJobResult importLineageJobResult) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.importLineageJobResult = importLineageJobResult; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code ImportLineageJobResult} instance. */ + private com.oracle.bmc.datacatalog.model.ImportLineageJobResult importLineageJobResult; + + /** + * The returned {@code ImportLineageJobResult} instance. + * + * @param importLineageJobResult the value to set + * @return this builder + */ + public Builder importLineageJobResult( + com.oracle.bmc.datacatalog.model.ImportLineageJobResult importLineageJobResult) { + this.importLineageJobResult = importLineageJobResult; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ImportLineageResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + importLineageJobResult(o.getImportLineageJobResult()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ImportLineageResponse build() { + return new ImportLineageResponse( + __httpStatusCode__, headers, opcRequestId, importLineageJobResult); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",importLineageJobResult=").append(String.valueOf(importLineageJobResult)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ImportLineageResponse)) { + return false; + } + + ImportLineageResponse other = (ImportLineageResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals( + this.importLineageJobResult, other.importLineageJobResult); + } + + @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.importLineageJobResult == null + ? 43 + : this.importLineageJobResult.hashCode()); + return result; + } +} diff --git a/bmc-datacatalog/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacatalog/reflect-config.json b/bmc-datacatalog/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacatalog/reflect-config.json index 2d8edd6f68b..b677010dec7 100644 --- a/bmc-datacatalog/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacatalog/reflect-config.json +++ b/bmc-datacatalog/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datacatalog/reflect-config.json @@ -1377,6 +1377,34 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacatalog.model.ImportLineageDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacatalog.model.ImportLineageDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacatalog.model.ImportLineageJobResult", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datacatalog.model.ImportLineageJobResult$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datacatalog.model.Job", diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index f71e63a4c59..08fff958c2a 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index f0f5ef6aff8..8679a1c57eb 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateWorkspaceDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateWorkspaceDetails.java index 01573f0e14b..2a574be1e17 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateWorkspaceDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/CreateWorkspaceDetails.java @@ -39,7 +39,8 @@ public final class CreateWorkspaceDetails "registryName", "registryCompartmentId", "endpointName", - "endpointCompartmentId" + "endpointCompartmentId", + "workspaceProperties" }) public CreateWorkspaceDetails( String vcnId, @@ -57,7 +58,8 @@ public CreateWorkspaceDetails( String registryName, String registryCompartmentId, String endpointName, - String endpointCompartmentId) { + String endpointCompartmentId, + java.util.Map workspaceProperties) { super(); this.vcnId = vcnId; this.subnetId = subnetId; @@ -75,6 +77,7 @@ public CreateWorkspaceDetails( this.registryCompartmentId = registryCompartmentId; this.endpointName = endpointName; this.endpointCompartmentId = endpointCompartmentId; + this.workspaceProperties = workspaceProperties; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -338,6 +341,21 @@ public Builder endpointCompartmentId(String endpointCompartmentId) { this.__explicitlySet__.add("endpointCompartmentId"); return this; } + /** Key-values pairs of workspace for storing properties on the workspace. */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private java.util.Map workspaceProperties; + + /** + * Key-values pairs of workspace for storing properties on the workspace. + * + * @param workspaceProperties the value to set + * @return this builder + */ + public Builder workspaceProperties(java.util.Map workspaceProperties) { + this.workspaceProperties = workspaceProperties; + this.__explicitlySet__.add("workspaceProperties"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -360,7 +378,8 @@ public CreateWorkspaceDetails build() { this.registryName, this.registryCompartmentId, this.endpointName, - this.endpointCompartmentId); + this.endpointCompartmentId, + this.workspaceProperties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -417,6 +436,9 @@ public Builder copy(CreateWorkspaceDetails model) { if (model.wasPropertyExplicitlySet("endpointCompartmentId")) { this.endpointCompartmentId(model.getEndpointCompartmentId()); } + if (model.wasPropertyExplicitlySet("workspaceProperties")) { + this.workspaceProperties(model.getWorkspaceProperties()); + } return this; } } @@ -656,6 +678,19 @@ public String getEndpointCompartmentId() { return endpointCompartmentId; } + /** Key-values pairs of workspace for storing properties on the workspace. */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private final java.util.Map workspaceProperties; + + /** + * Key-values pairs of workspace for storing properties on the workspace. + * + * @return the value + */ + public java.util.Map getWorkspaceProperties() { + return workspaceProperties; + } + @Override public String toString() { return this.toString(true); @@ -688,6 +723,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", registryCompartmentId=").append(String.valueOf(this.registryCompartmentId)); sb.append(", endpointName=").append(String.valueOf(this.endpointName)); sb.append(", endpointCompartmentId=").append(String.valueOf(this.endpointCompartmentId)); + sb.append(", workspaceProperties=").append(String.valueOf(this.workspaceProperties)); sb.append(")"); return sb.toString(); } @@ -719,6 +755,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.registryCompartmentId, other.registryCompartmentId) && java.util.Objects.equals(this.endpointName, other.endpointName) && java.util.Objects.equals(this.endpointCompartmentId, other.endpointCompartmentId) + && java.util.Objects.equals(this.workspaceProperties, other.workspaceProperties) && super.equals(other); } @@ -758,6 +795,11 @@ public int hashCode() { + (this.endpointCompartmentId == null ? 43 : this.endpointCompartmentId.hashCode()); + result = + (result * PRIME) + + (this.workspaceProperties == null + ? 43 + : this.workspaceProperties.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateWorkspaceDetails.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateWorkspaceDetails.java index 47067e86aba..f228727b1f0 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateWorkspaceDetails.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/UpdateWorkspaceDetails.java @@ -24,17 +24,25 @@ public final class UpdateWorkspaceDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"freeformTags", "definedTags", "description", "displayName"}) + @java.beans.ConstructorProperties({ + "freeformTags", + "definedTags", + "description", + "displayName", + "workspaceProperties" + }) public UpdateWorkspaceDetails( java.util.Map freeformTags, java.util.Map> definedTags, String description, - String displayName) { + String displayName, + java.util.Map workspaceProperties) { super(); this.freeformTags = freeformTags; this.definedTags = definedTags; this.description = description; this.displayName = displayName; + this.workspaceProperties = workspaceProperties; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -118,6 +126,21 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** Key-values pairs of workspace for storing properties on the workspace. */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private java.util.Map workspaceProperties; + + /** + * Key-values pairs of workspace for storing properties on the workspace. + * + * @param workspaceProperties the value to set + * @return this builder + */ + public Builder workspaceProperties(java.util.Map workspaceProperties) { + this.workspaceProperties = workspaceProperties; + this.__explicitlySet__.add("workspaceProperties"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -128,7 +151,8 @@ public UpdateWorkspaceDetails build() { this.freeformTags, this.definedTags, this.description, - this.displayName); + this.displayName, + this.workspaceProperties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -149,6 +173,9 @@ public Builder copy(UpdateWorkspaceDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("workspaceProperties")) { + this.workspaceProperties(model.getWorkspaceProperties()); + } return this; } } @@ -232,6 +259,19 @@ public String getDisplayName() { return displayName; } + /** Key-values pairs of workspace for storing properties on the workspace. */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private final java.util.Map workspaceProperties; + + /** + * Key-values pairs of workspace for storing properties on the workspace. + * + * @return the value + */ + public java.util.Map getWorkspaceProperties() { + return workspaceProperties; + } + @Override public String toString() { return this.toString(true); @@ -251,6 +291,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", workspaceProperties=").append(String.valueOf(this.workspaceProperties)); sb.append(")"); return sb.toString(); } @@ -269,6 +310,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.workspaceProperties, other.workspaceProperties) && super.equals(other); } @@ -280,6 +322,11 @@ public int hashCode() { result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.workspaceProperties == null + ? 43 + : this.workspaceProperties.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Workspace.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Workspace.java index 6662891eac4..83c543050b3 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Workspace.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/Workspace.java @@ -42,7 +42,8 @@ public final class Workspace extends com.oracle.bmc.http.client.internal.Explici "id", "endpointId", "endpointName", - "registryId" + "registryId", + "workspaceProperties" }) public Workspace( String vcnId, @@ -62,7 +63,8 @@ public Workspace( String id, String endpointId, String endpointName, - String registryId) { + String registryId, + java.util.Map workspaceProperties) { super(); this.vcnId = vcnId; this.subnetId = subnetId; @@ -82,6 +84,7 @@ public Workspace( this.endpointId = endpointId; this.endpointName = endpointName; this.registryId = registryId; + this.workspaceProperties = workspaceProperties; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -407,6 +410,21 @@ public Builder registryId(String registryId) { this.__explicitlySet__.add("registryId"); return this; } + /** key-value pairs of workspace properties */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private java.util.Map workspaceProperties; + + /** + * key-value pairs of workspace properties + * + * @param workspaceProperties the value to set + * @return this builder + */ + public Builder workspaceProperties(java.util.Map workspaceProperties) { + this.workspaceProperties = workspaceProperties; + this.__explicitlySet__.add("workspaceProperties"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -431,7 +449,8 @@ public Workspace build() { this.id, this.endpointId, this.endpointName, - this.registryId); + this.registryId, + this.workspaceProperties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -494,6 +513,9 @@ public Builder copy(Workspace model) { if (model.wasPropertyExplicitlySet("registryId")) { this.registryId(model.getRegistryId()); } + if (model.wasPropertyExplicitlySet("workspaceProperties")) { + this.workspaceProperties(model.getWorkspaceProperties()); + } return this; } } @@ -852,6 +874,19 @@ public String getRegistryId() { return registryId; } + /** key-value pairs of workspace properties */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private final java.util.Map workspaceProperties; + + /** + * key-value pairs of workspace properties + * + * @return the value + */ + public java.util.Map getWorkspaceProperties() { + return workspaceProperties; + } + @Override public String toString() { return this.toString(true); @@ -886,6 +921,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", endpointId=").append(String.valueOf(this.endpointId)); sb.append(", endpointName=").append(String.valueOf(this.endpointName)); sb.append(", registryId=").append(String.valueOf(this.registryId)); + sb.append(", workspaceProperties=").append(String.valueOf(this.workspaceProperties)); sb.append(")"); return sb.toString(); } @@ -919,6 +955,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.endpointId, other.endpointId) && java.util.Objects.equals(this.endpointName, other.endpointName) && java.util.Objects.equals(this.registryId, other.registryId) + && java.util.Objects.equals(this.workspaceProperties, other.workspaceProperties) && super.equals(other); } @@ -954,6 +991,11 @@ public int hashCode() { result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode()); result = (result * PRIME) + (this.endpointName == null ? 43 : this.endpointName.hashCode()); result = (result * PRIME) + (this.registryId == null ? 43 : this.registryId.hashCode()); + result = + (result * PRIME) + + (this.workspaceProperties == null + ? 43 + : this.workspaceProperties.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/WorkspaceSummary.java b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/WorkspaceSummary.java index 6206491f1bf..d508389a6a9 100644 --- a/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/WorkspaceSummary.java +++ b/bmc-dataintegration/src/main/java/com/oracle/bmc/dataintegration/model/WorkspaceSummary.java @@ -35,7 +35,8 @@ public final class WorkspaceSummary "stateMessage", "endpointName", "endpointId", - "registryId" + "registryId", + "workspaceProperties" }) public WorkspaceSummary( String id, @@ -50,7 +51,8 @@ public WorkspaceSummary( String stateMessage, String endpointName, String endpointId, - String registryId) { + String registryId, + java.util.Map workspaceProperties) { super(); this.id = id; this.description = description; @@ -65,6 +67,7 @@ public WorkspaceSummary( this.endpointName = endpointName; this.endpointId = endpointId; this.registryId = registryId; + this.workspaceProperties = workspaceProperties; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -287,6 +290,21 @@ public Builder registryId(String registryId) { this.__explicitlySet__.add("registryId"); return this; } + /** key-value pairs of workspace properties */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private java.util.Map workspaceProperties; + + /** + * key-value pairs of workspace properties + * + * @param workspaceProperties the value to set + * @return this builder + */ + public Builder workspaceProperties(java.util.Map workspaceProperties) { + this.workspaceProperties = workspaceProperties; + this.__explicitlySet__.add("workspaceProperties"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -306,7 +324,8 @@ public WorkspaceSummary build() { this.stateMessage, this.endpointName, this.endpointId, - this.registryId); + this.registryId, + this.workspaceProperties); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -354,6 +373,9 @@ public Builder copy(WorkspaceSummary model) { if (model.wasPropertyExplicitlySet("registryId")) { this.registryId(model.getRegistryId()); } + if (model.wasPropertyExplicitlySet("workspaceProperties")) { + this.workspaceProperties(model.getWorkspaceProperties()); + } return this; } } @@ -606,6 +628,19 @@ public String getRegistryId() { return registryId; } + /** key-value pairs of workspace properties */ + @com.fasterxml.jackson.annotation.JsonProperty("workspaceProperties") + private final java.util.Map workspaceProperties; + + /** + * key-value pairs of workspace properties + * + * @return the value + */ + public java.util.Map getWorkspaceProperties() { + return workspaceProperties; + } + @Override public String toString() { return this.toString(true); @@ -634,6 +669,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", endpointName=").append(String.valueOf(this.endpointName)); sb.append(", endpointId=").append(String.valueOf(this.endpointId)); sb.append(", registryId=").append(String.valueOf(this.registryId)); + sb.append(", workspaceProperties=").append(String.valueOf(this.workspaceProperties)); sb.append(")"); return sb.toString(); } @@ -661,6 +697,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.endpointName, other.endpointName) && java.util.Objects.equals(this.endpointId, other.endpointId) && java.util.Objects.equals(this.registryId, other.registryId) + && java.util.Objects.equals(this.workspaceProperties, other.workspaceProperties) && super.equals(other); } @@ -685,6 +722,11 @@ public int hashCode() { result = (result * PRIME) + (this.endpointName == null ? 43 : this.endpointName.hashCode()); result = (result * PRIME) + (this.endpointId == null ? 43 : this.endpointId.hashCode()); result = (result * PRIME) + (this.registryId == null ? 43 : this.registryId.hashCode()); + result = + (result * PRIME) + + (this.workspaceProperties == null + ? 43 + : this.workspaceProperties.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index cdf0b88d62c..a93f79675c4 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 64904b5b392..21be2b54405 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 1a9894454a2..3830edeea94 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.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 d042d3e8431..b5ef09f919b 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 @@ -366,6 +366,24 @@ ChangeLibraryMaskingFormatCompartmentResponse changeLibraryMaskingFormatCompartm ChangeMaskingPolicyCompartmentResponse changeMaskingPolicyCompartment( ChangeMaskingPolicyCompartmentRequest request); + /** + * Moves the specified masking policy health report and its dependent resources 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 uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ChangeMaskingPolicyHealthReportCompartment API. + */ + ChangeMaskingPolicyHealthReportCompartmentResponse changeMaskingPolicyHealthReportCompartment( + ChangeMaskingPolicyHealthReportCompartmentRequest request); + /** * Moves the specified on-premises connector into a different compartment. * @@ -1189,6 +1207,23 @@ DeleteLibraryMaskingFormatResponse deleteLibraryMaskingFormat( */ DeleteMaskingPolicyResponse deleteMaskingPolicy(DeleteMaskingPolicyRequest request); + /** + * Deletes the specified masking policy health report. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * DeleteMaskingPolicyHealthReport API. + */ + DeleteMaskingPolicyHealthReportResponse deleteMaskingPolicyHealthReport( + DeleteMaskingPolicyHealthReportRequest request); + /** * Deletes the specified on-premises connector. * @@ -1621,6 +1656,22 @@ EnableDataSafeConfigurationResponse enableDataSafeConfiguration( GenerateDiscoveryReportForDownloadResponse generateDiscoveryReportForDownload( GenerateDiscoveryReportForDownloadRequest request); + /** + * Performs health check on the masking policy. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GenerateHealthReport API. + */ + GenerateHealthReportResponse generateHealthReport(GenerateHealthReportRequest request); + /** * Generates a downloadable file corresponding to the specified masking policy. It's a * prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate a masking @@ -2084,6 +2135,23 @@ GetDatabaseViewAccessEntryResponse getDatabaseViewAccessEntry( */ GetMaskingPolicyResponse getMaskingPolicy(GetMaskingPolicyRequest request); + /** + * Gets the details of the specified masking policy health report. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * GetMaskingPolicyHealthReport API. + */ + GetMaskingPolicyHealthReportResponse getMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request); + /** * Gets the details of the specified masking report. * @@ -3190,6 +3258,40 @@ ListLibraryMaskingFormatsResponse listLibraryMaskingFormats( */ ListMaskingPoliciesResponse listMaskingPolicies(ListMaskingPoliciesRequest request); + /** + * Gets a list of errors and warnings from a masking policy health check. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListMaskingPolicyHealthReportLogs API. + */ + ListMaskingPolicyHealthReportLogsResponse listMaskingPolicyHealthReportLogs( + ListMaskingPolicyHealthReportLogsRequest request); + + /** + * Gets a list of masking policy health reports based on the specified query parameters. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ListMaskingPolicyHealthReports API. + */ + ListMaskingPolicyHealthReportsResponse listMaskingPolicyHealthReports( + ListMaskingPolicyHealthReportsRequest request); + /** * Gets a list of masking reports based on the specified query parameters. * 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 f427cebcdf7..d9ef0cebdcc 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 @@ -370,6 +370,25 @@ java.util.concurrent.Future changeAuditPol ChangeMaskingPolicyCompartmentResponse> handler); + /** + * Moves the specified masking policy health report and its dependent resources 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 + changeMaskingPolicyHealthReportCompartment( + ChangeMaskingPolicyHealthReportCompartmentRequest request, + com.oracle.bmc.responses.AsyncHandler< + ChangeMaskingPolicyHealthReportCompartmentRequest, + ChangeMaskingPolicyHealthReportCompartmentResponse> + handler); + /** * Moves the specified on-premises connector into a different compartment. * @@ -1197,6 +1216,24 @@ java.util.concurrent.Future deleteMaskingPolicy( DeleteMaskingPolicyRequest, DeleteMaskingPolicyResponse> handler); + /** + * Deletes the specified masking policy health report. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + deleteMaskingPolicyHealthReport( + DeleteMaskingPolicyHealthReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + DeleteMaskingPolicyHealthReportRequest, + DeleteMaskingPolicyHealthReportResponse> + handler); + /** * Deletes the specified on-premises connector. * @@ -1628,6 +1665,22 @@ java.util.concurrent.Future enableDataSafeC GenerateDiscoveryReportForDownloadResponse> handler); + /** + * Performs health check on the masking policy. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future generateHealthReport( + GenerateHealthReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GenerateHealthReportRequest, GenerateHealthReportResponse> + handler); + /** * Generates a downloadable file corresponding to the specified masking policy. It's a * prerequisite for the DownloadMaskingPolicy operation. Use this endpoint to generate a masking @@ -2086,6 +2139,23 @@ java.util.concurrent.Future getMaskingPolicy( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Gets the details of the specified masking policy health report. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future getMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request, + com.oracle.bmc.responses.AsyncHandler< + GetMaskingPolicyHealthReportRequest, + GetMaskingPolicyHealthReportResponse> + handler); + /** * Gets the details of the specified masking report. * @@ -3175,6 +3245,42 @@ java.util.concurrent.Future listMaskingPolicies( ListMaskingPoliciesRequest, ListMaskingPoliciesResponse> handler); + /** + * Gets a list of errors and warnings from a masking policy health check. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + listMaskingPolicyHealthReportLogs( + ListMaskingPolicyHealthReportLogsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaskingPolicyHealthReportLogsRequest, + ListMaskingPolicyHealthReportLogsResponse> + handler); + + /** + * Gets a list of masking policy health reports based on the specified query parameters. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + listMaskingPolicyHealthReports( + ListMaskingPolicyHealthReportsRequest request, + com.oracle.bmc.responses.AsyncHandler< + ListMaskingPolicyHealthReportsRequest, + ListMaskingPolicyHealthReportsResponse> + handler); + /** * Gets a list of masking reports based on the specified query parameters. * 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 80e0e6f600b..6b059764f9d 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 @@ -779,6 +779,46 @@ public java.util.concurrent.Future changeAlertCo .callAsync(handler); } + @Override + public java.util.concurrent.Future + changeMaskingPolicyHealthReportCompartment( + ChangeMaskingPolicyHealthReportCompartmentRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ChangeMaskingPolicyHealthReportCompartmentRequest, + ChangeMaskingPolicyHealthReportCompartmentResponse> + handler) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + Objects.requireNonNull( + request.getChangeMaskingPolicyHealthReportCompartmentDetails(), + "changeMaskingPolicyHealthReportCompartmentDetails is required"); + + return clientCall(request, ChangeMaskingPolicyHealthReportCompartmentResponse::builder) + .logger(LOG, "changeMaskingPolicyHealthReportCompartment") + .serviceDetails( + "DataSafe", + "ChangeMaskingPolicyHealthReportCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ChangeMaskingPolicyHealthReportCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeMaskingPolicyHealthReportCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeMaskingPolicyHealthReportCompartmentResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeOnPremConnectorCompartment( @@ -2422,6 +2462,42 @@ public java.util.concurrent.Future deleteMaskingPol .callAsync(handler); } + @Override + public java.util.concurrent.Future + deleteMaskingPolicyHealthReport( + DeleteMaskingPolicyHealthReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + DeleteMaskingPolicyHealthReportRequest, + DeleteMaskingPolicyHealthReportResponse> + handler) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + + return clientCall(request, DeleteMaskingPolicyHealthReportResponse::builder) + .logger(LOG, "deleteMaskingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "DeleteMaskingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/DeleteMaskingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteMaskingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-work-request-id", + DeleteMaskingPolicyHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteMaskingPolicyHealthReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future deleteOnPremConnector( DeleteOnPremConnectorRequest request, @@ -3272,6 +3348,43 @@ public java.util.concurrent.Future downloadPriv .callAsync(handler); } + @Override + public java.util.concurrent.Future generateHealthReport( + GenerateHealthReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GenerateHealthReportRequest, GenerateHealthReportResponse> + handler) { + + Validate.notBlank(request.getMaskingPolicyId(), "maskingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateHealthReportDetails(), + "generateHealthReportDetails is required"); + + return clientCall(request, GenerateHealthReportResponse::builder) + .logger(LOG, "generateHealthReport") + .serviceDetails( + "DataSafe", + "GenerateHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GenerateHealthReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicies") + .appendPathParam(request.getMaskingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generateHealthReport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", GenerateHealthReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future generateMaskingPolicyForDownload( @@ -4240,6 +4353,43 @@ public java.util.concurrent.Future getMaskingPolicy( .callAsync(handler); } + @Override + public java.util.concurrent.Future + getMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request, + final com.oracle.bmc.responses.AsyncHandler< + GetMaskingPolicyHealthReportRequest, + GetMaskingPolicyHealthReportResponse> + handler) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + + return clientCall(request, GetMaskingPolicyHealthReportResponse::builder) + .logger(LOG, "getMaskingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "GetMaskingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GetMaskingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaskingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport.class, + GetMaskingPolicyHealthReportResponse.Builder::maskingPolicyHealthReport) + .handleResponseHeaderString( + "etag", GetMaskingPolicyHealthReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetMaskingPolicyHealthReportResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future getMaskingReport( GetMaskingReportRequest request, @@ -6689,6 +6839,105 @@ public java.util.concurrent.Future listMaskingPolic .callAsync(handler); } + @Override + public java.util.concurrent.Future + listMaskingPolicyHealthReportLogs( + ListMaskingPolicyHealthReportLogsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaskingPolicyHealthReportLogsRequest, + ListMaskingPolicyHealthReportLogsResponse> + handler) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + + return clientCall(request, ListMaskingPolicyHealthReportLogsResponse::builder) + .logger(LOG, "listMaskingPolicyHealthReportLogs") + .serviceDetails( + "DataSafe", + "ListMaskingPolicyHealthReportLogs", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReportLogs") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaskingPolicyHealthReportLogsRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .appendPathParam("logs") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("messageType", request.getMessageType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection.class, + ListMaskingPolicyHealthReportLogsResponse.Builder + ::maskingPolicyHealthReportLogCollection) + .handleResponseHeaderString( + "opc-request-id", + ListMaskingPolicyHealthReportLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListMaskingPolicyHealthReportLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListMaskingPolicyHealthReportLogsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + + @Override + public java.util.concurrent.Future + listMaskingPolicyHealthReports( + ListMaskingPolicyHealthReportsRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ListMaskingPolicyHealthReportsRequest, + ListMaskingPolicyHealthReportsResponse> + handler) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMaskingPolicyHealthReportsResponse::builder) + .logger(LOG, "listMaskingPolicyHealthReports") + .serviceDetails( + "DataSafe", + "ListMaskingPolicyHealthReports", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaskingPolicyHealthReportsRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendQueryParam( + "maskingPolicyHealthReportId", request.getMaskingPolicyHealthReportId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("maskingPolicyId", request.getMaskingPolicyId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleBody( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection.class, + ListMaskingPolicyHealthReportsResponse.Builder + ::maskingPolicyHealthReportCollection) + .handleResponseHeaderString( + "opc-request-id", + ListMaskingPolicyHealthReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListMaskingPolicyHealthReportsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListMaskingPolicyHealthReportsResponse.Builder::opcPrevPage) + .callAsync(handler); + } + @Override public java.util.concurrent.Future listMaskingReports( ListMaskingReportsRequest request, 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 a5cca21516b..1d479e7c7ab 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 @@ -750,6 +750,43 @@ public ChangeMaskingPolicyCompartmentResponse changeMaskingPolicyCompartment( .callSync(); } + @Override + public ChangeMaskingPolicyHealthReportCompartmentResponse + changeMaskingPolicyHealthReportCompartment( + ChangeMaskingPolicyHealthReportCompartmentRequest request) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + Objects.requireNonNull( + request.getChangeMaskingPolicyHealthReportCompartmentDetails(), + "changeMaskingPolicyHealthReportCompartmentDetails is required"); + + return clientCall(request, ChangeMaskingPolicyHealthReportCompartmentResponse::builder) + .logger(LOG, "changeMaskingPolicyHealthReportCompartment") + .serviceDetails( + "DataSafe", + "ChangeMaskingPolicyHealthReportCompartment", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ChangeMaskingPolicyHealthReportCompartment") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ChangeMaskingPolicyHealthReportCompartmentRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .appendPathParam("actions") + .appendPathParam("changeCompartment") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-request-id", + ChangeMaskingPolicyHealthReportCompartmentResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeOnPremConnectorCompartmentResponse changeOnPremConnectorCompartment( ChangeOnPremConnectorCompartmentRequest request) { @@ -2254,6 +2291,38 @@ public DeleteMaskingPolicyResponse deleteMaskingPolicy(DeleteMaskingPolicyReques .callSync(); } + @Override + public DeleteMaskingPolicyHealthReportResponse deleteMaskingPolicyHealthReport( + DeleteMaskingPolicyHealthReportRequest request) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + + return clientCall(request, DeleteMaskingPolicyHealthReportResponse::builder) + .logger(LOG, "deleteMaskingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "DeleteMaskingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/DeleteMaskingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.DELETE) + .requestBuilder(DeleteMaskingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-work-request-id", + DeleteMaskingPolicyHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + DeleteMaskingPolicyHealthReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public DeleteOnPremConnectorResponse deleteOnPremConnector( DeleteOnPremConnectorRequest request) { @@ -3036,6 +3105,40 @@ public GenerateDiscoveryReportForDownloadResponse generateDiscoveryReportForDown .callSync(); } + @Override + public GenerateHealthReportResponse generateHealthReport(GenerateHealthReportRequest request) { + + Validate.notBlank(request.getMaskingPolicyId(), "maskingPolicyId must not be blank"); + Objects.requireNonNull( + request.getGenerateHealthReportDetails(), + "generateHealthReportDetails is required"); + + return clientCall(request, GenerateHealthReportResponse::builder) + .logger(LOG, "generateHealthReport") + .serviceDetails( + "DataSafe", + "GenerateHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GenerateHealthReport") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(GenerateHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicies") + .appendPathParam(request.getMaskingPolicyId()) + .appendPathParam("actions") + .appendPathParam("generateHealthReport") + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + GenerateHealthReportResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", GenerateHealthReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GenerateMaskingPolicyForDownloadResponse generateMaskingPolicyForDownload( GenerateMaskingPolicyForDownloadRequest request) { @@ -3920,6 +4023,39 @@ public GetMaskingPolicyResponse getMaskingPolicy(GetMaskingPolicyRequest request .callSync(); } + @Override + public GetMaskingPolicyHealthReportResponse getMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + + return clientCall(request, GetMaskingPolicyHealthReportResponse::builder) + .logger(LOG, "getMaskingPolicyHealthReport") + .serviceDetails( + "DataSafe", + "GetMaskingPolicyHealthReport", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/GetMaskingPolicyHealthReport") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(GetMaskingPolicyHealthReportRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport.class, + GetMaskingPolicyHealthReportResponse.Builder::maskingPolicyHealthReport) + .handleResponseHeaderString( + "etag", GetMaskingPolicyHealthReportResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", + GetMaskingPolicyHealthReportResponse.Builder::opcRequestId) + .callSync(); + } + @Override public GetMaskingReportResponse getMaskingReport(GetMaskingReportRequest request) { @@ -6203,6 +6339,97 @@ public ListMaskingPoliciesResponse listMaskingPolicies(ListMaskingPoliciesReques .callSync(); } + @Override + public ListMaskingPolicyHealthReportLogsResponse listMaskingPolicyHealthReportLogs( + ListMaskingPolicyHealthReportLogsRequest request) { + + Validate.notBlank( + request.getMaskingPolicyHealthReportId(), + "maskingPolicyHealthReportId must not be blank"); + + return clientCall(request, ListMaskingPolicyHealthReportLogsResponse::builder) + .logger(LOG, "listMaskingPolicyHealthReportLogs") + .serviceDetails( + "DataSafe", + "ListMaskingPolicyHealthReportLogs", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReportLogs") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaskingPolicyHealthReportLogsRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendPathParam(request.getMaskingPolicyHealthReportId()) + .appendPathParam("logs") + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("messageType", request.getMessageType()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection.class, + ListMaskingPolicyHealthReportLogsResponse.Builder + ::maskingPolicyHealthReportLogCollection) + .handleResponseHeaderString( + "opc-request-id", + ListMaskingPolicyHealthReportLogsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListMaskingPolicyHealthReportLogsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListMaskingPolicyHealthReportLogsResponse.Builder::opcPrevPage) + .callSync(); + } + + @Override + public ListMaskingPolicyHealthReportsResponse listMaskingPolicyHealthReports( + ListMaskingPolicyHealthReportsRequest request) { + Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); + + return clientCall(request, ListMaskingPolicyHealthReportsResponse::builder) + .logger(LOG, "listMaskingPolicyHealthReports") + .serviceDetails( + "DataSafe", + "ListMaskingPolicyHealthReports", + "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/MaskingPolicyHealthReport/ListMaskingPolicyHealthReports") + .method(com.oracle.bmc.http.client.Method.GET) + .requestBuilder(ListMaskingPolicyHealthReportsRequest::builder) + .basePath("/20181201") + .appendPathParam("maskingPolicyHealthReports") + .appendQueryParam( + "maskingPolicyHealthReportId", request.getMaskingPolicyHealthReportId()) + .appendQueryParam("limit", request.getLimit()) + .appendQueryParam("page", request.getPage()) + .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendQueryParam("compartmentIdInSubtree", request.getCompartmentIdInSubtree()) + .appendEnumQueryParam("accessLevel", request.getAccessLevel()) + .appendEnumQueryParam("sortBy", request.getSortBy()) + .appendEnumQueryParam("sortOrder", request.getSortOrder()) + .appendQueryParam("displayName", request.getDisplayName()) + .appendQueryParam("targetId", request.getTargetId()) + .appendQueryParam("maskingPolicyId", request.getMaskingPolicyId()) + .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) + .accept("application/json") + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleBody( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection.class, + ListMaskingPolicyHealthReportsResponse.Builder + ::maskingPolicyHealthReportCollection) + .handleResponseHeaderString( + "opc-request-id", + ListMaskingPolicyHealthReportsResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-next-page", + ListMaskingPolicyHealthReportsResponse.Builder::opcNextPage) + .handleResponseHeaderString( + "opc-prev-page", + ListMaskingPolicyHealthReportsResponse.Builder::opcPrevPage) + .callSync(); + } + @Override public ListMaskingReportsResponse listMaskingReports(ListMaskingReportsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); 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 c7f42f714b6..56ae346b911 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 @@ -4136,6 +4136,268 @@ public java.util.List apply( }); } + /** + * Creates a new iterable which will iterate over the responses received from the + * listMaskingPolicyHealthReportLogs 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 + listMaskingPolicyHealthReportLogsResponseIterator( + final ListMaskingPolicyHealthReportLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaskingPolicyHealthReportLogsRequest.Builder, + ListMaskingPolicyHealthReportLogsRequest, + ListMaskingPolicyHealthReportLogsResponse>( + new java.util.function.Supplier< + ListMaskingPolicyHealthReportLogsRequest.Builder>() { + @Override + public ListMaskingPolicyHealthReportLogsRequest.Builder get() { + return ListMaskingPolicyHealthReportLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListMaskingPolicyHealthReportLogsResponse, String>() { + @Override + public String apply(ListMaskingPolicyHealthReportLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportLogsRequest.Builder>, + ListMaskingPolicyHealthReportLogsRequest>() { + @Override + public ListMaskingPolicyHealthReportLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportLogsRequest.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< + ListMaskingPolicyHealthReportLogsRequest, + ListMaskingPolicyHealthReportLogsResponse>() { + @Override + public ListMaskingPolicyHealthReportLogsResponse apply( + ListMaskingPolicyHealthReportLogsRequest request) { + return client.listMaskingPolicyHealthReportLogs(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogSummary} objects contained in + * responses from the listMaskingPolicyHealthReportLogs 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.MaskingPolicyHealthReportLogSummary} objects contained in + * responses received from the service. + */ + public Iterable + listMaskingPolicyHealthReportLogsRecordIterator( + final ListMaskingPolicyHealthReportLogsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaskingPolicyHealthReportLogsRequest.Builder, + ListMaskingPolicyHealthReportLogsRequest, + ListMaskingPolicyHealthReportLogsResponse, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogSummary>( + new java.util.function.Supplier< + ListMaskingPolicyHealthReportLogsRequest.Builder>() { + @Override + public ListMaskingPolicyHealthReportLogsRequest.Builder get() { + return ListMaskingPolicyHealthReportLogsRequest.builder().copy(request); + } + }, + new java.util.function.Function< + ListMaskingPolicyHealthReportLogsResponse, String>() { + @Override + public String apply(ListMaskingPolicyHealthReportLogsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportLogsRequest.Builder>, + ListMaskingPolicyHealthReportLogsRequest>() { + @Override + public ListMaskingPolicyHealthReportLogsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportLogsRequest.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< + ListMaskingPolicyHealthReportLogsRequest, + ListMaskingPolicyHealthReportLogsResponse>() { + @Override + public ListMaskingPolicyHealthReportLogsResponse apply( + ListMaskingPolicyHealthReportLogsRequest request) { + return client.listMaskingPolicyHealthReportLogs(request); + } + }, + new java.util.function.Function< + ListMaskingPolicyHealthReportLogsResponse, + java.util.List< + com.oracle.bmc.datasafe.model + .MaskingPolicyHealthReportLogSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model + .MaskingPolicyHealthReportLogSummary> + apply(ListMaskingPolicyHealthReportLogsResponse response) { + return response.getMaskingPolicyHealthReportLogCollection().getItems(); + } + }); + } + + /** + * Creates a new iterable which will iterate over the responses received from the + * listMaskingPolicyHealthReports 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 + listMaskingPolicyHealthReportsResponseIterator( + final ListMaskingPolicyHealthReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseIterable< + ListMaskingPolicyHealthReportsRequest.Builder, + ListMaskingPolicyHealthReportsRequest, + ListMaskingPolicyHealthReportsResponse>( + new java.util.function.Supplier() { + @Override + public ListMaskingPolicyHealthReportsRequest.Builder get() { + return ListMaskingPolicyHealthReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaskingPolicyHealthReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportsRequest.Builder>, + ListMaskingPolicyHealthReportsRequest>() { + @Override + public ListMaskingPolicyHealthReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportsRequest.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< + ListMaskingPolicyHealthReportsRequest, + ListMaskingPolicyHealthReportsResponse>() { + @Override + public ListMaskingPolicyHealthReportsResponse apply( + ListMaskingPolicyHealthReportsRequest request) { + return client.listMaskingPolicyHealthReports(request); + } + }); + } + + /** + * Creates a new iterable which will iterate over the {@link + * com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportSummary} objects contained in + * responses from the listMaskingPolicyHealthReports 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.MaskingPolicyHealthReportSummary} objects contained in + * responses received from the service. + */ + public Iterable + listMaskingPolicyHealthReportsRecordIterator( + final ListMaskingPolicyHealthReportsRequest request) { + return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< + ListMaskingPolicyHealthReportsRequest.Builder, + ListMaskingPolicyHealthReportsRequest, + ListMaskingPolicyHealthReportsResponse, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportSummary>( + new java.util.function.Supplier() { + @Override + public ListMaskingPolicyHealthReportsRequest.Builder get() { + return ListMaskingPolicyHealthReportsRequest.builder().copy(request); + } + }, + new java.util.function.Function() { + @Override + public String apply(ListMaskingPolicyHealthReportsResponse response) { + return response.getOpcNextPage(); + } + }, + new java.util.function.Function< + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportsRequest.Builder>, + ListMaskingPolicyHealthReportsRequest>() { + @Override + public ListMaskingPolicyHealthReportsRequest apply( + com.oracle.bmc.paginator.internal.RequestBuilderAndToken< + ListMaskingPolicyHealthReportsRequest.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< + ListMaskingPolicyHealthReportsRequest, + ListMaskingPolicyHealthReportsResponse>() { + @Override + public ListMaskingPolicyHealthReportsResponse apply( + ListMaskingPolicyHealthReportsRequest request) { + return client.listMaskingPolicyHealthReports(request); + } + }, + new java.util.function.Function< + ListMaskingPolicyHealthReportsResponse, + java.util.List< + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportSummary>>() { + @Override + public java.util.List< + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportSummary> + apply(ListMaskingPolicyHealthReportsResponse response) { + return response.getMaskingPolicyHealthReportCollection().getItems(); + } + }); + } + /** * Creates a new iterable which will iterate over the responses received from the * listMaskingReports 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 98430fb4b52..dc58d534251 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 @@ -1403,6 +1403,120 @@ public boolean test(GetMaskingPolicyResponse 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< + GetMaskingPolicyHealthReportRequest, GetMaskingPolicyHealthReportResponse> + forMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport.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 forMaskingPolicyHealthReport( + 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< + GetMaskingPolicyHealthReportRequest, GetMaskingPolicyHealthReportResponse> + forMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport.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 forMaskingPolicyHealthReport( + 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< + GetMaskingPolicyHealthReportRequest, GetMaskingPolicyHealthReportResponse> + forMaskingPolicyHealthReport( + GetMaskingPolicyHealthReportRequest request, + com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, + com.oracle.bmc.waiter.DelayStrategy delayStrategy, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport.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 forMaskingPolicyHealthReport( + com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), + request, + targetStates); + } + + // Helper method to create a new Waiter for MaskingPolicyHealthReport. + private com.oracle.bmc.waiter.Waiter< + GetMaskingPolicyHealthReportRequest, GetMaskingPolicyHealthReportResponse> + forMaskingPolicyHealthReport( + com.oracle.bmc.waiter.BmcGenericWaiter waiter, + final GetMaskingPolicyHealthReportRequest request, + final com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport.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< + GetMaskingPolicyHealthReportRequest, + GetMaskingPolicyHealthReportResponse>() { + @Override + public GetMaskingPolicyHealthReportResponse apply( + GetMaskingPolicyHealthReportRequest request) { + return client.getMaskingPolicyHealthReport(request); + } + }, + new java.util.function.Predicate() { + @Override + public boolean test(GetMaskingPolicyHealthReportResponse response) { + return targetStatesSet.contains( + response.getMaskingPolicyHealthReport() + .getLifecycleState()); + } + }, + false), + request); + } + /** * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeMaskingPolicyHealthReportCompartmentDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeMaskingPolicyHealthReportCompartmentDetails.java new file mode 100644 index 00000000000..d2523ec6719 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/ChangeMaskingPolicyHealthReportCompartmentDetails.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to change the compartment of a masking policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ChangeMaskingPolicyHealthReportCompartmentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ChangeMaskingPolicyHealthReportCompartmentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"compartmentId"}) + public ChangeMaskingPolicyHealthReportCompartmentDetails(String compartmentId) { + super(); + this.compartmentId = compartmentId; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the compartment where the masking policy should be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the masking policy should be moved. + * + * @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 ChangeMaskingPolicyHealthReportCompartmentDetails build() { + ChangeMaskingPolicyHealthReportCompartmentDetails model = + new ChangeMaskingPolicyHealthReportCompartmentDetails(this.compartmentId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ChangeMaskingPolicyHealthReportCompartmentDetails 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 the masking policy should be moved. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the masking policy should be moved. + * + * @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("ChangeMaskingPolicyHealthReportCompartmentDetails("); + 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 ChangeMaskingPolicyHealthReportCompartmentDetails)) { + return false; + } + + ChangeMaskingPolicyHealthReportCompartmentDetails other = + (ChangeMaskingPolicyHealthReportCompartmentDetails) 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/GenerateHealthReportDetails.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateHealthReportDetails.java new file mode 100644 index 00000000000..abb80d99058 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/GenerateHealthReportDetails.java @@ -0,0 +1,420 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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; + +/** + * Details to use when performing health check on a masking policy.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GenerateHealthReportDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GenerateHealthReportDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "checkType", + "targetId", + "compartmentId", + "tablespace", + "freeformTags", + "definedTags" + }) + public GenerateHealthReportDetails( + CheckType checkType, + String targetId, + String compartmentId, + String tablespace, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.checkType = checkType; + this.targetId = targetId; + this.compartmentId = compartmentId; + this.tablespace = tablespace; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The type of health check. The default behaviour is to perform all health checks. */ + @com.fasterxml.jackson.annotation.JsonProperty("checkType") + private CheckType checkType; + + /** + * The type of health check. The default behaviour is to perform all health checks. + * + * @param checkType the value to set + * @return this builder + */ + public Builder checkType(CheckType checkType) { + this.checkType = checkType; + this.__explicitlySet__.add("checkType"); + return this; + } + /** + * The OCID of the target database to use for the masking policy health check. The targetId + * associated with the masking policy is used if this is not passed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database to use for the masking policy health check. The targetId + * associated with the masking policy is used if this is not passed. + * + * @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 compartment where the health report resource should be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment where the health report resource should 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; + } + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespace") + private String tablespace; + + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + * + * @param tablespace the value to set + * @return this builder + */ + public Builder tablespace(String tablespace) { + this.tablespace = tablespace; + this.__explicitlySet__.add("tablespace"); + 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.cloud.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.cloud.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.cloud.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.cloud.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 GenerateHealthReportDetails build() { + GenerateHealthReportDetails model = + new GenerateHealthReportDetails( + this.checkType, + this.targetId, + this.compartmentId, + this.tablespace, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GenerateHealthReportDetails model) { + if (model.wasPropertyExplicitlySet("checkType")) { + this.checkType(model.getCheckType()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("tablespace")) { + this.tablespace(model.getTablespace()); + } + 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 type of health check. The default behaviour is to perform all health checks. */ + public enum CheckType implements com.oracle.bmc.http.internal.BmcEnum { + All("ALL"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CheckType v : CheckType.values()) { + map.put(v.getValue(), v); + } + } + + CheckType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CheckType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid CheckType: " + key); + } + }; + /** The type of health check. The default behaviour is to perform all health checks. */ + @com.fasterxml.jackson.annotation.JsonProperty("checkType") + private final CheckType checkType; + + /** + * The type of health check. The default behaviour is to perform all health checks. + * + * @return the value + */ + public CheckType getCheckType() { + return checkType; + } + + /** + * The OCID of the target database to use for the masking policy health check. The targetId + * associated with the masking policy is used if this is not passed. + */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database to use for the masking policy health check. The targetId + * associated with the masking policy is used if this is not passed. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the compartment where the health report resource should be created. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment where the health report resource should be created. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("tablespace") + private final String tablespace; + + /** + * The tablespace that should be used to estimate space. If no tablespace is provided, the + * DEFAULT tablespace is used. + * + * @return the value + */ + public String getTablespace() { + return tablespace; + } + + /** + * 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.cloud.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.cloud.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.cloud.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.cloud.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("GenerateHealthReportDetails("); + sb.append("super=").append(super.toString()); + sb.append("checkType=").append(String.valueOf(this.checkType)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", tablespace=").append(String.valueOf(this.tablespace)); + 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 GenerateHealthReportDetails)) { + return false; + } + + GenerateHealthReportDetails other = (GenerateHealthReportDetails) o; + return java.util.Objects.equals(this.checkType, other.checkType) + && java.util.Objects.equals(this.targetId, other.targetId) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.tablespace, other.tablespace) + && 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.checkType == null ? 43 : this.checkType.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.tablespace == null ? 43 : this.tablespace.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/MaskingPolicyHealthReport.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReport.java new file mode 100644 index 00000000000..a62e095f5d2 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReport.java @@ -0,0 +1,631 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 masking policy health report.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaskingPolicyHealthReport.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaskingPolicyHealthReport + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "maskingPolicyId", + "targetId", + "compartmentId", + "displayName", + "timeCreated", + "timeUpdated", + "lifecycleState", + "description", + "freeformTags", + "definedTags" + }) + public MaskingPolicyHealthReport( + String id, + String maskingPolicyId, + String targetId, + String compartmentId, + String displayName, + java.util.Date timeCreated, + java.util.Date timeUpdated, + LifecycleState lifecycleState, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.maskingPolicyId = maskingPolicyId; + this.targetId = targetId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.lifecycleState = lifecycleState; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the health report. + * + * @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 masking policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy. + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + return this; + } + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @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 compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @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 health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the health report. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + /** + * The date and time the report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/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; + } + /** The current state of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The description of the masking health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the masking health report. + * + * @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.cloud.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.cloud.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.cloud.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.cloud.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 MaskingPolicyHealthReport build() { + MaskingPolicyHealthReport model = + new MaskingPolicyHealthReport( + this.id, + this.maskingPolicyId, + this.targetId, + this.compartmentId, + this.displayName, + this.timeCreated, + this.timeUpdated, + this.lifecycleState, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaskingPolicyHealthReport model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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 of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the health report. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the masking policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy. + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the health report. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** + * The date and time the report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private final java.util.Date timeUpdated; + + /** + * The date and time the report was last updated, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339) + * + * @return the value + */ + public java.util.Date getTimeUpdated() { + return timeUpdated; + } + + /** The current state of the health report. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Active("ACTIVE"), + Updating("UPDATING"), + Deleting("DELETING"), + 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 health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @return the value + */ + public LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The description of the masking health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the masking health report. + * + * @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.cloud.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.cloud.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.cloud.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.cloud.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("MaskingPolicyHealthReport("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 MaskingPolicyHealthReport)) { + return false; + } + + MaskingPolicyHealthReport other = (MaskingPolicyHealthReport) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && 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.lifecycleState, other.lifecycleState) + && 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.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.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.lifecycleState == null ? 43 : this.lifecycleState.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/MaskingPolicyHealthReportCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportCollection.java new file mode 100644 index 00000000000..b74d1412188 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 collection of masking policy health report objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaskingPolicyHealthReportCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaskingPolicyHealthReportCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaskingPolicyHealthReportCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of masking policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of masking policy health report 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 MaskingPolicyHealthReportCollection build() { + MaskingPolicyHealthReportCollection model = + new MaskingPolicyHealthReportCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaskingPolicyHealthReportCollection 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); + } + + /** An array of masking policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of masking policy health report 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("MaskingPolicyHealthReportCollection("); + 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 MaskingPolicyHealthReportCollection)) { + return false; + } + + MaskingPolicyHealthReportCollection other = (MaskingPolicyHealthReportCollection) 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/MaskingPolicyHealthReportLogCollection.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportLogCollection.java new file mode 100644 index 00000000000..6a7489b21ef --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportLogCollection.java @@ -0,0 +1,135 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 collection of masking policy health log objects.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaskingPolicyHealthReportLogCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaskingPolicyHealthReportLogCollection + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"items"}) + public MaskingPolicyHealthReportLogCollection( + java.util.List items) { + super(); + this.items = items; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of masking policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of masking policy health report 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 MaskingPolicyHealthReportLogCollection build() { + MaskingPolicyHealthReportLogCollection model = + new MaskingPolicyHealthReportLogCollection(this.items); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaskingPolicyHealthReportLogCollection 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); + } + + /** An array of masking policy health report objects. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of masking policy health report 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("MaskingPolicyHealthReportLogCollection("); + 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 MaskingPolicyHealthReportLogCollection)) { + return false; + } + + MaskingPolicyHealthReportLogCollection other = (MaskingPolicyHealthReportLogCollection) 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/MaskingPolicyHealthReportLogSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportLogSummary.java new file mode 100644 index 00000000000..195e367d477 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportLogSummary.java @@ -0,0 +1,346 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 log entry related to the pre-masking health check.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaskingPolicyHealthReportLogSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaskingPolicyHealthReportLogSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "messageType", + "timestamp", + "message", + "remediation", + "description" + }) + public MaskingPolicyHealthReportLogSummary( + MessageType messageType, + java.util.Date timestamp, + String message, + String remediation, + String description) { + super(); + this.messageType = messageType; + this.timestamp = timestamp; + this.message = message; + this.remediation = remediation; + this.description = description; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The log entry type. */ + @com.fasterxml.jackson.annotation.JsonProperty("messageType") + private MessageType messageType; + + /** + * The log entry type. + * + * @param messageType the value to set + * @return this builder + */ + public Builder messageType(MessageType messageType) { + this.messageType = messageType; + this.__explicitlySet__.add("messageType"); + return this; + } + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private java.util.Date timestamp; + + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](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; + } + /** A human-readable log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private String message; + + /** + * A human-readable log entry. + * + * @param message the value to set + * @return this builder + */ + public Builder message(String message) { + this.message = message; + this.__explicitlySet__.add("message"); + return this; + } + /** A human-readable log entry to remedy any error or warnings in the masking policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("remediation") + private String remediation; + + /** + * A human-readable log entry to remedy any error or warnings in the masking policy. + * + * @param remediation the value to set + * @return this builder + */ + public Builder remediation(String remediation) { + this.remediation = remediation; + this.__explicitlySet__.add("remediation"); + return this; + } + /** A human-readable description for the log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A human-readable description for the log entry. + * + * @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 MaskingPolicyHealthReportLogSummary build() { + MaskingPolicyHealthReportLogSummary model = + new MaskingPolicyHealthReportLogSummary( + this.messageType, + this.timestamp, + this.message, + this.remediation, + this.description); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaskingPolicyHealthReportLogSummary model) { + if (model.wasPropertyExplicitlySet("messageType")) { + this.messageType(model.getMessageType()); + } + if (model.wasPropertyExplicitlySet("timestamp")) { + this.timestamp(model.getTimestamp()); + } + if (model.wasPropertyExplicitlySet("message")) { + this.message(model.getMessage()); + } + if (model.wasPropertyExplicitlySet("remediation")) { + this.remediation(model.getRemediation()); + } + 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 log entry type. */ + public enum MessageType implements com.oracle.bmc.http.internal.BmcEnum { + Pass("PASS"), + Warning("WARNING"), + Error("ERROR"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(MessageType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MessageType v : MessageType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + MessageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MessageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'MessageType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The log entry type. */ + @com.fasterxml.jackson.annotation.JsonProperty("messageType") + private final MessageType messageType; + + /** + * The log entry type. + * + * @return the value + */ + public MessageType getMessageType() { + return messageType; + } + + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timestamp") + private final java.util.Date timestamp; + + /** + * The date and time the log entry was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimestamp() { + return timestamp; + } + + /** A human-readable log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("message") + private final String message; + + /** + * A human-readable log entry. + * + * @return the value + */ + public String getMessage() { + return message; + } + + /** A human-readable log entry to remedy any error or warnings in the masking policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("remediation") + private final String remediation; + + /** + * A human-readable log entry to remedy any error or warnings in the masking policy. + * + * @return the value + */ + public String getRemediation() { + return remediation; + } + + /** A human-readable description for the log entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A human-readable description for the log entry. + * + * @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("MaskingPolicyHealthReportLogSummary("); + sb.append("super=").append(super.toString()); + sb.append("messageType=").append(String.valueOf(this.messageType)); + sb.append(", timestamp=").append(String.valueOf(this.timestamp)); + sb.append(", message=").append(String.valueOf(this.message)); + sb.append(", remediation=").append(String.valueOf(this.remediation)); + 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 MaskingPolicyHealthReportLogSummary)) { + return false; + } + + MaskingPolicyHealthReportLogSummary other = (MaskingPolicyHealthReportLogSummary) o; + return java.util.Objects.equals(this.messageType, other.messageType) + && java.util.Objects.equals(this.timestamp, other.timestamp) + && java.util.Objects.equals(this.message, other.message) + && java.util.Objects.equals(this.remediation, other.remediation) + && 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.messageType == null ? 43 : this.messageType.hashCode()); + result = (result * PRIME) + (this.timestamp == null ? 43 : this.timestamp.hashCode()); + result = (result * PRIME) + (this.message == null ? 43 : this.message.hashCode()); + result = (result * PRIME) + (this.remediation == null ? 43 : this.remediation.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportSummary.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportSummary.java new file mode 100644 index 00000000000..ca5960c2e74 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/MaskingPolicyHealthReportSummary.java @@ -0,0 +1,536 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 a masking policy health report.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MaskingPolicyHealthReportSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MaskingPolicyHealthReportSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "id", + "maskingPolicyId", + "targetId", + "compartmentId", + "displayName", + "timeCreated", + "lifecycleState", + "description", + "freeformTags", + "definedTags" + }) + public MaskingPolicyHealthReportSummary( + String id, + String maskingPolicyId, + String targetId, + String compartmentId, + String displayName, + java.util.Date timeCreated, + MaskingPolicyHealthReport.LifecycleState lifecycleState, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super(); + this.id = id; + this.maskingPolicyId = maskingPolicyId; + this.targetId = targetId; + this.compartmentId = compartmentId; + this.displayName = displayName; + this.timeCreated = timeCreated; + this.lifecycleState = lifecycleState; + this.description = description; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The OCID of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the health report. + * + * @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 masking policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private String maskingPolicyId; + + /** + * The OCID of the masking policy. + * + * @param maskingPolicyId the value to set + * @return this builder + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + this.__explicitlySet__.add("maskingPolicyId"); + return this; + } + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @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 compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @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 health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The display name of the health report. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @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 current state of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MaskingPolicyHealthReport.LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @param lifecycleState the value to set + * @return this builder + */ + public Builder lifecycleState(MaskingPolicyHealthReport.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + /** The description of the masking health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * The description of the masking health report. + * + * @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.cloud.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.cloud.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.cloud.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.cloud.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 MaskingPolicyHealthReportSummary build() { + MaskingPolicyHealthReportSummary model = + new MaskingPolicyHealthReportSummary( + this.id, + this.maskingPolicyId, + this.targetId, + this.compartmentId, + this.displayName, + this.timeCreated, + this.lifecycleState, + this.description, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MaskingPolicyHealthReportSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("maskingPolicyId")) { + this.maskingPolicyId(model.getMaskingPolicyId()); + } + if (model.wasPropertyExplicitlySet("targetId")) { + this.targetId(model.getTargetId()); + } + 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("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + 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 of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the health report. + * + * @return the value + */ + public String getId() { + return id; + } + + /** The OCID of the masking policy. */ + @com.fasterxml.jackson.annotation.JsonProperty("maskingPolicyId") + private final String maskingPolicyId; + + /** + * The OCID of the masking policy. + * + * @return the value + */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + + /** The OCID of the target database for which this report was created. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetId") + private final String targetId; + + /** + * The OCID of the target database for which this report was created. + * + * @return the value + */ + public String getTargetId() { + return targetId; + } + + /** The OCID of the compartment that contains the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment that contains the health report. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** The display name of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The display name of the health report. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private final java.util.Date timeCreated; + + /** + * The date and time the report was created, in the format defined by + * [RFC3339](https://tools.ietf.org/html/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCreated() { + return timeCreated; + } + + /** The current state of the health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final MaskingPolicyHealthReport.LifecycleState lifecycleState; + + /** + * The current state of the health report. + * + * @return the value + */ + public MaskingPolicyHealthReport.LifecycleState getLifecycleState() { + return lifecycleState; + } + + /** The description of the masking health report. */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * The description of the masking health report. + * + * @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.cloud.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.cloud.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.cloud.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.cloud.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("MaskingPolicyHealthReportSummary("); + sb.append("super=").append(super.toString()); + sb.append("id=").append(String.valueOf(this.id)); + sb.append(", maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(", targetId=").append(String.valueOf(this.targetId)); + 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(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + 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 MaskingPolicyHealthReportSummary)) { + return false; + } + + MaskingPolicyHealthReportSummary other = (MaskingPolicyHealthReportSummary) o; + return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.targetId, other.targetId) + && 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.lifecycleState, other.lifecycleState) + && 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.id == null ? 43 : this.id.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = (result * PRIME) + (this.targetId == null ? 43 : this.targetId.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.lifecycleState == null ? 43 : this.lifecycleState.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/WorkRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/model/WorkRequest.java index fa53d638600..3013bef24c8 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 @@ -392,6 +392,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateDifference("UPDATE_DIFFERENCE"), PatchDifference("PATCH_DIFFERENCE"), ApplyDifference("APPLY_DIFFERENCE"), + MaskPolicyGenerateHealthReport("MASK_POLICY_GENERATE_HEALTH_REPORT"), AbortMasking("ABORT_MASKING"), CreateSecurityPolicyReport("CREATE_SECURITY_POLICY_REPORT"), RefreshSecurityPolicyCache("REFRESH_SECURITY_POLICY_CACHE"), 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 64ba8d9d3a2..54c989dc527 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 @@ -393,6 +393,7 @@ public enum OperationType implements com.oracle.bmc.http.internal.BmcEnum { UpdateDifference("UPDATE_DIFFERENCE"), PatchDifference("PATCH_DIFFERENCE"), ApplyDifference("APPLY_DIFFERENCE"), + MaskPolicyGenerateHealthReport("MASK_POLICY_GENERATE_HEALTH_REPORT"), AbortMasking("ABORT_MASKING"), CreateSecurityPolicyReport("CREATE_SECURITY_POLICY_REPORT"), RefreshSecurityPolicyCache("REFRESH_SECURITY_POLICY_CACHE"), diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeMaskingPolicyHealthReportCompartmentRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeMaskingPolicyHealthReportCompartmentRequest.java new file mode 100644 index 00000000000..7354fa4c3ac --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ChangeMaskingPolicyHealthReportCompartmentRequest.java @@ -0,0 +1,376 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ChangeMaskingPolicyHealthReportCompartmentRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeMaskingPolicyHealthReportCompartmentRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails> { + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId; + + /** The OCID of the masking health report. */ + public String getMaskingPolicyHealthReportId() { + return maskingPolicyHealthReportId; + } + /** Details to change the compartment of a masking policy. */ + private com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails + changeMaskingPolicyHealthReportCompartmentDetails; + + /** Details to change the compartment of a masking policy. */ + public com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails + getChangeMaskingPolicyHealthReportCompartmentDetails() { + return changeMaskingPolicyHealthReportCompartmentDetails; + } + /** + * 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.ChangeMaskingPolicyHealthReportCompartmentDetails + getBody$() { + return changeMaskingPolicyHealthReportCompartmentDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ChangeMaskingPolicyHealthReportCompartmentRequest, + com.oracle.bmc.datasafe.model + .ChangeMaskingPolicyHealthReportCompartmentDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId = null; + + /** + * The OCID of the masking health report. + * + * @param maskingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder maskingPolicyHealthReportId(String maskingPolicyHealthReportId) { + this.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + return this; + } + + /** Details to change the compartment of a masking policy. */ + private com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails + changeMaskingPolicyHealthReportCompartmentDetails = null; + + /** + * Details to change the compartment of a masking policy. + * + * @param changeMaskingPolicyHealthReportCompartmentDetails the value to set + * @return this builder instance + */ + public Builder changeMaskingPolicyHealthReportCompartmentDetails( + com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails + changeMaskingPolicyHealthReportCompartmentDetails) { + this.changeMaskingPolicyHealthReportCompartmentDetails = + changeMaskingPolicyHealthReportCompartmentDetails; + 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.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ChangeMaskingPolicyHealthReportCompartmentRequest o) { + maskingPolicyHealthReportId(o.getMaskingPolicyHealthReportId()); + changeMaskingPolicyHealthReportCompartmentDetails( + o.getChangeMaskingPolicyHealthReportCompartmentDetails()); + ifMatch(o.getIfMatch()); + opcRetryToken(o.getOpcRetryToken()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ChangeMaskingPolicyHealthReportCompartmentRequest as configured by + * this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of ChangeMaskingPolicyHealthReportCompartmentRequest + */ + public ChangeMaskingPolicyHealthReportCompartmentRequest build() { + ChangeMaskingPolicyHealthReportCompartmentRequest 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.ChangeMaskingPolicyHealthReportCompartmentDetails + body) { + changeMaskingPolicyHealthReportCompartmentDetails(body); + return this; + } + + /** + * Build the instance of ChangeMaskingPolicyHealthReportCompartmentRequest as configured by + * this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ChangeMaskingPolicyHealthReportCompartmentRequest + */ + public ChangeMaskingPolicyHealthReportCompartmentRequest buildWithoutInvocationCallback() { + ChangeMaskingPolicyHealthReportCompartmentRequest request = + new ChangeMaskingPolicyHealthReportCompartmentRequest(); + request.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + request.changeMaskingPolicyHealthReportCompartmentDetails = + changeMaskingPolicyHealthReportCompartmentDetails; + request.ifMatch = ifMatch; + request.opcRetryToken = opcRetryToken; + request.opcRequestId = opcRequestId; + return request; + // new ChangeMaskingPolicyHealthReportCompartmentRequest(maskingPolicyHealthReportId, + // changeMaskingPolicyHealthReportCompartmentDetails, 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() + .maskingPolicyHealthReportId(maskingPolicyHealthReportId) + .changeMaskingPolicyHealthReportCompartmentDetails( + changeMaskingPolicyHealthReportCompartmentDetails) + .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(",maskingPolicyHealthReportId=") + .append(String.valueOf(this.maskingPolicyHealthReportId)); + sb.append(",changeMaskingPolicyHealthReportCompartmentDetails=") + .append(String.valueOf(this.changeMaskingPolicyHealthReportCompartmentDetails)); + 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 ChangeMaskingPolicyHealthReportCompartmentRequest)) { + return false; + } + + ChangeMaskingPolicyHealthReportCompartmentRequest other = + (ChangeMaskingPolicyHealthReportCompartmentRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.maskingPolicyHealthReportId, other.maskingPolicyHealthReportId) + && java.util.Objects.equals( + this.changeMaskingPolicyHealthReportCompartmentDetails, + other.changeMaskingPolicyHealthReportCompartmentDetails) + && 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.maskingPolicyHealthReportId == null + ? 43 + : this.maskingPolicyHealthReportId.hashCode()); + result = + (result * PRIME) + + (this.changeMaskingPolicyHealthReportCompartmentDetails == null + ? 43 + : this.changeMaskingPolicyHealthReportCompartmentDetails + .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/DeleteMaskingPolicyHealthReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteMaskingPolicyHealthReportRequest.java new file mode 100644 index 00000000000..a2905919ea0 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/DeleteMaskingPolicyHealthReportRequest.java @@ -0,0 +1,249 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * DeleteMaskingPolicyHealthReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteMaskingPolicyHealthReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId; + + /** The OCID of the masking health report. */ + public String getMaskingPolicyHealthReportId() { + return maskingPolicyHealthReportId; + } + /** + * 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< + DeleteMaskingPolicyHealthReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId = null; + + /** + * The OCID of the masking health report. + * + * @param maskingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder maskingPolicyHealthReportId(String maskingPolicyHealthReportId) { + this.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * if-match parameter to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches + * the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(DeleteMaskingPolicyHealthReportRequest o) { + maskingPolicyHealthReportId(o.getMaskingPolicyHealthReportId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of DeleteMaskingPolicyHealthReportRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of DeleteMaskingPolicyHealthReportRequest + */ + public DeleteMaskingPolicyHealthReportRequest buildWithoutInvocationCallback() { + DeleteMaskingPolicyHealthReportRequest request = + new DeleteMaskingPolicyHealthReportRequest(); + request.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new DeleteMaskingPolicyHealthReportRequest(maskingPolicyHealthReportId, 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() + .maskingPolicyHealthReportId(maskingPolicyHealthReportId) + .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(",maskingPolicyHealthReportId=") + .append(String.valueOf(this.maskingPolicyHealthReportId)); + 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 DeleteMaskingPolicyHealthReportRequest)) { + return false; + } + + DeleteMaskingPolicyHealthReportRequest other = (DeleteMaskingPolicyHealthReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.maskingPolicyHealthReportId, other.maskingPolicyHealthReportId) + && 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.maskingPolicyHealthReportId == null + ? 43 + : this.maskingPolicyHealthReportId.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateHealthReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateHealthReportRequest.java new file mode 100644 index 00000000000..18557a97fb2 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GenerateHealthReportRequest.java @@ -0,0 +1,309 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 GenerateHealthReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateHealthReportRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.datasafe.model.GenerateHealthReportDetails> { + + /** The OCID of the masking policy. */ + private String maskingPolicyId; + + /** The OCID of the masking policy. */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + /** Details to perform an health check. */ + private com.oracle.bmc.datasafe.model.GenerateHealthReportDetails generateHealthReportDetails; + + /** Details to perform an health check. */ + public com.oracle.bmc.datasafe.model.GenerateHealthReportDetails + getGenerateHealthReportDetails() { + return generateHealthReportDetails; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for 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 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.datasafe.model.GenerateHealthReportDetails getBody$() { + return generateHealthReportDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + GenerateHealthReportRequest, + com.oracle.bmc.datasafe.model.GenerateHealthReportDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the masking policy. */ + private String maskingPolicyId = null; + + /** + * The OCID of the masking policy. + * + * @param maskingPolicyId the value to set + * @return this builder instance + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + return this; + } + + /** Details to perform an health check. */ + private com.oracle.bmc.datasafe.model.GenerateHealthReportDetails + generateHealthReportDetails = null; + + /** + * Details to perform an health check. + * + * @param generateHealthReportDetails the value to set + * @return this builder instance + */ + public Builder generateHealthReportDetails( + com.oracle.bmc.datasafe.model.GenerateHealthReportDetails + generateHealthReportDetails) { + this.generateHealthReportDetails = generateHealthReportDetails; + 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; + } + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + */ + private String opcRetryToken = null; + + /** + * A token that uniquely identifies a request so it can be retried in case of a timeout or + * server error without risk of executing that same action again. Retry tokens expire after + * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * if a resource has been deleted and purged from the system, then a retry of the original + * creation request might be rejected. + * + * @param opcRetryToken the value to set + * @return this builder instance + */ + public Builder opcRetryToken(String opcRetryToken) { + this.opcRetryToken = opcRetryToken; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GenerateHealthReportRequest o) { + maskingPolicyId(o.getMaskingPolicyId()); + generateHealthReportDetails(o.getGenerateHealthReportDetails()); + opcRequestId(o.getOpcRequestId()); + opcRetryToken(o.getOpcRetryToken()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GenerateHealthReportRequest as configured by this builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of GenerateHealthReportRequest + */ + public GenerateHealthReportRequest build() { + GenerateHealthReportRequest 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.GenerateHealthReportDetails body) { + generateHealthReportDetails(body); + return this; + } + + /** + * Build the instance of GenerateHealthReportRequest as configured by this builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GenerateHealthReportRequest + */ + public GenerateHealthReportRequest buildWithoutInvocationCallback() { + GenerateHealthReportRequest request = new GenerateHealthReportRequest(); + request.maskingPolicyId = maskingPolicyId; + request.generateHealthReportDetails = generateHealthReportDetails; + request.opcRequestId = opcRequestId; + request.opcRetryToken = opcRetryToken; + return request; + // new GenerateHealthReportRequest(maskingPolicyId, generateHealthReportDetails, + // 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() + .maskingPolicyId(maskingPolicyId) + .generateHealthReportDetails(generateHealthReportDetails) + .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(",maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(",generateHealthReportDetails=") + .append(String.valueOf(this.generateHealthReportDetails)); + 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 GenerateHealthReportRequest)) { + return false; + } + + GenerateHealthReportRequest other = (GenerateHealthReportRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals( + this.generateHealthReportDetails, other.generateHealthReportDetails) + && 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.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.generateHealthReportDetails == null + ? 43 + : this.generateHealthReportDetails.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-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetMaskingPolicyHealthReportRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetMaskingPolicyHealthReportRequest.java new file mode 100644 index 00000000000..b0888c1ebe9 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/GetMaskingPolicyHealthReportRequest.java @@ -0,0 +1,200 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * GetMaskingPolicyHealthReportRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetMaskingPolicyHealthReportRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId; + + /** The OCID of the masking health report. */ + public String getMaskingPolicyHealthReportId() { + return maskingPolicyHealthReportId; + } + /** 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< + GetMaskingPolicyHealthReportRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId = null; + + /** + * The OCID of the masking health report. + * + * @param maskingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder maskingPolicyHealthReportId(String maskingPolicyHealthReportId) { + this.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(GetMaskingPolicyHealthReportRequest o) { + maskingPolicyHealthReportId(o.getMaskingPolicyHealthReportId()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of GetMaskingPolicyHealthReportRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of GetMaskingPolicyHealthReportRequest + */ + public GetMaskingPolicyHealthReportRequest buildWithoutInvocationCallback() { + GetMaskingPolicyHealthReportRequest request = new GetMaskingPolicyHealthReportRequest(); + request.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + request.opcRequestId = opcRequestId; + return request; + // new GetMaskingPolicyHealthReportRequest(maskingPolicyHealthReportId, 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() + .maskingPolicyHealthReportId(maskingPolicyHealthReportId) + .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(",maskingPolicyHealthReportId=") + .append(String.valueOf(this.maskingPolicyHealthReportId)); + 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 GetMaskingPolicyHealthReportRequest)) { + return false; + } + + GetMaskingPolicyHealthReportRequest other = (GetMaskingPolicyHealthReportRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.maskingPolicyHealthReportId, other.maskingPolicyHealthReportId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maskingPolicyHealthReportId == null + ? 43 + : this.maskingPolicyHealthReportId.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/ListMaskingPolicyHealthReportLogsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportLogsRequest.java new file mode 100644 index 00000000000..fbf1439b588 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportLogsRequest.java @@ -0,0 +1,474 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListMaskingPolicyHealthReportLogsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListMaskingPolicyHealthReportLogsRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId; + + /** The OCID of the masking health report. */ + public String getMaskingPolicyHealthReportId() { + return maskingPolicyHealthReportId; + } + /** + * 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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/en-us/iaas/Content/API/Concepts/usingapi.htm#nine). + */ + public String getPage() { + return page; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** Unique identifier for the request. */ + private String opcRequestId; + + /** Unique identifier for the request. */ + public String getOpcRequestId() { + return opcRequestId; + } + /** sort by */ + private SortBy sortBy; + + /** sort by */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + LogType("logType"), + ; + + 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); + } + }; + + /** sort by */ + public SortBy getSortBy() { + return sortBy; + } + /** A filter to return only the resources that match the specified log message type. */ + private MessageType messageType; + + /** A filter to return only the resources that match the specified log message type. */ + public enum MessageType implements com.oracle.bmc.http.internal.BmcEnum { + Pass("PASS"), + Warning("WARNING"), + Error("ERROR"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (MessageType v : MessageType.values()) { + map.put(v.getValue(), v); + } + } + + MessageType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static MessageType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid MessageType: " + key); + } + }; + + /** A filter to return only the resources that match the specified log message type. */ + public MessageType getMessageType() { + return messageType; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaskingPolicyHealthReportLogsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The OCID of the masking health report. */ + private String maskingPolicyHealthReportId = null; + + /** + * The OCID of the masking health report. + * + * @param maskingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder maskingPolicyHealthReportId(String maskingPolicyHealthReportId) { + this.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + 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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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; + } + + /** 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; + } + + /** sort by */ + private SortBy sortBy = null; + + /** + * sort by + * + * @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 the resources that match the specified log message type. */ + private MessageType messageType = null; + + /** + * A filter to return only the resources that match the specified log message type. + * + * @param messageType the value to set + * @return this builder instance + */ + public Builder messageType(MessageType messageType) { + this.messageType = messageType; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListMaskingPolicyHealthReportLogsRequest o) { + maskingPolicyHealthReportId(o.getMaskingPolicyHealthReportId()); + limit(o.getLimit()); + page(o.getPage()); + sortOrder(o.getSortOrder()); + opcRequestId(o.getOpcRequestId()); + sortBy(o.getSortBy()); + messageType(o.getMessageType()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMaskingPolicyHealthReportLogsRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListMaskingPolicyHealthReportLogsRequest + */ + public ListMaskingPolicyHealthReportLogsRequest buildWithoutInvocationCallback() { + ListMaskingPolicyHealthReportLogsRequest request = + new ListMaskingPolicyHealthReportLogsRequest(); + request.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + request.limit = limit; + request.page = page; + request.sortOrder = sortOrder; + request.opcRequestId = opcRequestId; + request.sortBy = sortBy; + request.messageType = messageType; + return request; + // new ListMaskingPolicyHealthReportLogsRequest(maskingPolicyHealthReportId, limit, + // page, sortOrder, opcRequestId, sortBy, messageType); + } + } + + /** + * Return an instance of {@link Builder} that allows you to modify request properties. + * + * @return instance of {@link Builder} that allows you to modify request properties. + */ + public Builder toBuilder() { + return new Builder() + .maskingPolicyHealthReportId(maskingPolicyHealthReportId) + .limit(limit) + .page(page) + .sortOrder(sortOrder) + .opcRequestId(opcRequestId) + .sortBy(sortBy) + .messageType(messageType); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return new Builder(); + } + + @Override + public String toString() { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("("); + sb.append("super=").append(super.toString()); + sb.append(",maskingPolicyHealthReportId=") + .append(String.valueOf(this.maskingPolicyHealthReportId)); + 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(",sortBy=").append(String.valueOf(this.sortBy)); + sb.append(",messageType=").append(String.valueOf(this.messageType)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaskingPolicyHealthReportLogsRequest)) { + return false; + } + + ListMaskingPolicyHealthReportLogsRequest other = + (ListMaskingPolicyHealthReportLogsRequest) o; + return super.equals(o) + && java.util.Objects.equals( + this.maskingPolicyHealthReportId, other.maskingPolicyHealthReportId) + && 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) + && java.util.Objects.equals(this.sortBy, other.sortBy) + && java.util.Objects.equals(this.messageType, other.messageType); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.maskingPolicyHealthReportId == null + ? 43 + : this.maskingPolicyHealthReportId.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()); + result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); + result = (result * PRIME) + (this.messageType == null ? 43 : this.messageType.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportsRequest.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportsRequest.java new file mode 100644 index 00000000000..16367f376da --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/requests/ListMaskingPolicyHealthReportsRequest.java @@ -0,0 +1,693 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ListMaskingPolicyHealthReportsRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListMaskingPolicyHealthReportsRequest + 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 filter to return only the resources that match the specified masking policy health report + * OCID. + */ + private String maskingPolicyHealthReportId; + + /** + * A filter to return only the resources that match the specified masking policy health report + * OCID. + */ + public String getMaskingPolicyHealthReportId() { + return maskingPolicyHealthReportId; + } + /** + * 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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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; + } + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + private Boolean compartmentIdInSubtree; + + /** + * Default is false. When set to true, the hierarchy of compartments is traversed and all + * compartments and subcompartments in the tenancy are returned. Depends on the 'accessLevel' + * setting. + */ + public Boolean getCompartmentIdInSubtree() { + return compartmentIdInSubtree; + } + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + private AccessLevel accessLevel; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public enum AccessLevel implements com.oracle.bmc.http.internal.BmcEnum { + Restricted("RESTRICTED"), + Accessible("ACCESSIBLE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (AccessLevel v : AccessLevel.values()) { + map.put(v.getValue(), v); + } + } + + AccessLevel(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static AccessLevel create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid AccessLevel: " + key); + } + }; + + /** + * Valid values are RESTRICTED and ACCESSIBLE. Default is RESTRICTED. Setting this to ACCESSIBLE + * returns only those compartments for which the user has INSPECT permissions directly or + * indirectly (permissions can be on a resource in a subcompartment). When set to RESTRICTED + * permissions are checked and no partial results are displayed. + */ + public AccessLevel getAccessLevel() { + return accessLevel; + } + /** sort by */ + private SortBy sortBy; + + /** sort by */ + public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { + DisplayName("displayName"), + TimeCreated("timeCreated"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortBy v : SortBy.values()) { + map.put(v.getValue(), v); + } + } + + SortBy(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortBy create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortBy: " + key); + } + }; + + /** sort by */ + public SortBy getSortBy() { + return sortBy; + } + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + private SortOrder sortOrder; + + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + public enum SortOrder implements com.oracle.bmc.http.internal.BmcEnum { + Asc("ASC"), + Desc("DESC"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SortOrder v : SortOrder.values()) { + map.put(v.getValue(), v); + } + } + + SortOrder(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SortOrder create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid SortOrder: " + key); + } + }; + + /** The sort order to use, either ascending (ASC) or descending (DESC). */ + public SortOrder getSortOrder() { + return sortOrder; + } + /** 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 items related to a specific target OCID. */ + private String targetId; + + /** A filter to return only items related to a specific target OCID. */ + public String getTargetId() { + return targetId; + } + /** A filter to return only the resources that match the specified masking policy OCID. */ + private String maskingPolicyId; + + /** A filter to return only the resources that match the specified masking policy OCID. */ + public String getMaskingPolicyId() { + return maskingPolicyId; + } + /** A filter to return only the resources that match the specified lifecycle states. */ + private com.oracle.bmc.datasafe.model.MaskingLifecycleState lifecycleState; + + /** A filter to return only the resources that match the specified lifecycle states. */ + public com.oracle.bmc.datasafe.model.MaskingLifecycleState getLifecycleState() { + return lifecycleState; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ListMaskingPolicyHealthReportsRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** A filter to return only resources that match the specified compartment OCID. */ + private String compartmentId = null; + + /** + * A filter to return only resources that match the specified compartment OCID. + * + * @param compartmentId the value to set + * @return this builder instance + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + return this; + } + + /** + * A filter to return only the resources that match the specified masking policy health + * report OCID. + */ + private String maskingPolicyHealthReportId = null; + + /** + * A filter to return only the resources that match the specified masking policy health + * report OCID. + * + * @param maskingPolicyHealthReportId the value to set + * @return this builder instance + */ + public Builder maskingPolicyHealthReportId(String maskingPolicyHealthReportId) { + this.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + 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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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.cloud.oracle.com/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; + } + + /** + * 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; + } + + /** sort by */ + private SortBy sortBy = null; + + /** + * sort by + * + * @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; + } + + /** 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 items related to a specific target OCID. */ + private String targetId = null; + + /** + * A filter to return only items related to a specific 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 the resources that match the specified masking policy OCID. */ + private String maskingPolicyId = null; + + /** + * A filter to return only the resources that match the specified masking policy OCID. + * + * @param maskingPolicyId the value to set + * @return this builder instance + */ + public Builder maskingPolicyId(String maskingPolicyId) { + this.maskingPolicyId = maskingPolicyId; + return this; + } + + /** A filter to return only the resources that match the specified lifecycle states. */ + private com.oracle.bmc.datasafe.model.MaskingLifecycleState lifecycleState = null; + + /** + * A filter to return only the resources that match the specified lifecycle states. + * + * @param lifecycleState the value to set + * @return this builder instance + */ + public Builder lifecycleState( + com.oracle.bmc.datasafe.model.MaskingLifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ListMaskingPolicyHealthReportsRequest o) { + compartmentId(o.getCompartmentId()); + maskingPolicyHealthReportId(o.getMaskingPolicyHealthReportId()); + limit(o.getLimit()); + page(o.getPage()); + opcRequestId(o.getOpcRequestId()); + compartmentIdInSubtree(o.getCompartmentIdInSubtree()); + accessLevel(o.getAccessLevel()); + sortBy(o.getSortBy()); + sortOrder(o.getSortOrder()); + displayName(o.getDisplayName()); + targetId(o.getTargetId()); + maskingPolicyId(o.getMaskingPolicyId()); + lifecycleState(o.getLifecycleState()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ListMaskingPolicyHealthReportsRequest as configured by this builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ListMaskingPolicyHealthReportsRequest + */ + public ListMaskingPolicyHealthReportsRequest buildWithoutInvocationCallback() { + ListMaskingPolicyHealthReportsRequest request = + new ListMaskingPolicyHealthReportsRequest(); + request.compartmentId = compartmentId; + request.maskingPolicyHealthReportId = maskingPolicyHealthReportId; + request.limit = limit; + request.page = page; + request.opcRequestId = opcRequestId; + request.compartmentIdInSubtree = compartmentIdInSubtree; + request.accessLevel = accessLevel; + request.sortBy = sortBy; + request.sortOrder = sortOrder; + request.displayName = displayName; + request.targetId = targetId; + request.maskingPolicyId = maskingPolicyId; + request.lifecycleState = lifecycleState; + return request; + // new ListMaskingPolicyHealthReportsRequest(compartmentId, maskingPolicyHealthReportId, + // limit, page, opcRequestId, compartmentIdInSubtree, accessLevel, sortBy, sortOrder, + // displayName, targetId, maskingPolicyId, lifecycleState); + } + } + + /** + * Return an instance of {@link Builder} that 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) + .maskingPolicyHealthReportId(maskingPolicyHealthReportId) + .limit(limit) + .page(page) + .opcRequestId(opcRequestId) + .compartmentIdInSubtree(compartmentIdInSubtree) + .accessLevel(accessLevel) + .sortBy(sortBy) + .sortOrder(sortOrder) + .displayName(displayName) + .targetId(targetId) + .maskingPolicyId(maskingPolicyId) + .lifecycleState(lifecycleState); + } + + /** + * Return a new builder for this request object. + * + * @return builder for the request object + */ + public static Builder builder() { + return 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(",maskingPolicyHealthReportId=") + .append(String.valueOf(this.maskingPolicyHealthReportId)); + 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(",compartmentIdInSubtree=").append(String.valueOf(this.compartmentIdInSubtree)); + sb.append(",accessLevel=").append(String.valueOf(this.accessLevel)); + 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(",targetId=").append(String.valueOf(this.targetId)); + sb.append(",maskingPolicyId=").append(String.valueOf(this.maskingPolicyId)); + sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaskingPolicyHealthReportsRequest)) { + return false; + } + + ListMaskingPolicyHealthReportsRequest other = (ListMaskingPolicyHealthReportsRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals( + this.maskingPolicyHealthReportId, other.maskingPolicyHealthReportId) + && 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.compartmentIdInSubtree, other.compartmentIdInSubtree) + && java.util.Objects.equals(this.accessLevel, other.accessLevel) + && 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.targetId, other.targetId) + && java.util.Objects.equals(this.maskingPolicyId, other.maskingPolicyId) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState); + } + + @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.maskingPolicyHealthReportId == null + ? 43 + : this.maskingPolicyHealthReportId.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.compartmentIdInSubtree == null + ? 43 + : this.compartmentIdInSubtree.hashCode()); + result = (result * PRIME) + (this.accessLevel == null ? 43 : this.accessLevel.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.targetId == null ? 43 : this.targetId.hashCode()); + result = + (result * PRIME) + + (this.maskingPolicyId == null ? 43 : this.maskingPolicyId.hashCode()); + result = + (result * PRIME) + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeMaskingPolicyHealthReportCompartmentResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeMaskingPolicyHealthReportCompartmentResponse.java new file mode 100644 index 00000000000..21b428ebead --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ChangeMaskingPolicyHealthReportCompartmentResponse.java @@ -0,0 +1,140 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ChangeMaskingPolicyHealthReportCompartmentResponse + 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 ChangeMaskingPolicyHealthReportCompartmentResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ChangeMaskingPolicyHealthReportCompartmentResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ChangeMaskingPolicyHealthReportCompartmentResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ChangeMaskingPolicyHealthReportCompartmentResponse build() { + return new ChangeMaskingPolicyHealthReportCompartmentResponse( + __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 ChangeMaskingPolicyHealthReportCompartmentResponse)) { + return false; + } + + ChangeMaskingPolicyHealthReportCompartmentResponse other = + (ChangeMaskingPolicyHealthReportCompartmentResponse) 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-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteMaskingPolicyHealthReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteMaskingPolicyHealthReportResponse.java new file mode 100644 index 00000000000..7759f50d9ca --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/DeleteMaskingPolicyHealthReportResponse.java @@ -0,0 +1,186 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class DeleteMaskingPolicyHealthReportResponse 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 DeleteMaskingPolicyHealthReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + DeleteMaskingPolicyHealthReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The OCID 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 + */ + @Override + public Builder copy(DeleteMaskingPolicyHealthReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public DeleteMaskingPolicyHealthReportResponse build() { + return new DeleteMaskingPolicyHealthReportResponse( + __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 DeleteMaskingPolicyHealthReportResponse)) { + return false; + } + + DeleteMaskingPolicyHealthReportResponse other = (DeleteMaskingPolicyHealthReportResponse) 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/GenerateHealthReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateHealthReportResponse.java new file mode 100644 index 00000000000..aea4ba551d7 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GenerateHealthReportResponse.java @@ -0,0 +1,185 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GenerateHealthReportResponse 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 GenerateHealthReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * The OCID 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 + */ + @Override + public Builder copy(GenerateHealthReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GenerateHealthReportResponse build() { + return new GenerateHealthReportResponse( + __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 GenerateHealthReportResponse)) { + return false; + } + + GenerateHealthReportResponse other = (GenerateHealthReportResponse) 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/GetMaskingPolicyHealthReportResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetMaskingPolicyHealthReportResponse.java new file mode 100644 index 00000000000..82a116cb550 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/GetMaskingPolicyHealthReportResponse.java @@ -0,0 +1,227 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class GetMaskingPolicyHealthReportResponse extends com.oracle.bmc.responses.BmcResponse { + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#eleven) + * + * @return the value + */ + public String getEtag() { + return etag; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @return the value + */ + public String getOpcRequestId() { + return opcRequestId; + } + + /** The returned {@code MaskingPolicyHealthReport} instance. */ + private com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport maskingPolicyHealthReport; + + /** + * The returned {@code MaskingPolicyHealthReport} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport getMaskingPolicyHealthReport() { + return maskingPolicyHealthReport; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "etag", + "opcRequestId", + "maskingPolicyHealthReport" + }) + private GetMaskingPolicyHealthReportResponse( + int __httpStatusCode__, + java.util.Map> headers, + String etag, + String opcRequestId, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport maskingPolicyHealthReport) { + super(__httpStatusCode__, headers); + this.etag = etag; + this.opcRequestId = opcRequestId; + this.maskingPolicyHealthReport = maskingPolicyHealthReport; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + GetMaskingPolicyHealthReportResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * For optimistic concurrency control. For more information, see [ETags for Optimistic + * Concurrency + * Control](https://docs.cloud.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.cloud.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; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** The returned {@code MaskingPolicyHealthReport} instance. */ + private com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport maskingPolicyHealthReport; + + /** + * The returned {@code MaskingPolicyHealthReport} instance. + * + * @param maskingPolicyHealthReport the value to set + * @return this builder + */ + public Builder maskingPolicyHealthReport( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport maskingPolicyHealthReport) { + this.maskingPolicyHealthReport = maskingPolicyHealthReport; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(GetMaskingPolicyHealthReportResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + etag(o.getEtag()); + opcRequestId(o.getOpcRequestId()); + maskingPolicyHealthReport(o.getMaskingPolicyHealthReport()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public GetMaskingPolicyHealthReportResponse build() { + return new GetMaskingPolicyHealthReportResponse( + __httpStatusCode__, headers, etag, opcRequestId, maskingPolicyHealthReport); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",maskingPolicyHealthReport=").append(String.valueOf(maskingPolicyHealthReport)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GetMaskingPolicyHealthReportResponse)) { + return false; + } + + GetMaskingPolicyHealthReportResponse other = (GetMaskingPolicyHealthReportResponse) 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.maskingPolicyHealthReport, other.maskingPolicyHealthReport); + } + + @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.maskingPolicyHealthReport == null + ? 43 + : this.maskingPolicyHealthReport.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportLogsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportLogsResponse.java new file mode 100644 index 00000000000..f5d5f6d2b7d --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportLogsResponse.java @@ -0,0 +1,290 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListMaskingPolicyHealthReportLogsResponse + 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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the previous batch of items. + */ + private String opcPrevPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code MaskingPolicyHealthReportLogCollection} instance. */ + private com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection + maskingPolicyHealthReportLogCollection; + + /** + * The returned {@code MaskingPolicyHealthReportLogCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection + getMaskingPolicyHealthReportLogCollection() { + return maskingPolicyHealthReportLogCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "maskingPolicyHealthReportLogCollection" + }) + private ListMaskingPolicyHealthReportLogsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection + maskingPolicyHealthReportLogCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.maskingPolicyHealthReportLogCollection = maskingPolicyHealthReportLogCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListMaskingPolicyHealthReportLogsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For details about how pagination works, see [List + * Pagination](https://docs.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the previous batch of items. + */ + private String opcPrevPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code MaskingPolicyHealthReportLogCollection} instance. */ + private com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection + maskingPolicyHealthReportLogCollection; + + /** + * The returned {@code MaskingPolicyHealthReportLogCollection} instance. + * + * @param maskingPolicyHealthReportLogCollection the value to set + * @return this builder + */ + public Builder maskingPolicyHealthReportLogCollection( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection + maskingPolicyHealthReportLogCollection) { + this.maskingPolicyHealthReportLogCollection = maskingPolicyHealthReportLogCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListMaskingPolicyHealthReportLogsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + maskingPolicyHealthReportLogCollection(o.getMaskingPolicyHealthReportLogCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListMaskingPolicyHealthReportLogsResponse build() { + return new ListMaskingPolicyHealthReportLogsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + maskingPolicyHealthReportLogCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",maskingPolicyHealthReportLogCollection=") + .append(String.valueOf(maskingPolicyHealthReportLogCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaskingPolicyHealthReportLogsResponse)) { + return false; + } + + ListMaskingPolicyHealthReportLogsResponse other = + (ListMaskingPolicyHealthReportLogsResponse) 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.maskingPolicyHealthReportLogCollection, + other.maskingPolicyHealthReportLogCollection); + } + + @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.maskingPolicyHealthReportLogCollection == null + ? 43 + : this.maskingPolicyHealthReportLogCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportsResponse.java b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportsResponse.java new file mode 100644 index 00000000000..0a046d0a932 --- /dev/null +++ b/bmc-datasafe/src/main/java/com/oracle/bmc/datasafe/responses/ListMaskingPolicyHealthReportsResponse.java @@ -0,0 +1,288 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.datasafe.responses; + +import com.oracle.bmc.datasafe.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") +public class ListMaskingPolicyHealthReportsResponse 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.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @return the value + */ + public String getOpcNextPage() { + return opcNextPage; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the previous batch of items. + */ + private String opcPrevPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in the + * response, then a partial list might have been returned. Include this value as the {@code + * page} parameter for the subsequent GET request to get the previous batch of items. + * + * @return the value + */ + public String getOpcPrevPage() { + return opcPrevPage; + } + + /** The returned {@code MaskingPolicyHealthReportCollection} instance. */ + private com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection + maskingPolicyHealthReportCollection; + + /** + * The returned {@code MaskingPolicyHealthReportCollection} instance. + * + * @return the value + */ + public com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection + getMaskingPolicyHealthReportCollection() { + return maskingPolicyHealthReportCollection; + } + + @java.beans.ConstructorProperties({ + "__httpStatusCode__", + "headers", + "opcRequestId", + "opcNextPage", + "opcPrevPage", + "maskingPolicyHealthReportCollection" + }) + private ListMaskingPolicyHealthReportsResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId, + String opcNextPage, + String opcPrevPage, + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection + maskingPolicyHealthReportCollection) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + this.opcNextPage = opcNextPage; + this.opcPrevPage = opcPrevPage; + this.maskingPolicyHealthReportCollection = maskingPolicyHealthReportCollection; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ListMaskingPolicyHealthReportsResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * For list pagination. When this header appears in the response, additional pages of + * results remain. Include opc-next-page value as the page parameter for the subsequent GET + * request to get the next batch of items. For details about how pagination works, see [List + * Pagination](https://docs.cloud.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.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine). + * + * @param opcNextPage the value to set + * @return this builder + */ + public Builder opcNextPage(String opcNextPage) { + this.opcNextPage = opcNextPage; + return this; + } + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the previous batch of items. + */ + private String opcPrevPage; + + /** + * For pagination of a list of items. When paging through a list, if this header appears in + * the response, then a partial list might have been returned. Include this value as the + * {@code page} parameter for the subsequent GET request to get the previous batch of items. + * + * @param opcPrevPage the value to set + * @return this builder + */ + public Builder opcPrevPage(String opcPrevPage) { + this.opcPrevPage = opcPrevPage; + return this; + } + + /** The returned {@code MaskingPolicyHealthReportCollection} instance. */ + private com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection + maskingPolicyHealthReportCollection; + + /** + * The returned {@code MaskingPolicyHealthReportCollection} instance. + * + * @param maskingPolicyHealthReportCollection the value to set + * @return this builder + */ + public Builder maskingPolicyHealthReportCollection( + com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection + maskingPolicyHealthReportCollection) { + this.maskingPolicyHealthReportCollection = maskingPolicyHealthReportCollection; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ListMaskingPolicyHealthReportsResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + opcNextPage(o.getOpcNextPage()); + opcPrevPage(o.getOpcPrevPage()); + maskingPolicyHealthReportCollection(o.getMaskingPolicyHealthReportCollection()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ListMaskingPolicyHealthReportsResponse build() { + return new ListMaskingPolicyHealthReportsResponse( + __httpStatusCode__, + headers, + opcRequestId, + opcNextPage, + opcPrevPage, + maskingPolicyHealthReportCollection); + } + } + + /** + * Return a new builder for this response object. + * + * @return builder for the response object + */ + public static Builder builder() { + return 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(",maskingPolicyHealthReportCollection=") + .append(String.valueOf(maskingPolicyHealthReportCollection)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ListMaskingPolicyHealthReportsResponse)) { + return false; + } + + ListMaskingPolicyHealthReportsResponse other = (ListMaskingPolicyHealthReportsResponse) 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.maskingPolicyHealthReportCollection, + other.maskingPolicyHealthReportCollection); + } + + @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.maskingPolicyHealthReportCollection == null + ? 43 + : this.maskingPolicyHealthReportCollection.hashCode()); + return result; + } +} diff --git a/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json b/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json index 1093a8d951c..041a10f52d8 100644 --- a/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json +++ b/bmc-datasafe/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-datasafe/reflect-config.json @@ -981,6 +981,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.ChangeMaskingPolicyHealthReportCompartmentDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.ChangeOnPremConnectorCompartmentDetails", @@ -2746,6 +2760,26 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateHealthReportDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateHealthReportDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.GenerateHealthReportDetails$CheckType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.GenerateMaskingPolicyForDownloadDetails", @@ -3230,6 +3264,88 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReport$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportLogSummary$MessageType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.datasafe.model.MaskingPolicyHealthReportSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.datasafe.model.MaskingPolicySummary", diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 858ed869b50..a5b94b6ac5c 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 27c6c0f805d..2edd56396b0 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index ef64c3f2615..3536ca2b50e 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index 899e1105583..5e36b8b634a 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index 0eadadce3b7..c283ec171a7 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.40.0 + 3.41.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index f9edbbb0365..593d4921e77 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index b163c01abc1..d5c5048c10b 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index 25e3e0647db..ac70e36a5f7 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index 8194b0a68e4..408a5d0bc2c 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 43f03e5feea..9652a8e50a0 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.40.0 + 3.41.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index 54338b5cac8..31d44178cfc 100644 --- a/bmc-enforcer-rules/pom.xml +++ b/bmc-enforcer-rules/pom.xml @@ -6,7 +6,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index bc872d9aa6a..e6c512ffb6e 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index f6e24636ebb..ec6299a6b74 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index 0370b4eeaaf..65221c4f7f6 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 07d7991ac7f..e4e945232b6 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index 0a35aaeef30..13d28f8eef2 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 4ec216d9406..79a2c3dbe01 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index bf21caa2d0c..6e076e92230 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 30a2b5b9ae3..a149c202651 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index eba124ce277..81945eb1883 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index c2406b9dfa1..37c30434250 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index 8627d1a35a1..2f0cc537281 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index 3ee28dbc938..4850560f750 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index ffdecdc5286..cbc4b9d565e 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index bf162e3fcd8..75dabb8ed5a 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 789e22af111..b1ed66e2bf8 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 8a77686e388..7f3473d0ac4 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 0bd3f89805d..fd949c535ef 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 8ea590556b7..0b69724503c 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 7805ac3a297..5008f56ef28 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index b6db590d527..38d486f6769 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 6e7a912a7f4..ba59fde7a91 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index d278decd464..6f5b4a9b685 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index ed7b5bbc690..9a89838e533 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index b8a5de60618..7e8f99caa01 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 8051b09e3bc..f585f096fc8 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index 2b81c699387..30547d1b518 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index b4d048d627e..ab2eb4423c1 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 179fd1c7b0f..16065ed1ef1 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 04de6881e3e..31a97ead6c8 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 6ce0c3248ae..beeb23f707f 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index b48c724251d..c8e6b836ffa 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 49133397b8a..bda4315c4e3 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index ee656b4296e..9cad999fd3a 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 8d71e82a689..95445f311f8 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 49ad7dc8767..35354df1801 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index dfb7fe97446..4754bee4a66 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index f476e0dc3fb..1ee181c3c12 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 631245730e3..4522cbffd9e 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index 505cbbacf6d..620d7f1f040 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index 961d1eb1b14..b9f8c2a61e7 100644 --- a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.40.0 + 3.41.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.40.0 + 3.41.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 68913563d39..73a8d234791 100644 --- a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.40.0 + 3.41.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.40.0 + 3.41.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index 6d1a268a534..f7c9a472030 100644 --- a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml +++ b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-parent - 3.40.0 + 3.41.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 098f9f19d1a..de98ab2a118 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index 4ba0c2b67e5..d7861dc0f7d 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index 6db8c6316e1..89ddb575598 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index dd0ffb852fa..78ef1eb6e77 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 45b7fbf8e5a..3c5ec40f698 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 77294d13603..ba3edfca682 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 396826b29ce..a5f96a3d92e 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index a4a64eae728..10b96685179 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index edc492f872c..3d0cead9846 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index e72bde82bc4..911ebd29c99 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 742a03bb6fb..deee535ea8a 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 968a20d592f..b05356cd39c 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index adf6936872a..94d510d48eb 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index e094db24c4a..5f3cd4dc781 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 912cc9e9204..b63c6952d6d 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index 0f38764bfbe..1fb2e303766 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 586c3f7e2d8..0270832ca17 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index 9ddccd9d345..94288c99c94 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index 4be947d7fcd..8af6adec193 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-other-examples/bmc-jersey-examples/pom.xml b/bmc-other-examples/bmc-jersey-examples/pom.xml index bd3f1271ee3..436dc6806f8 100644 --- a/bmc-other-examples/bmc-jersey-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey-examples - 3.40.0 + 3.41.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 2 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 2 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.40.0 + 3.41.0 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index abd47962184..6fdf9cc4b66 100644 --- a/bmc-other-examples/bmc-jersey3-examples/pom.xml +++ b/bmc-other-examples/bmc-jersey3-examples/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-jersey3-examples - 3.40.0 + 3.41.0 Oracle Cloud Infrastructure SDK - Examples using Jersey 3 HTTP client This project contains the examples on how to use the SDK used for Oracle Cloud Infrastructure with the Jersey 3 HTTP client https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -49,7 +49,7 @@ com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.40.0 + 3.41.0 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.40.0 + 3.41.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 9aa8bf0f51a..be55bc8f394 100644 --- a/bmc-other-examples/native-maven-example/pom.xml +++ b/bmc-other-examples/native-maven-example/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk-examples-native - 3.40.0 + 3.41.0 Oracle Cloud Infrastructure SDK - Native Example This project contains an example on how to use the SDK used for Oracle Cloud Infrastructure in a native executable https://docs.cloud.oracle.com/Content/API/SDKDocs/javasdk.htm @@ -89,14 +89,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.40.0 + 3.41.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.40.0 + 3.41.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index 8cc1dddc036..edab92a91d9 100644 --- a/bmc-other-examples/pom.xml +++ b/bmc-other-examples/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index a425f015800..654d693435e 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 4dd39cc8ebd..af4827d98c0 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 5e4c435c97c..78f9cf38037 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.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 25679b7132f..8ba6b7329f0 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecovery.java @@ -63,6 +63,25 @@ public interface DatabaseRecovery extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * Cancels 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 + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * CancelProtectedDatabaseDeletion API. + */ + CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( + CancelProtectedDatabaseDeletionRequest request); + /** * Moves a protected database resource from the existing compartment to the specified * compartment. When provided, If-Match is checked against ETag values of the resource. @@ -395,6 +414,27 @@ ListRecoveryServiceSubnetsResponse listRecoveryServiceSubnets( */ ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request); + /** + * Defines a preferred schedule to delete a protected database after you terminate the source + * database. The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can + * occur 72 hours (3 days) after the source database is terminated. The alternate schedule is + * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database + * only after the policy-defined backup retention period expires. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use + * ScheduleProtectedDatabaseDeletion API. + */ + ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeletion( + ScheduleProtectedDatabaseDeletionRequest request); + /** * Updates the Protected Database * diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java index 70fafc34679..193ef3a483d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryAsync.java @@ -59,6 +59,26 @@ public interface DatabaseRecoveryAsync extends AutoCloseable { */ void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled); + /** + * 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 + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + cancelProtectedDatabaseDeletion( + CancelProtectedDatabaseDeletionRequest request, + com.oracle.bmc.responses.AsyncHandler< + CancelProtectedDatabaseDeletionRequest, + CancelProtectedDatabaseDeletionResponse> + handler); + /** * Moves a protected database resource from the existing compartment to the specified * compartment. When provided, If-Match is checked against ETag values of the resource. @@ -390,6 +410,28 @@ java.util.concurrent.Future listWorkRequests( com.oracle.bmc.responses.AsyncHandler handler); + /** + * Defines a preferred schedule to delete a protected database after you terminate the source + * database. The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can + * occur 72 hours (3 days) after the source database is terminated. The alternate schedule is + * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database + * only after the policy-defined backup retention period expires. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future + scheduleProtectedDatabaseDeletion( + ScheduleProtectedDatabaseDeletionRequest request, + com.oracle.bmc.responses.AsyncHandler< + ScheduleProtectedDatabaseDeletionRequest, + ScheduleProtectedDatabaseDeletionResponse> + 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 981f6748bf1..96a96034fa0 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 @@ -122,6 +122,40 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public java.util.concurrent.Future + cancelProtectedDatabaseDeletion( + CancelProtectedDatabaseDeletionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + CancelProtectedDatabaseDeletionRequest, + CancelProtectedDatabaseDeletionResponse> + handler) { + + Validate.notBlank( + request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); + + return clientCall(request, CancelProtectedDatabaseDeletionResponse::builder) + .logger(LOG, "cancelProtectedDatabaseDeletion") + .serviceDetails( + "DatabaseRecovery", + "CancelProtectedDatabaseDeletion", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/CancelProtectedDatabaseDeletion") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelProtectedDatabaseDeletionRequest::builder) + .basePath("/20210216") + .appendPathParam("protectedDatabases") + .appendPathParam(request.getProtectedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("cancelDeletion") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .handleResponseHeaderString( + "opc-request-id", + CancelProtectedDatabaseDeletionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future changeProtectedDatabaseCompartment( @@ -267,6 +301,7 @@ public java.util.concurrent.Future createProtec .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-dry-run", request.getOpcDryRun()) .hasBody() .handleBody( com.oracle.bmc.recovery.model.ProtectedDatabase.class, @@ -382,6 +417,7 @@ public java.util.concurrent.Future deleteProtec .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) + .appendEnumQueryParam("deletionSchedule", request.getDeletionSchedule()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -495,6 +531,12 @@ public java.util.concurrent.Future deleteProtect .handleResponseHeaderString( "opc-request-id", FetchProtectedDatabaseConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-filename", + FetchProtectedDatabaseConfigurationResponse.Builder::opcFilename) + .handleResponseHeaderString( + "opc-checksum", + FetchProtectedDatabaseConfigurationResponse.Builder::opcChecksum) .callAsync(handler); } @@ -857,6 +899,44 @@ public java.util.concurrent.Future listWorkRequests( .callAsync(handler); } + @Override + public java.util.concurrent.Future + scheduleProtectedDatabaseDeletion( + ScheduleProtectedDatabaseDeletionRequest request, + final com.oracle.bmc.responses.AsyncHandler< + ScheduleProtectedDatabaseDeletionRequest, + ScheduleProtectedDatabaseDeletionResponse> + handler) { + + Validate.notBlank( + request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); + + return clientCall(request, ScheduleProtectedDatabaseDeletionResponse::builder) + .logger(LOG, "scheduleProtectedDatabaseDeletion") + .serviceDetails( + "DatabaseRecovery", + "ScheduleProtectedDatabaseDeletion", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ScheduleProtectedDatabaseDeletion") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScheduleProtectedDatabaseDeletionRequest::builder) + .basePath("/20210216") + .appendPathParam("protectedDatabases") + .appendPathParam(request.getProtectedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("scheduleDeletion") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScheduleProtectedDatabaseDeletionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ScheduleProtectedDatabaseDeletionResponse.Builder::opcRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future updateProtectedDatabase( UpdateProtectedDatabaseRequest request, diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/DatabaseRecoveryClient.java index 7d9925f669d..ef907d29483 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 @@ -148,6 +148,36 @@ public void setRegion(String regionId) { super.setRegion(regionId); } + @Override + public CancelProtectedDatabaseDeletionResponse cancelProtectedDatabaseDeletion( + CancelProtectedDatabaseDeletionRequest request) { + + Validate.notBlank( + request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); + + return clientCall(request, CancelProtectedDatabaseDeletionResponse::builder) + .logger(LOG, "cancelProtectedDatabaseDeletion") + .serviceDetails( + "DatabaseRecovery", + "CancelProtectedDatabaseDeletion", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/CancelProtectedDatabaseDeletion") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CancelProtectedDatabaseDeletionRequest::builder) + .basePath("/20210216") + .appendPathParam("protectedDatabases") + .appendPathParam(request.getProtectedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("cancelDeletion") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .handleResponseHeaderString( + "opc-request-id", + CancelProtectedDatabaseDeletionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public ChangeProtectedDatabaseCompartmentResponse changeProtectedDatabaseCompartment( ChangeProtectedDatabaseCompartmentRequest request) { @@ -278,6 +308,7 @@ public CreateProtectedDatabaseResponse createProtectedDatabase( .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-dry-run", request.getOpcDryRun()) .operationUsesDefaultRetries() .hasBody() .handleBody( @@ -385,6 +416,7 @@ public DeleteProtectedDatabaseResponse deleteProtectedDatabase( .basePath("/20210216") .appendPathParam("protectedDatabases") .appendPathParam(request.getProtectedDatabaseId()) + .appendEnumQueryParam("deletionSchedule", request.getDeletionSchedule()) .accept("application/json") .appendHeader("if-match", request.getIfMatch()) .appendHeader("opc-request-id", request.getOpcRequestId()) @@ -489,6 +521,12 @@ public FetchProtectedDatabaseConfigurationResponse fetchProtectedDatabaseConfigu .handleResponseHeaderString( "opc-request-id", FetchProtectedDatabaseConfigurationResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-filename", + FetchProtectedDatabaseConfigurationResponse.Builder::opcFilename) + .handleResponseHeaderString( + "opc-checksum", + FetchProtectedDatabaseConfigurationResponse.Builder::opcChecksum) .callSync(); } @@ -824,6 +862,40 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .callSync(); } + @Override + public ScheduleProtectedDatabaseDeletionResponse scheduleProtectedDatabaseDeletion( + ScheduleProtectedDatabaseDeletionRequest request) { + + Validate.notBlank( + request.getProtectedDatabaseId(), "protectedDatabaseId must not be blank"); + + return clientCall(request, ScheduleProtectedDatabaseDeletionResponse::builder) + .logger(LOG, "scheduleProtectedDatabaseDeletion") + .serviceDetails( + "DatabaseRecovery", + "ScheduleProtectedDatabaseDeletion", + "https://docs.oracle.com/iaas/api/#/en/recovery-service/20210216/ProtectedDatabase/ScheduleProtectedDatabaseDeletion") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(ScheduleProtectedDatabaseDeletionRequest::builder) + .basePath("/20210216") + .appendPathParam("protectedDatabases") + .appendPathParam(request.getProtectedDatabaseId()) + .appendPathParam("actions") + .appendPathParam("scheduleDeletion") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .operationUsesDefaultRetries() + .hasBody() + .handleResponseHeaderString( + "opc-work-request-id", + ScheduleProtectedDatabaseDeletionResponse.Builder::opcWorkRequestId) + .handleResponseHeaderString( + "opc-request-id", + ScheduleProtectedDatabaseDeletionResponse.Builder::opcRequestId) + .callSync(); + } + @Override public UpdateProtectedDatabaseResponse updateProtectedDatabase( UpdateProtectedDatabaseRequest request) { diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java index 2b08239ed32..dc1a4f2b21c 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateProtectionPolicyDetails.java @@ -27,6 +27,7 @@ public final class CreateProtectionPolicyDetails "displayName", "backupRetentionPeriodInDays", "compartmentId", + "policyLockedDateTime", "freeformTags", "definedTags" }) @@ -34,12 +35,14 @@ public CreateProtectionPolicyDetails( String displayName, Integer backupRetentionPeriodInDays, String compartmentId, + String policyLockedDateTime, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; this.compartmentId = compartmentId; + this.policyLockedDateTime = policyLockedDateTime; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -95,6 +98,51 @@ public Builder compartmentId(String compartmentId) { this.__explicitlySet__.add("compartmentId"); return this; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. * Recovery Service enforces a 14-day delay before the retention lock + * set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date + * that occurs 14 days after the current date. * For example, assuming that the current date + * is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug + * 15, 2023, 9:00 pm), or greater. * During the 14-day delay period, you can either increase + * or decrease the retention period in the policy. * However, you are only allowed to + * increase the retention period on or after the retention lock date. * You cannot change + * the value of policyLockedDateTime if the retention lock is already in effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. * Recovery Service enforces a 14-day delay before the retention lock + * set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date + * that occurs 14 days after the current date. * For example, assuming that the current date + * is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug + * 15, 2023, 9:00 pm), or greater. * During the 14-day delay period, you can either increase + * or decrease the retention period in the policy. * However, you are only allowed to + * increase the retention period on or after the retention lock date. * You cannot change + * the value of policyLockedDateTime if the retention lock is already in effect. + * + * @param policyLockedDateTime the value to set + * @return this builder + */ + public Builder policyLockedDateTime(String policyLockedDateTime) { + this.policyLockedDateTime = policyLockedDateTime; + this.__explicitlySet__.add("policyLockedDateTime"); + 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"}} @@ -148,6 +196,7 @@ public CreateProtectionPolicyDetails build() { this.displayName, this.backupRetentionPeriodInDays, this.compartmentId, + this.policyLockedDateTime, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -167,6 +216,9 @@ public Builder copy(CreateProtectionPolicyDetails model) { if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } + if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { + this.policyLockedDateTime(model.getPolicyLockedDateTime()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -229,6 +281,47 @@ public String getCompartmentId() { return compartmentId; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. * + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take + * effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the + * current date. * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set + * policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. * + * During the 14-day delay period, you can either increase or decrease the retention period in + * the policy. * However, you are only allowed to increase the retention period on or after the + * retention lock date. * You cannot change the value of policyLockedDateTime if the retention + * lock is already in effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private final String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. * + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take + * effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the + * current date. * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set + * policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. * + * During the 14-day delay period, you can either increase or decrease the retention period in + * the policy. * However, you are only allowed to increase the retention period on or after the + * retention lock date. * You cannot change the value of policyLockedDateTime if the retention + * lock is already in effect. + * + * @return the value + */ + public String getPolicyLockedDateTime() { + return policyLockedDateTime; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -284,6 +377,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupRetentionPeriodInDays=") .append(String.valueOf(this.backupRetentionPeriodInDays)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -304,6 +398,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -322,6 +417,11 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = + (result * PRIME) + + (this.policyLockedDateTime == null + ? 43 + : this.policyLockedDateTime.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/CreateRecoveryServiceSubnetDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/CreateRecoveryServiceSubnetDetails.java index fc9bc6b0819..7c83fe4afcf 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 @@ -5,7 +5,7 @@ package com.oracle.bmc.recovery.model; /** - * Describes the parameters required to create a recovery service subnet.
+ * Describes the parameters required to create a Recovery Service Subnet.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -26,6 +26,8 @@ public final class CreateRecoveryServiceSubnetDetails @java.beans.ConstructorProperties({ "displayName", "subnetId", + "subnets", + "nsgIds", "vcnId", "compartmentId", "freeformTags", @@ -34,6 +36,8 @@ public final class CreateRecoveryServiceSubnetDetails public CreateRecoveryServiceSubnetDetails( String displayName, String subnetId, + java.util.List subnets, + java.util.List nsgIds, String vcnId, String compartmentId, java.util.Map freeformTags, @@ -41,6 +45,8 @@ public CreateRecoveryServiceSubnetDetails( super(); this.displayName = displayName; this.subnetId = subnetId; + this.subnets = subnets; + this.nsgIds = nsgIds; this.vcnId = vcnId; this.compartmentId = compartmentId; this.freeformTags = freeformTags; @@ -68,16 +74,12 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } - /** - * The OCID of the subnet associated with the recovery service subnet. You can create a - * single backup network per virtual cloud network (VCN). - */ + /** Deprecated. One of the subnets associated with the Recovery Service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * The OCID of the subnet associated with the recovery service subnet. You can create a - * single backup network per virtual cloud network (VCN). + * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @param subnetId the value to set * @return this builder @@ -87,6 +89,46 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** A list of OCIDs of the subnets associated with the Recovery Service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private java.util.List subnets; + + /** + * A list of OCIDs of the subnets associated with the Recovery Service subnet. + * + * @param subnets the value to set + * @return this builder + */ + public Builder subnets(java.util.List subnets) { + this.subnets = subnets; + this.__explicitlySet__.add("subnets"); + return this; + } + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @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; + } /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. * You can create a single recovery service subnet per VCN. @@ -173,6 +215,8 @@ public CreateRecoveryServiceSubnetDetails build() { new CreateRecoveryServiceSubnetDetails( this.displayName, this.subnetId, + this.subnets, + this.nsgIds, this.vcnId, this.compartmentId, this.freeformTags, @@ -191,6 +235,12 @@ public Builder copy(CreateRecoveryServiceSubnetDetails model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("subnets")) { + this.subnets(model.getSubnets()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } if (model.wasPropertyExplicitlySet("vcnId")) { this.vcnId(model.getVcnId()); } @@ -233,16 +283,12 @@ public String getDisplayName() { return displayName; } - /** - * The OCID of the subnet associated with the recovery service subnet. You can create a single - * backup network per virtual cloud network (VCN). - */ + /** Deprecated. One of the subnets associated with the Recovery Service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * The OCID of the subnet associated with the recovery service subnet. You can create a single - * backup network per virtual cloud network (VCN). + * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @return the value */ @@ -250,6 +296,42 @@ public String getSubnetId() { return subnetId; } + /** A list of OCIDs of the subnets associated with the Recovery Service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private final java.util.List subnets; + + /** + * A list of OCIDs of the subnets associated with the Recovery Service subnet. + * + * @return the value + */ + public java.util.List getSubnets() { + return subnets; + } + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + /** * The OCID of the virtual cloud network (VCN) that contains the recovery service subnet. You * can create a single recovery service subnet per VCN. @@ -333,6 +415,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); 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(", vcnId=").append(String.valueOf(this.vcnId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); @@ -353,6 +437,8 @@ public boolean equals(Object o) { CreateRecoveryServiceSubnetDetails other = (CreateRecoveryServiceSubnetDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && 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.vcnId, other.vcnId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) @@ -366,6 +452,8 @@ public int hashCode() { int result = 1; result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.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.vcnId == null ? 43 : this.vcnId.hashCode()); result = (result * PRIME) diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/DeletionSchedule.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/DeletionSchedule.java new file mode 100644 index 00000000000..53077df45aa --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/DeletionSchedule.java @@ -0,0 +1,46 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 preferred schedule to delete a protected database and its backups after you terminate the + * source database - * If you do not specify a value, then Recovery Service schedules to delete the + * protected database 72 hours (3 days) after the database is terminated. * If you set the option as + * DELETE_AFTER_RETENTION_PERIOD, then Recovery Service schedules to delete the protected database + * after the backup retention period expires. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public enum DeletionSchedule implements com.oracle.bmc.http.internal.BmcEnum { + DeleteAfterRetentionPeriod("DELETE_AFTER_RETENTION_PERIOD"), + DeleteAfter72Hours("DELETE_AFTER_72_HOURS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (DeletionSchedule v : DeletionSchedule.values()) { + map.put(v.getValue(), v); + } + } + + DeletionSchedule(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static DeletionSchedule create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid DeletionSchedule: " + key); + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/FetchProtectedDatabaseConfigurationDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/FetchProtectedDatabaseConfigurationDetails.java index cc51d61367c..b2fca443c04 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/FetchProtectedDatabaseConfigurationDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/FetchProtectedDatabaseConfigurationDetails.java @@ -89,6 +89,7 @@ public enum ConfigurationType implements com.oracle.bmc.http.internal.BmcEnum { Cabundle("CABUNDLE"), Tnsnames("TNSNAMES"), Hosts("HOSTS"), + Rcvconf("RCVCONF"), All("ALL"), ; diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LifecycleState.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LifecycleState.java index 936acf73141..48412479af4 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LifecycleState.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/LifecycleState.java @@ -10,6 +10,7 @@ public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Updating("UPDATING"), Active("ACTIVE"), + DeleteScheduled("DELETE_SCHEDULED"), Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/Metrics.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/Metrics.java index 6ff1ba4a772..cd10a6727d1 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/Metrics.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/Metrics.java @@ -28,7 +28,8 @@ public final class Metrics extends com.oracle.bmc.http.client.internal.Explicitl "dbSizeInGBs", "isRedoLogsEnabled", "retentionPeriodInDays", - "currentRetentionPeriodInSeconds" + "currentRetentionPeriodInSeconds", + "minimumRecoveryNeededInDays" }) public Metrics( Float backupSpaceUsedInGBs, @@ -37,7 +38,8 @@ public Metrics( Float dbSizeInGBs, Boolean isRedoLogsEnabled, Float retentionPeriodInDays, - Float currentRetentionPeriodInSeconds) { + Float currentRetentionPeriodInSeconds, + Float minimumRecoveryNeededInDays) { super(); this.backupSpaceUsedInGBs = backupSpaceUsedInGBs; this.backupSpaceEstimateInGBs = backupSpaceEstimateInGBs; @@ -46,6 +48,7 @@ public Metrics( this.isRedoLogsEnabled = isRedoLogsEnabled; this.retentionPeriodInDays = retentionPeriodInDays; this.currentRetentionPeriodInSeconds = currentRetentionPeriodInSeconds; + this.minimumRecoveryNeededInDays = minimumRecoveryNeededInDays; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -181,6 +184,21 @@ public Builder currentRetentionPeriodInSeconds(Float currentRetentionPeriodInSec this.__explicitlySet__.add("currentRetentionPeriodInSeconds"); return this; } + /** Number of days of redo/archive to be applied to recover database. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimumRecoveryNeededInDays") + private Float minimumRecoveryNeededInDays; + + /** + * Number of days of redo/archive to be applied to recover database. + * + * @param minimumRecoveryNeededInDays the value to set + * @return this builder + */ + public Builder minimumRecoveryNeededInDays(Float minimumRecoveryNeededInDays) { + this.minimumRecoveryNeededInDays = minimumRecoveryNeededInDays; + this.__explicitlySet__.add("minimumRecoveryNeededInDays"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -194,7 +212,8 @@ public Metrics build() { this.dbSizeInGBs, this.isRedoLogsEnabled, this.retentionPeriodInDays, - this.currentRetentionPeriodInSeconds); + this.currentRetentionPeriodInSeconds, + this.minimumRecoveryNeededInDays); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -224,6 +243,9 @@ public Builder copy(Metrics model) { if (model.wasPropertyExplicitlySet("currentRetentionPeriodInSeconds")) { this.currentRetentionPeriodInSeconds(model.getCurrentRetentionPeriodInSeconds()); } + if (model.wasPropertyExplicitlySet("minimumRecoveryNeededInDays")) { + this.minimumRecoveryNeededInDays(model.getMinimumRecoveryNeededInDays()); + } return this; } } @@ -354,6 +376,19 @@ public Float getCurrentRetentionPeriodInSeconds() { return currentRetentionPeriodInSeconds; } + /** Number of days of redo/archive to be applied to recover database. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimumRecoveryNeededInDays") + private final Float minimumRecoveryNeededInDays; + + /** + * Number of days of redo/archive to be applied to recover database. + * + * @return the value + */ + public Float getMinimumRecoveryNeededInDays() { + return minimumRecoveryNeededInDays; + } + @Override public String toString() { return this.toString(true); @@ -379,6 +414,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); sb.append(", currentRetentionPeriodInSeconds=") .append(String.valueOf(this.currentRetentionPeriodInSeconds)); + sb.append(", minimumRecoveryNeededInDays=") + .append(String.valueOf(this.minimumRecoveryNeededInDays)); sb.append(")"); return sb.toString(); } @@ -403,6 +440,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) && java.util.Objects.equals( this.currentRetentionPeriodInSeconds, other.currentRetentionPeriodInSeconds) + && java.util.Objects.equals( + this.minimumRecoveryNeededInDays, other.minimumRecoveryNeededInDays) && super.equals(other); } @@ -439,6 +478,11 @@ public int hashCode() { + (this.currentRetentionPeriodInSeconds == null ? 43 : this.currentRetentionPeriodInSeconds.hashCode()); + result = + (result * PRIME) + + (this.minimumRecoveryNeededInDays == null + ? 43 + : this.minimumRecoveryNeededInDays.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/MetricsSummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/MetricsSummary.java index 4be99d10da7..be40b464349 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/MetricsSummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/MetricsSummary.java @@ -29,7 +29,8 @@ public final class MetricsSummary "dbSizeInGBs", "isRedoLogsEnabled", "retentionPeriodInDays", - "currentRetentionPeriodInSeconds" + "currentRetentionPeriodInSeconds", + "minimumRecoveryNeededInDays" }) public MetricsSummary( Float backupSpaceUsedInGBs, @@ -38,7 +39,8 @@ public MetricsSummary( Float dbSizeInGBs, Boolean isRedoLogsEnabled, Float retentionPeriodInDays, - Float currentRetentionPeriodInSeconds) { + Float currentRetentionPeriodInSeconds, + Float minimumRecoveryNeededInDays) { super(); this.backupSpaceUsedInGBs = backupSpaceUsedInGBs; this.backupSpaceEstimateInGBs = backupSpaceEstimateInGBs; @@ -47,6 +49,7 @@ public MetricsSummary( this.isRedoLogsEnabled = isRedoLogsEnabled; this.retentionPeriodInDays = retentionPeriodInDays; this.currentRetentionPeriodInSeconds = currentRetentionPeriodInSeconds; + this.minimumRecoveryNeededInDays = minimumRecoveryNeededInDays; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -182,6 +185,21 @@ public Builder currentRetentionPeriodInSeconds(Float currentRetentionPeriodInSec this.__explicitlySet__.add("currentRetentionPeriodInSeconds"); return this; } + /** Number of days of redo/archive to be applied to recover database. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimumRecoveryNeededInDays") + private Float minimumRecoveryNeededInDays; + + /** + * Number of days of redo/archive to be applied to recover database. + * + * @param minimumRecoveryNeededInDays the value to set + * @return this builder + */ + public Builder minimumRecoveryNeededInDays(Float minimumRecoveryNeededInDays) { + this.minimumRecoveryNeededInDays = minimumRecoveryNeededInDays; + this.__explicitlySet__.add("minimumRecoveryNeededInDays"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -195,7 +213,8 @@ public MetricsSummary build() { this.dbSizeInGBs, this.isRedoLogsEnabled, this.retentionPeriodInDays, - this.currentRetentionPeriodInSeconds); + this.currentRetentionPeriodInSeconds, + this.minimumRecoveryNeededInDays); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -225,6 +244,9 @@ public Builder copy(MetricsSummary model) { if (model.wasPropertyExplicitlySet("currentRetentionPeriodInSeconds")) { this.currentRetentionPeriodInSeconds(model.getCurrentRetentionPeriodInSeconds()); } + if (model.wasPropertyExplicitlySet("minimumRecoveryNeededInDays")) { + this.minimumRecoveryNeededInDays(model.getMinimumRecoveryNeededInDays()); + } return this; } } @@ -355,6 +377,19 @@ public Float getCurrentRetentionPeriodInSeconds() { return currentRetentionPeriodInSeconds; } + /** Number of days of redo/archive to be applied to recover database. */ + @com.fasterxml.jackson.annotation.JsonProperty("minimumRecoveryNeededInDays") + private final Float minimumRecoveryNeededInDays; + + /** + * Number of days of redo/archive to be applied to recover database. + * + * @return the value + */ + public Float getMinimumRecoveryNeededInDays() { + return minimumRecoveryNeededInDays; + } + @Override public String toString() { return this.toString(true); @@ -380,6 +415,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", retentionPeriodInDays=").append(String.valueOf(this.retentionPeriodInDays)); sb.append(", currentRetentionPeriodInSeconds=") .append(String.valueOf(this.currentRetentionPeriodInSeconds)); + sb.append(", minimumRecoveryNeededInDays=") + .append(String.valueOf(this.minimumRecoveryNeededInDays)); sb.append(")"); return sb.toString(); } @@ -404,6 +441,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.retentionPeriodInDays, other.retentionPeriodInDays) && java.util.Objects.equals( this.currentRetentionPeriodInSeconds, other.currentRetentionPeriodInSeconds) + && java.util.Objects.equals( + this.minimumRecoveryNeededInDays, other.minimumRecoveryNeededInDays) && super.equals(other); } @@ -440,6 +479,11 @@ public int hashCode() { + (this.currentRetentionPeriodInSeconds == null ? 43 : this.currentRetentionPeriodInSeconds.hashCode()); + result = + (result * PRIME) + + (this.minimumRecoveryNeededInDays == null + ? 43 + : this.minimumRecoveryNeededInDays.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationStatus.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationStatus.java index 36812cc9915..3567fcacb50 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationStatus.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/OperationStatus.java @@ -8,6 +8,7 @@ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { Accepted("ACCEPTED"), + Waiting("WAITING"), InProgress("IN_PROGRESS"), Failed("FAILED"), Succeeded("SUCCEEDED"), 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 555cfff286e..c1a99ea64b3 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 @@ -34,6 +34,7 @@ public final class ProtectedDatabase "vpcUserName", "databaseSize", "protectionPolicyId", + "policyLockedDateTime", "recoveryServiceSubnets", "databaseId", "databaseSizeInGBs", @@ -60,6 +61,7 @@ public ProtectedDatabase( String vpcUserName, DatabaseSizes databaseSize, String protectionPolicyId, + String policyLockedDateTime, java.util.List recoveryServiceSubnets, String databaseId, Integer databaseSizeInGBs, @@ -85,6 +87,7 @@ public ProtectedDatabase( this.vpcUserName = vpcUserName; this.databaseSize = databaseSize; this.protectionPolicyId = protectionPolicyId; + this.policyLockedDateTime = policyLockedDateTime; this.recoveryServiceSubnets = recoveryServiceSubnets; this.databaseId = databaseId; this.databaseSizeInGBs = databaseSizeInGBs; @@ -227,6 +230,39 @@ public Builder protectionPolicyId(String protectionPolicyId) { this.__explicitlySet__.add("protectionPolicyId"); return this; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. Recovery Service enforces a 14-day delay before the retention lock set + * for a policy can take effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. Recovery Service enforces a 14-day delay before the retention lock set + * for a policy can take effect. + * + * @param policyLockedDateTime the value to set + * @return this builder + */ + public Builder policyLockedDateTime(String policyLockedDateTime) { + this.policyLockedDateTime = policyLockedDateTime; + this.__explicitlySet__.add("policyLockedDateTime"); + return this; + } /** List of recovery service subnet resources associated with the protected database. */ @com.fasterxml.jackson.annotation.JsonProperty("recoveryServiceSubnets") private java.util.List recoveryServiceSubnets; @@ -390,13 +426,12 @@ public Builder lifecycleState(LifecycleState lifecycleState) { return this; } /** - * Indicates the protection status of the database. Allowed values are: - HEALTHY - WARNING - * - ALERT + * Indicates the protection status of the database. * - *

A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any - * point in time within the entire recovery window. The potential data loss exposure since - * the last backup is: - Less than 10 seconds, if Real-time data protection is enabled - - * Less than 70 minutes if Real-time data protection is disabled + *

A 'PROTECTED' status indicates that Recovery Service can ensure database recovery to + * any point in time within the entire recovery window. The potential data loss exposure + * since the last backup is: - Less than 10 seconds, if Real-time data protection is enabled + * - Less than 70 minutes if Real-time data protection is disabled * *

A 'WARNING' status indicates that Recovery Service can ensure database recovery within * the current recovery window - 1 day. The potential data loss exposure since the last @@ -410,13 +445,12 @@ public Builder lifecycleState(LifecycleState lifecycleState) { private Health health; /** - * Indicates the protection status of the database. Allowed values are: - HEALTHY - WARNING - * - ALERT + * Indicates the protection status of the database. * - *

A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any - * point in time within the entire recovery window. The potential data loss exposure since - * the last backup is: - Less than 10 seconds, if Real-time data protection is enabled - - * Less than 70 minutes if Real-time data protection is disabled + *

A 'PROTECTED' status indicates that Recovery Service can ensure database recovery to + * any point in time within the entire recovery window. The potential data loss exposure + * since the last backup is: - Less than 10 seconds, if Real-time data protection is enabled + * - Less than 70 minutes if Real-time data protection is disabled * *

A 'WARNING' status indicates that Recovery Service can ensure database recovery within * the current recovery window - 1 day. The potential data loss exposure since the last @@ -582,6 +616,7 @@ public ProtectedDatabase build() { this.vpcUserName, this.databaseSize, this.protectionPolicyId, + this.policyLockedDateTime, this.recoveryServiceSubnets, this.databaseId, this.databaseSizeInGBs, @@ -628,6 +663,9 @@ public Builder copy(ProtectedDatabase model) { if (model.wasPropertyExplicitlySet("protectionPolicyId")) { this.protectionPolicyId(model.getProtectionPolicyId()); } + if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { + this.policyLockedDateTime(model.getPolicyLockedDateTime()); + } if (model.wasPropertyExplicitlySet("recoveryServiceSubnets")) { this.recoveryServiceSubnets(model.getRecoveryServiceSubnets()); } @@ -799,6 +837,33 @@ public String getProtectionPolicyId() { return protectionPolicyId; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. Recovery + * Service enforces a 14-day delay before the retention lock set for a policy can take effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private final String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. Recovery + * Service enforces a 14-day delay before the retention lock set for a policy can take effect. + * + * @return the value + */ + public String getPolicyLockedDateTime() { + return policyLockedDateTime; + } + /** List of recovery service subnet resources associated with the protected database. */ @com.fasterxml.jackson.annotation.JsonProperty("recoveryServiceSubnets") private final java.util.List recoveryServiceSubnets; @@ -943,10 +1008,9 @@ public LifecycleState getLifecycleState() { } /** - * Indicates the protection status of the database. Allowed values are: - HEALTHY - WARNING - - * ALERT + * Indicates the protection status of the database. * - *

A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any + *

A 'PROTECTED' status indicates that Recovery Service can ensure database recovery to any * point in time within the entire recovery window. The potential data loss exposure since the * last backup is: - Less than 10 seconds, if Real-time data protection is enabled - Less than * 70 minutes if Real-time data protection is disabled @@ -963,10 +1027,9 @@ public LifecycleState getLifecycleState() { private final Health health; /** - * Indicates the protection status of the database. Allowed values are: - HEALTHY - WARNING - - * ALERT + * Indicates the protection status of the database. * - *

A 'HEALTHY' status indicates that Recovery Service can ensure database recovery to any + *

A 'PROTECTED' status indicates that Recovery Service can ensure database recovery to any * point in time within the entire recovery window. The potential data loss exposure since the * last backup is: - Less than 10 seconds, if Real-time data protection is enabled - Less than * 70 minutes if Real-time data protection is disabled @@ -1122,6 +1185,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vpcUserName=").append(String.valueOf(this.vpcUserName)); sb.append(", databaseSize=").append(String.valueOf(this.databaseSize)); sb.append(", protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); + sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", recoveryServiceSubnets=").append(String.valueOf(this.recoveryServiceSubnets)); sb.append(", databaseId=").append(String.valueOf(this.databaseId)); sb.append(", databaseSizeInGBs=").append(String.valueOf(this.databaseSizeInGBs)); @@ -1160,6 +1224,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vpcUserName, other.vpcUserName) && java.util.Objects.equals(this.databaseSize, other.databaseSize) && java.util.Objects.equals(this.protectionPolicyId, other.protectionPolicyId) + && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals( this.recoveryServiceSubnets, other.recoveryServiceSubnets) && java.util.Objects.equals(this.databaseId, other.databaseId) @@ -1198,6 +1263,11 @@ public int hashCode() { + (this.protectionPolicyId == null ? 43 : this.protectionPolicyId.hashCode()); + result = + (result * PRIME) + + (this.policyLockedDateTime == null + ? 43 + : this.policyLockedDateTime.hashCode()); result = (result * PRIME) + (this.recoveryServiceSubnets == null 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 56640700bb6..25c8e1f721a 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 @@ -42,6 +42,7 @@ public final class ProtectedDatabaseSummary "vpcUserName", "databaseSize", "protectionPolicyId", + "policyLockedDateTime", "recoveryServiceSubnets", "databaseId", "timeCreated", @@ -64,6 +65,7 @@ public ProtectedDatabaseSummary( String vpcUserName, DatabaseSizes databaseSize, String protectionPolicyId, + String policyLockedDateTime, java.util.List recoveryServiceSubnets, String databaseId, java.util.Date timeCreated, @@ -85,6 +87,7 @@ public ProtectedDatabaseSummary( this.vpcUserName = vpcUserName; this.databaseSize = databaseSize; this.protectionPolicyId = protectionPolicyId; + this.policyLockedDateTime = policyLockedDateTime; this.recoveryServiceSubnets = recoveryServiceSubnets; this.databaseId = databaseId; this.timeCreated = timeCreated; @@ -223,6 +226,39 @@ public Builder protectionPolicyId(String protectionPolicyId) { this.__explicitlySet__.add("protectionPolicyId"); return this; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. Recovery Service enforces a 14-day delay before the retention lock set + * for a policy can take effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. Recovery Service enforces a 14-day delay before the retention lock set + * for a policy can take effect. + * + * @param policyLockedDateTime the value to set + * @return this builder + */ + public Builder policyLockedDateTime(String policyLockedDateTime) { + this.policyLockedDateTime = policyLockedDateTime; + this.__explicitlySet__.add("policyLockedDateTime"); + return this; + } /** List of recovery service subnet resources associated with the protected database. */ @com.fasterxml.jackson.annotation.JsonProperty("recoveryServiceSubnets") private java.util.List recoveryServiceSubnets; @@ -470,6 +506,7 @@ public ProtectedDatabaseSummary build() { this.vpcUserName, this.databaseSize, this.protectionPolicyId, + this.policyLockedDateTime, this.recoveryServiceSubnets, this.databaseId, this.timeCreated, @@ -512,6 +549,9 @@ public Builder copy(ProtectedDatabaseSummary model) { if (model.wasPropertyExplicitlySet("protectionPolicyId")) { this.protectionPolicyId(model.getProtectionPolicyId()); } + if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { + this.policyLockedDateTime(model.getPolicyLockedDateTime()); + } if (model.wasPropertyExplicitlySet("recoveryServiceSubnets")) { this.recoveryServiceSubnets(model.getRecoveryServiceSubnets()); } @@ -671,6 +711,33 @@ public String getProtectionPolicyId() { return protectionPolicyId; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. Recovery + * Service enforces a 14-day delay before the retention lock set for a policy can take effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private final String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. Recovery + * Service enforces a 14-day delay before the retention lock set for a policy can take effect. + * + * @return the value + */ + public String getPolicyLockedDateTime() { + return policyLockedDateTime; + } + /** List of recovery service subnet resources associated with the protected database. */ @com.fasterxml.jackson.annotation.JsonProperty("recoveryServiceSubnets") private final java.util.List recoveryServiceSubnets; @@ -894,6 +961,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", vpcUserName=").append(String.valueOf(this.vpcUserName)); sb.append(", databaseSize=").append(String.valueOf(this.databaseSize)); sb.append(", protectionPolicyId=").append(String.valueOf(this.protectionPolicyId)); + sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", recoveryServiceSubnets=").append(String.valueOf(this.recoveryServiceSubnets)); sb.append(", databaseId=").append(String.valueOf(this.databaseId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); @@ -928,6 +996,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.vpcUserName, other.vpcUserName) && java.util.Objects.equals(this.databaseSize, other.databaseSize) && java.util.Objects.equals(this.protectionPolicyId, other.protectionPolicyId) + && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals( this.recoveryServiceSubnets, other.recoveryServiceSubnets) && java.util.Objects.equals(this.databaseId, other.databaseId) @@ -962,6 +1031,11 @@ public int hashCode() { + (this.protectionPolicyId == null ? 43 : this.protectionPolicyId.hashCode()); + result = + (result * PRIME) + + (this.policyLockedDateTime == null + ? 43 + : this.policyLockedDateTime.hashCode()); result = (result * PRIME) + (this.recoveryServiceSubnets == null diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java index 4827e7dba26..53f77401a21 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicy.java @@ -31,6 +31,7 @@ public final class ProtectionPolicy "compartmentId", "backupRetentionPeriodInDays", "isPredefinedPolicy", + "policyLockedDateTime", "timeCreated", "timeUpdated", "lifecycleState", @@ -45,6 +46,7 @@ public ProtectionPolicy( String compartmentId, Integer backupRetentionPeriodInDays, Boolean isPredefinedPolicy, + String policyLockedDateTime, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -58,6 +60,7 @@ public ProtectionPolicy( this.compartmentId = compartmentId; this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; this.isPredefinedPolicy = isPredefinedPolicy; + this.policyLockedDateTime = policyLockedDateTime; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -154,6 +157,27 @@ public Builder isPredefinedPolicy(Boolean isPredefinedPolicy) { this.__explicitlySet__.add("isPredefinedPolicy"); return this; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + * @param policyLockedDateTime the value to set + * @return this builder + */ + public Builder policyLockedDateTime(String policyLockedDateTime) { + this.policyLockedDateTime = policyLockedDateTime; + this.__explicitlySet__.add("policyLockedDateTime"); + return this; + } /** * An RFC3339 formatted datetime string that indicates the created time for the protection * policy. For example: '2020-05-22T21:10:29.600Z'. @@ -192,16 +216,12 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** - * The current state of the protection policy. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED - */ + /** The current state of the protection policy. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the protection policy. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED + * The current state of the protection policy. * * @param lifecycleState the value to set * @return this builder @@ -308,6 +328,7 @@ public ProtectionPolicy build() { this.compartmentId, this.backupRetentionPeriodInDays, this.isPredefinedPolicy, + this.policyLockedDateTime, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -338,6 +359,9 @@ public Builder copy(ProtectionPolicy model) { if (model.wasPropertyExplicitlySet("isPredefinedPolicy")) { this.isPredefinedPolicy(model.getIsPredefinedPolicy()); } + if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { + this.policyLockedDateTime(model.getPolicyLockedDateTime()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -447,6 +471,23 @@ public Boolean getIsPredefinedPolicy() { return isPredefinedPolicy; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private final String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + * @return the value + */ + public String getPolicyLockedDateTime() { + return policyLockedDateTime; + } + /** * An RFC3339 formatted datetime string that indicates the created time for the protection * policy. For example: '2020-05-22T21:10:29.600Z'. @@ -481,16 +522,12 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** - * The current state of the protection policy. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED - */ + /** The current state of the protection policy. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the protection policy. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED + * The current state of the protection policy. * * @return the value */ @@ -591,6 +628,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupRetentionPeriodInDays=") .append(String.valueOf(this.backupRetentionPeriodInDays)); sb.append(", isPredefinedPolicy=").append(String.valueOf(this.isPredefinedPolicy)); + sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -618,6 +656,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) && java.util.Objects.equals(this.isPredefinedPolicy, other.isPredefinedPolicy) + && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -647,6 +686,11 @@ public int hashCode() { + (this.isPredefinedPolicy == null ? 43 : this.isPredefinedPolicy.hashCode()); + result = + (result * PRIME) + + (this.policyLockedDateTime == null + ? 43 + : this.policyLockedDateTime.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/ProtectionPolicySummary.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java index 9a095a5eb46..c630d086f2d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ProtectionPolicySummary.java @@ -37,6 +37,7 @@ public final class ProtectionPolicySummary "compartmentId", "backupRetentionPeriodInDays", "isPredefinedPolicy", + "policyLockedDateTime", "timeCreated", "timeUpdated", "lifecycleState", @@ -51,6 +52,7 @@ public ProtectionPolicySummary( String compartmentId, Integer backupRetentionPeriodInDays, Boolean isPredefinedPolicy, + String policyLockedDateTime, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -64,6 +66,7 @@ public ProtectionPolicySummary( this.compartmentId = compartmentId; this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; this.isPredefinedPolicy = isPredefinedPolicy; + this.policyLockedDateTime = policyLockedDateTime; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -154,6 +157,27 @@ public Builder isPredefinedPolicy(Boolean isPredefinedPolicy) { this.__explicitlySet__.add("isPredefinedPolicy"); return this; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + * @param policyLockedDateTime the value to set + * @return this builder + */ + public Builder policyLockedDateTime(String policyLockedDateTime) { + this.policyLockedDateTime = policyLockedDateTime; + this.__explicitlySet__.add("policyLockedDateTime"); + return this; + } /** The time the Protection Policy was created. An RFC3339 formatted datetime string */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; @@ -296,6 +320,7 @@ public ProtectionPolicySummary build() { this.compartmentId, this.backupRetentionPeriodInDays, this.isPredefinedPolicy, + this.policyLockedDateTime, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -326,6 +351,9 @@ public Builder copy(ProtectionPolicySummary model) { if (model.wasPropertyExplicitlySet("isPredefinedPolicy")) { this.isPredefinedPolicy(model.getIsPredefinedPolicy()); } + if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { + this.policyLockedDateTime(model.getPolicyLockedDateTime()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -429,6 +457,23 @@ public Boolean getIsPredefinedPolicy() { return isPredefinedPolicy; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private final String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + * @return the value + */ + public String getPolicyLockedDateTime() { + return policyLockedDateTime; + } + /** The time the Protection Policy was created. An RFC3339 formatted datetime string */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; @@ -561,6 +606,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", backupRetentionPeriodInDays=") .append(String.valueOf(this.backupRetentionPeriodInDays)); sb.append(", isPredefinedPolicy=").append(String.valueOf(this.isPredefinedPolicy)); + sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -588,6 +634,7 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) && java.util.Objects.equals(this.isPredefinedPolicy, other.isPredefinedPolicy) + && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -617,6 +664,11 @@ public int hashCode() { + (this.isPredefinedPolicy == null ? 43 : this.isPredefinedPolicy.hashCode()); + result = + (result * PRIME) + + (this.policyLockedDateTime == null + ? 43 + : this.policyLockedDateTime.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/RecoveryServiceSubnet.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/RecoveryServiceSubnet.java index c5fb5777827..acddd6f1fa7 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,8 @@ public final class RecoveryServiceSubnet "compartmentId", "vcnId", "subnetId", + "subnets", + "nsgIds", "timeCreated", "timeUpdated", "lifecycleState", @@ -47,6 +49,8 @@ public RecoveryServiceSubnet( String compartmentId, String vcnId, String subnetId, + java.util.List subnets, + java.util.List nsgIds, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -60,6 +64,8 @@ public RecoveryServiceSubnet( this.compartmentId = compartmentId; this.vcnId = vcnId; this.subnetId = subnetId; + this.subnets = subnets; + this.nsgIds = nsgIds; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -131,12 +137,12 @@ public Builder vcnId(String vcnId) { this.__explicitlySet__.add("vcnId"); return this; } - /** The OCID of the subnet used as the recovery service subnet. */ + /** Deprecated. One of the subnets associated with the Recovery Service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * The OCID of the subnet used as the recovery service subnet. + * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @param subnetId the value to set * @return this builder @@ -146,6 +152,46 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** A list of OCIDs of all the subnets associated with the Recovery Service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private java.util.List subnets; + + /** + * A list of OCIDs of all the subnets associated with the Recovery Service subnet. + * + * @param subnets the value to set + * @return this builder + */ + public Builder subnets(java.util.List subnets) { + this.subnets = subnets; + this.__explicitlySet__.add("subnets"); + return this; + } + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @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; + } /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -184,16 +230,12 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - - * UPDATING - ACTIVE - DELETING - DELETED - FAILED - */ + /** The current state of the recovery service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - - * UPDATING - ACTIVE - DELETING - DELETED - FAILED + * The current state of the recovery service subnet. * * @param lifecycleState the value to set * @return this builder @@ -300,6 +342,8 @@ public RecoveryServiceSubnet build() { this.compartmentId, this.vcnId, this.subnetId, + this.subnets, + this.nsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -330,6 +374,12 @@ public Builder copy(RecoveryServiceSubnet model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("subnets")) { + this.subnets(model.getSubnets()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -416,12 +466,12 @@ public String getVcnId() { return vcnId; } - /** The OCID of the subnet used as the recovery service subnet. */ + /** Deprecated. One of the subnets associated with the Recovery Service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * The OCID of the subnet used as the recovery service subnet. + * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @return the value */ @@ -429,6 +479,42 @@ public String getSubnetId() { return subnetId; } + /** A list of OCIDs of all the subnets associated with the Recovery Service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private final java.util.List subnets; + + /** + * A list of OCIDs of all the subnets associated with the Recovery Service subnet. + * + * @return the value + */ + public java.util.List getSubnets() { + return subnets; + } + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -463,16 +549,12 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED - */ + /** The current state of the recovery service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED + * The current state of the recovery service subnet. * * @return the value */ @@ -572,6 +654,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); 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(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -598,6 +682,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.vcnId, other.vcnId) && 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.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -619,6 +705,8 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.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.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 19f14cb2139..504d24e6642 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 @@ -36,6 +36,8 @@ public final class RecoveryServiceSubnetSummary "compartmentId", "vcnId", "subnetId", + "subnets", + "nsgIds", "timeCreated", "timeUpdated", "lifecycleState", @@ -50,6 +52,8 @@ public RecoveryServiceSubnetSummary( String compartmentId, String vcnId, String subnetId, + java.util.List subnets, + java.util.List nsgIds, java.util.Date timeCreated, java.util.Date timeUpdated, LifecycleState lifecycleState, @@ -63,6 +67,8 @@ public RecoveryServiceSubnetSummary( this.compartmentId = compartmentId; this.vcnId = vcnId; this.subnetId = subnetId; + this.subnets = subnets; + this.nsgIds = nsgIds; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; @@ -138,16 +144,12 @@ public Builder vcnId(String vcnId) { this.__explicitlySet__.add("vcnId"); return this; } - /** - * The OCID of the subnet associated with the recovery service subnet. You can create a - * single backup network per virtual cloud network (VCN). - */ + /** Deprecated. One of the subnets associated with the Recovery Service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private String subnetId; /** - * The OCID of the subnet associated with the recovery service subnet. You can create a - * single backup network per virtual cloud network (VCN). + * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @param subnetId the value to set * @return this builder @@ -157,6 +159,46 @@ public Builder subnetId(String subnetId) { this.__explicitlySet__.add("subnetId"); return this; } + /** A list of OCIDs of all the subnets associated with the Recovery Service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private java.util.List subnets; + + /** + * A list of OCIDs of all the subnets associated with the Recovery Service subnet. + * + * @param subnets the value to set + * @return this builder + */ + public Builder subnets(java.util.List subnets) { + this.subnets = subnets; + this.__explicitlySet__.add("subnets"); + return this; + } + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @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; + } /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -195,16 +237,12 @@ public Builder timeUpdated(java.util.Date timeUpdated) { this.__explicitlySet__.add("timeUpdated"); return this; } - /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - - * UPDATING - ACTIVE - DELETING - DELETED - FAILED - */ + /** The current state of the recovery service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private LifecycleState lifecycleState; /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - - * UPDATING - ACTIVE - DELETING - DELETED - FAILED + * The current state of the recovery service subnet. * * @param lifecycleState the value to set * @return this builder @@ -311,6 +349,8 @@ public RecoveryServiceSubnetSummary build() { this.compartmentId, this.vcnId, this.subnetId, + this.subnets, + this.nsgIds, this.timeCreated, this.timeUpdated, this.lifecycleState, @@ -341,6 +381,12 @@ public Builder copy(RecoveryServiceSubnetSummary model) { if (model.wasPropertyExplicitlySet("subnetId")) { this.subnetId(model.getSubnetId()); } + if (model.wasPropertyExplicitlySet("subnets")) { + this.subnets(model.getSubnets()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } @@ -431,16 +477,12 @@ public String getVcnId() { return vcnId; } - /** - * The OCID of the subnet associated with the recovery service subnet. You can create a single - * backup network per virtual cloud network (VCN). - */ + /** Deprecated. One of the subnets associated with the Recovery Service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("subnetId") private final String subnetId; /** - * The OCID of the subnet associated with the recovery service subnet. You can create a single - * backup network per virtual cloud network (VCN). + * Deprecated. One of the subnets associated with the Recovery Service subnet. * * @return the value */ @@ -448,6 +490,42 @@ public String getSubnetId() { return subnetId; } + /** A list of OCIDs of all the subnets associated with the Recovery Service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private final java.util.List subnets; + + /** + * A list of OCIDs of all the subnets associated with the Recovery Service subnet. + * + * @return the value + */ + public java.util.List getSubnets() { + return subnets; + } + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; + } + /** * An RFC3339 formatted datetime string that indicates the last created time for a recovery * service subnet. For example: '2020-05-22T21:10:29.600Z'. @@ -482,16 +560,12 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED - */ + /** The current state of the recovery service subnet. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final LifecycleState lifecycleState; /** - * The current state of the recovery service subnet. Allowed values are: - CREATING - UPDATING - - * ACTIVE - DELETING - DELETED - FAILED + * The current state of the recovery service subnet. * * @return the value */ @@ -591,6 +665,8 @@ public String toString(boolean includeByteArrayContents) { sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", vcnId=").append(String.valueOf(this.vcnId)); 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(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); @@ -617,6 +693,8 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.vcnId, other.vcnId) && 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.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) @@ -638,6 +716,8 @@ public int hashCode() { + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.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.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/ScheduleProtectedDatabaseDeletionDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ScheduleProtectedDatabaseDeletionDetails.java new file mode 100644 index 00000000000..d12356f34b2 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/ScheduleProtectedDatabaseDeletionDetails.java @@ -0,0 +1,160 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 for scheduling deletion of the protected database
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = ScheduleProtectedDatabaseDeletionDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class ScheduleProtectedDatabaseDeletionDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"deletionSchedule"}) + public ScheduleProtectedDatabaseDeletionDetails(DeletionSchedule deletionSchedule) { + super(); + this.deletionSchedule = deletionSchedule; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Defines a preferred schedule to delete a protected database after you terminate the + * source database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete + * operation can occur 72 hours (3 days) after the source database is terminated. * The + * alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to + * delete a protected database only after the policy-defined backup retention period + * expires. + */ + @com.fasterxml.jackson.annotation.JsonProperty("deletionSchedule") + private DeletionSchedule deletionSchedule; + + /** + * Defines a preferred schedule to delete a protected database after you terminate the + * source database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete + * operation can occur 72 hours (3 days) after the source database is terminated. * The + * alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to + * delete a protected database only after the policy-defined backup retention period + * expires. + * + * @param deletionSchedule the value to set + * @return this builder + */ + public Builder deletionSchedule(DeletionSchedule deletionSchedule) { + this.deletionSchedule = deletionSchedule; + this.__explicitlySet__.add("deletionSchedule"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public ScheduleProtectedDatabaseDeletionDetails build() { + ScheduleProtectedDatabaseDeletionDetails model = + new ScheduleProtectedDatabaseDeletionDetails(this.deletionSchedule); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(ScheduleProtectedDatabaseDeletionDetails model) { + if (model.wasPropertyExplicitlySet("deletionSchedule")) { + this.deletionSchedule(model.getDeletionSchedule()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Defines a preferred schedule to delete a protected database after you terminate the source + * database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can + * occur 72 hours (3 days) after the source database is terminated. * The alternate schedule is + * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database + * only after the policy-defined backup retention period expires. + */ + @com.fasterxml.jackson.annotation.JsonProperty("deletionSchedule") + private final DeletionSchedule deletionSchedule; + + /** + * Defines a preferred schedule to delete a protected database after you terminate the source + * database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can + * occur 72 hours (3 days) after the source database is terminated. * The alternate schedule is + * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database + * only after the policy-defined backup retention period expires. + * + * @return the value + */ + public DeletionSchedule getDeletionSchedule() { + return deletionSchedule; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("ScheduleProtectedDatabaseDeletionDetails("); + sb.append("super=").append(super.toString()); + sb.append("deletionSchedule=").append(String.valueOf(this.deletionSchedule)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof ScheduleProtectedDatabaseDeletionDetails)) { + return false; + } + + ScheduleProtectedDatabaseDeletionDetails other = + (ScheduleProtectedDatabaseDeletionDetails) o; + return java.util.Objects.equals(this.deletionSchedule, other.deletionSchedule) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.deletionSchedule == null ? 43 : this.deletionSchedule.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateProtectionPolicyDetails.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateProtectionPolicyDetails.java index 79a9e1e9688..488695cc876 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateProtectionPolicyDetails.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/model/UpdateProtectionPolicyDetails.java @@ -26,17 +26,20 @@ public final class UpdateProtectionPolicyDetails @java.beans.ConstructorProperties({ "displayName", "backupRetentionPeriodInDays", + "policyLockedDateTime", "freeformTags", "definedTags" }) public UpdateProtectionPolicyDetails( String displayName, Integer backupRetentionPeriodInDays, + String policyLockedDateTime, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.backupRetentionPeriodInDays = backupRetentionPeriodInDays; + this.policyLockedDateTime = policyLockedDateTime; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -77,6 +80,51 @@ public Builder backupRetentionPeriodInDays(Integer backupRetentionPeriodInDays) this.__explicitlySet__.add("backupRetentionPeriodInDays"); return this; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. * Recovery Service enforces a 14-day delay before the retention lock + * set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date + * that occurs 14 days after the current date. * For example, assuming that the current date + * is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug + * 15, 2023, 9:00 pm), or greater. * During the 14-day delay period, you can either increase + * or decrease the retention period in the policy. * However, you are only allowed to + * increase the retention period on or after the retention lock date. * You cannot change + * the value of policyLockedDateTime if the retention lock is already in effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the + * retention lock to take effect and permanently lock the retention period defined in the + * policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves + * backups for the duration defined in a policy. Retention lock is useful to enforce + * recovery window compliance and to prevent unintentional modifications to protected + * database backups. * Recovery Service enforces a 14-day delay before the retention lock + * set for a policy can take effect. Therefore, you must set policyLockedDateTime to a date + * that occurs 14 days after the current date. * For example, assuming that the current date + * is Aug 1, 2023 9 pm, you can set policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug + * 15, 2023, 9:00 pm), or greater. * During the 14-day delay period, you can either increase + * or decrease the retention period in the policy. * However, you are only allowed to + * increase the retention period on or after the retention lock date. * You cannot change + * the value of policyLockedDateTime if the retention lock is already in effect. + * + * @param policyLockedDateTime the value to set + * @return this builder + */ + public Builder policyLockedDateTime(String policyLockedDateTime) { + this.policyLockedDateTime = policyLockedDateTime; + this.__explicitlySet__.add("policyLockedDateTime"); + 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"}} @@ -129,6 +177,7 @@ public UpdateProtectionPolicyDetails build() { new UpdateProtectionPolicyDetails( this.displayName, this.backupRetentionPeriodInDays, + this.policyLockedDateTime, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { @@ -145,6 +194,9 @@ public Builder copy(UpdateProtectionPolicyDetails model) { if (model.wasPropertyExplicitlySet("backupRetentionPeriodInDays")) { this.backupRetentionPeriodInDays(model.getBackupRetentionPeriodInDays()); } + if (model.wasPropertyExplicitlySet("policyLockedDateTime")) { + this.policyLockedDateTime(model.getPolicyLockedDateTime()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -194,6 +246,47 @@ public Integer getBackupRetentionPeriodInDays() { return backupRetentionPeriodInDays; } + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. * + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take + * effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the + * current date. * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set + * policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. * + * During the 14-day delay period, you can either increase or decrease the retention period in + * the policy. * However, you are only allowed to increase the retention period on or after the + * retention lock date. * You cannot change the value of policyLockedDateTime if the retention + * lock is already in effect. + */ + @com.fasterxml.jackson.annotation.JsonProperty("policyLockedDateTime") + private final String policyLockedDateTime; + + /** + * An RFC3339 formatted datetime string that specifies the exact date and time for the retention + * lock to take effect and permanently lock the retention period defined in the policy. + * + *

The retention lock feature controls whether Recovery Service strictly preserves backups + * for the duration defined in a policy. Retention lock is useful to enforce recovery window + * compliance and to prevent unintentional modifications to protected database backups. * + * Recovery Service enforces a 14-day delay before the retention lock set for a policy can take + * effect. Therefore, you must set policyLockedDateTime to a date that occurs 14 days after the + * current date. * For example, assuming that the current date is Aug 1, 2023 9 pm, you can set + * policyLockedDateTime to '2023-08-15T21:00:00.600Z' (Aug 15, 2023, 9:00 pm), or greater. * + * During the 14-day delay period, you can either increase or decrease the retention period in + * the policy. * However, you are only allowed to increase the retention period on or after the + * retention lock date. * You cannot change the value of policyLockedDateTime if the retention + * lock is already in effect. + * + * @return the value + */ + public String getPolicyLockedDateTime() { + return policyLockedDateTime; + } + /** * Simple key-value pair that is applied without any predefined name, type or scope. Exists for * cross-compatibility only. Example: {@code {"bar-key": "value"}} @@ -248,6 +341,7 @@ public String toString(boolean includeByteArrayContents) { sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", backupRetentionPeriodInDays=") .append(String.valueOf(this.backupRetentionPeriodInDays)); + sb.append(", policyLockedDateTime=").append(String.valueOf(this.policyLockedDateTime)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -267,6 +361,7 @@ public boolean equals(Object o) { return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.backupRetentionPeriodInDays, other.backupRetentionPeriodInDays) + && java.util.Objects.equals(this.policyLockedDateTime, other.policyLockedDateTime) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -282,6 +377,11 @@ public int hashCode() { + (this.backupRetentionPeriodInDays == null ? 43 : this.backupRetentionPeriodInDays.hashCode()); + result = + (result * PRIME) + + (this.policyLockedDateTime == null + ? 43 + : this.policyLockedDateTime.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 425eabe891f..2e2d2116450 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 @@ -23,13 +23,23 @@ public final class UpdateRecoveryServiceSubnetDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"displayName", "freeformTags", "definedTags"}) + @java.beans.ConstructorProperties({ + "displayName", + "subnets", + "nsgIds", + "freeformTags", + "definedTags" + }) public UpdateRecoveryServiceSubnetDetails( String displayName, + java.util.List subnets, + java.util.List nsgIds, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; + this.subnets = subnets; + this.nsgIds = nsgIds; this.freeformTags = freeformTags; this.definedTags = definedTags; } @@ -55,6 +65,46 @@ public Builder displayName(String displayName) { this.__explicitlySet__.add("displayName"); return this; } + /** A list of OCIDs of the subnets associated with the recovery service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private java.util.List subnets; + + /** + * A list of OCIDs of the subnets associated with the recovery service subnet. + * + * @param subnets the value to set + * @return this builder + */ + public Builder subnets(java.util.List subnets) { + this.subnets = subnets; + this.__explicitlySet__.add("subnets"); + return this; + } + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery + * Service subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can + * associate a maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if + * you want to remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @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"}} @@ -105,7 +155,11 @@ public Builder definedTags( public UpdateRecoveryServiceSubnetDetails build() { UpdateRecoveryServiceSubnetDetails model = new UpdateRecoveryServiceSubnetDetails( - this.displayName, this.freeformTags, this.definedTags); + this.displayName, + this.subnets, + this.nsgIds, + this.freeformTags, + this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -117,6 +171,12 @@ public Builder copy(UpdateRecoveryServiceSubnetDetails model) { if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } + if (model.wasPropertyExplicitlySet("subnets")) { + this.subnets(model.getSubnets()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } @@ -153,6 +213,42 @@ public String getDisplayName() { return displayName; } + /** A list of OCIDs of the subnets associated with the recovery service subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnets") + private final java.util.List subnets; + + /** + * A list of OCIDs of the subnets associated with the recovery service subnet. + * + * @return the value + */ + public java.util.List getSubnets() { + return subnets; + } + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; + + /** + * A list of network security group (NSG) OCIDs that are associated with the Recovery Service + * subnet. You can specify a maximum of 5 unique OCIDs, which implies that you can associate a + * maximum of 5 NSGs to each Recovery Service subnet. Specify an empty array if you want to + * remove all the associated NSGs from a Recovery Service subnet. See {@link + * NetworkSecurityGroup} for more information. + * + * @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"}} @@ -205,6 +301,8 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateRecoveryServiceSubnetDetails("); sb.append("super=").append(super.toString()); 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(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -222,6 +320,8 @@ public boolean equals(Object o) { UpdateRecoveryServiceSubnetDetails other = (UpdateRecoveryServiceSubnetDetails) 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.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -232,6 +332,8 @@ public int hashCode() { final int PRIME = 59; int result = 1; 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.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java new file mode 100644 index 00000000000..5dc7827c0c3 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CancelProtectedDatabaseDeletionRequest.java @@ -0,0 +1,247 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * CancelProtectedDatabaseDeletionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelProtectedDatabaseDeletionRequest + extends com.oracle.bmc.requests.BmcRequest { + + /** The protected database OCID. */ + private String protectedDatabaseId; + + /** The protected database OCID. */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * 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< + CancelProtectedDatabaseDeletionRequest, java.lang.Void> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The protected database OCID. */ + private String protectedDatabaseId = null; + + /** + * The protected database OCID. + * + * @param protectedDatabaseId the value to set + * @return this builder instance + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(CancelProtectedDatabaseDeletionRequest o) { + protectedDatabaseId(o.getProtectedDatabaseId()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of CancelProtectedDatabaseDeletionRequest as configured by this + * builder + * + *

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

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

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of CancelProtectedDatabaseDeletionRequest + */ + public CancelProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() { + CancelProtectedDatabaseDeletionRequest request = + new CancelProtectedDatabaseDeletionRequest(); + request.protectedDatabaseId = protectedDatabaseId; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new CancelProtectedDatabaseDeletionRequest(protectedDatabaseId, 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() + .protectedDatabaseId(protectedDatabaseId) + .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(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + 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 CancelProtectedDatabaseDeletionRequest)) { + return false; + } + + CancelProtectedDatabaseDeletionRequest other = (CancelProtectedDatabaseDeletionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && 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.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.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/CreateProtectedDatabaseRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateProtectedDatabaseRequest.java index 1546802ffde..4a6961bb6f1 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateProtectedDatabaseRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/CreateProtectedDatabaseRequest.java @@ -51,6 +51,71 @@ public String getOpcRetryToken() { public String getOpcRequestId() { return opcRequestId; } + /** + * Indicates if the request is to test the preparedness for creating a protected database, + * without actually creating a protected database. + * + *

If you set the {@code opcDryRun} option as {@code true}, then Recovery Service only + * performs a test run to check for any missing prerequisites or configurations required to + * create a protected database, and then returns error messages to warn you about any missing + * requirements. + * + *

If an error occurs, you can review, correct, and repeat the dry run until the {@code + * createProtectedDatabase} request does not return any errors. + * + *

These are the common issues that you can identify by performing a dry run of the {@code + * createProtectedDatabase} request: + * + *

The Recovery Service subnet has insufficient free IP addresses to support the required + * number of private endpoints. See, + * [troubleshooting](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/troubleshoot-backup-failures-recovery-service.html#GUID-05FA08B8-421D-4E52-B84B-7AFB84ADECF9) + * information * Recovery Service does not have permissions to manage the network resources in a + * chosen compartment * Recovery Service is out of capacity. See, [Service + * Limits](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm) for + * more information * Recovery Service resources exceed quota limits * A protected database, + * having the same database ID, already exists * The specified protection policy does not exist, + * or it is not in an Active state * The specified Recovery Service subnet does not exist, or it + * is not in an Active state + * + *

See, [Prerequisites for Using Recovery + * Service](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/backup-recover-recovery-service.html#GUID-B2ABF281-DFF8-4A4E-AC85-629801AAF36A) + * for more information. + */ + private Boolean opcDryRun; + + /** + * Indicates if the request is to test the preparedness for creating a protected database, + * without actually creating a protected database. + * + *

If you set the {@code opcDryRun} option as {@code true}, then Recovery Service only + * performs a test run to check for any missing prerequisites or configurations required to + * create a protected database, and then returns error messages to warn you about any missing + * requirements. + * + *

If an error occurs, you can review, correct, and repeat the dry run until the {@code + * createProtectedDatabase} request does not return any errors. + * + *

These are the common issues that you can identify by performing a dry run of the {@code + * createProtectedDatabase} request: + * + *

The Recovery Service subnet has insufficient free IP addresses to support the required + * number of private endpoints. See, + * [troubleshooting](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/troubleshoot-backup-failures-recovery-service.html#GUID-05FA08B8-421D-4E52-B84B-7AFB84ADECF9) + * information * Recovery Service does not have permissions to manage the network resources in a + * chosen compartment * Recovery Service is out of capacity. See, [Service + * Limits](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm) for + * more information * Recovery Service resources exceed quota limits * A protected database, + * having the same database ID, already exists * The specified protection policy does not exist, + * or it is not in an Active state * The specified Recovery Service subnet does not exist, or it + * is not in an Active state + * + *

See, [Prerequisites for Using Recovery + * Service](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/backup-recover-recovery-service.html#GUID-B2ABF281-DFF8-4A4E-AC85-629801AAF36A) + * for more information. + */ + public Boolean getOpcDryRun() { + return opcDryRun; + } /** * Alternative accessor for the body parameter. @@ -125,6 +190,76 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** + * Indicates if the request is to test the preparedness for creating a protected database, + * without actually creating a protected database. + * + *

If you set the {@code opcDryRun} option as {@code true}, then Recovery Service only + * performs a test run to check for any missing prerequisites or configurations required to + * create a protected database, and then returns error messages to warn you about any + * missing requirements. + * + *

If an error occurs, you can review, correct, and repeat the dry run until the {@code + * createProtectedDatabase} request does not return any errors. + * + *

These are the common issues that you can identify by performing a dry run of the + * {@code createProtectedDatabase} request: + * + *

The Recovery Service subnet has insufficient free IP addresses to support the required + * number of private endpoints. See, + * [troubleshooting](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/troubleshoot-backup-failures-recovery-service.html#GUID-05FA08B8-421D-4E52-B84B-7AFB84ADECF9) + * information * Recovery Service does not have permissions to manage the network resources + * in a chosen compartment * Recovery Service is out of capacity. See, [Service + * Limits](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm) + * for more information * Recovery Service resources exceed quota limits * A protected + * database, having the same database ID, already exists * The specified protection policy + * does not exist, or it is not in an Active state * The specified Recovery Service subnet + * does not exist, or it is not in an Active state + * + *

See, [Prerequisites for Using Recovery + * Service](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/backup-recover-recovery-service.html#GUID-B2ABF281-DFF8-4A4E-AC85-629801AAF36A) + * for more information. + */ + private Boolean opcDryRun = null; + + /** + * Indicates if the request is to test the preparedness for creating a protected database, + * without actually creating a protected database. + * + *

If you set the {@code opcDryRun} option as {@code true}, then Recovery Service only + * performs a test run to check for any missing prerequisites or configurations required to + * create a protected database, and then returns error messages to warn you about any + * missing requirements. + * + *

If an error occurs, you can review, correct, and repeat the dry run until the {@code + * createProtectedDatabase} request does not return any errors. + * + *

These are the common issues that you can identify by performing a dry run of the + * {@code createProtectedDatabase} request: + * + *

The Recovery Service subnet has insufficient free IP addresses to support the required + * number of private endpoints. See, + * [troubleshooting](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/troubleshoot-backup-failures-recovery-service.html#GUID-05FA08B8-421D-4E52-B84B-7AFB84ADECF9) + * information * Recovery Service does not have permissions to manage the network resources + * in a chosen compartment * Recovery Service is out of capacity. See, [Service + * Limits](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/servicelimits.htm) + * for more information * Recovery Service resources exceed quota limits * A protected + * database, having the same database ID, already exists * The specified protection policy + * does not exist, or it is not in an Active state * The specified Recovery Service subnet + * does not exist, or it is not in an Active state + * + *

See, [Prerequisites for Using Recovery + * Service](https://docs.oracle.com/en/cloud/paas/recovery-service/dbrsu/backup-recover-recovery-service.html#GUID-B2ABF281-DFF8-4A4E-AC85-629801AAF36A) + * for more information. + * + * @param opcDryRun the value to set + * @return this builder instance + */ + public Builder opcDryRun(Boolean opcDryRun) { + this.opcDryRun = opcDryRun; + return this; + } + /** * Set the invocation callback for the request to be built. * @@ -158,6 +293,7 @@ public Builder copy(CreateProtectedDatabaseRequest o) { createProtectedDatabaseDetails(o.getCreateProtectedDatabaseDetails()); opcRetryToken(o.getOpcRetryToken()); opcRequestId(o.getOpcRequestId()); + opcDryRun(o.getOpcDryRun()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; @@ -207,9 +343,10 @@ public CreateProtectedDatabaseRequest buildWithoutInvocationCallback() { request.createProtectedDatabaseDetails = createProtectedDatabaseDetails; request.opcRetryToken = opcRetryToken; request.opcRequestId = opcRequestId; + request.opcDryRun = opcDryRun; return request; // new CreateProtectedDatabaseRequest(createProtectedDatabaseDetails, opcRetryToken, - // opcRequestId); + // opcRequestId, opcDryRun); } } @@ -222,7 +359,8 @@ public Builder toBuilder() { return new Builder() .createProtectedDatabaseDetails(createProtectedDatabaseDetails) .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId); + .opcRequestId(opcRequestId) + .opcDryRun(opcDryRun); } /** @@ -243,6 +381,7 @@ public String toString() { .append(String.valueOf(this.createProtectedDatabaseDetails)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",opcDryRun=").append(String.valueOf(this.opcDryRun)); sb.append(")"); return sb.toString(); } @@ -261,7 +400,8 @@ public boolean equals(Object o) { && java.util.Objects.equals( this.createProtectedDatabaseDetails, other.createProtectedDatabaseDetails) && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.opcDryRun, other.opcDryRun); } @Override @@ -277,6 +417,7 @@ public int hashCode() { (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = (result * PRIME) + (this.opcDryRun == null ? 43 : this.opcDryRun.hashCode()); return result; } } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteProtectedDatabaseRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteProtectedDatabaseRequest.java index 3e2a084c50c..5b1d8e61240 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteProtectedDatabaseRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/DeleteProtectedDatabaseRequest.java @@ -22,6 +22,25 @@ public class DeleteProtectedDatabaseRequest public String getProtectedDatabaseId() { return protectedDatabaseId; } + /** + * Defines a preferred schedule to delete a protected database after you terminate the source + * database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can + * occur 72 hours (3 days) after the source database is terminated . * The alternate schedule is + * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database + * only after the policy-defined backup retention period expires. + */ + private com.oracle.bmc.recovery.model.DeletionSchedule deletionSchedule; + + /** + * Defines a preferred schedule to delete a protected database after you terminate the source + * database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can + * occur 72 hours (3 days) after the source database is terminated . * The alternate schedule is + * DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database + * only after the policy-defined backup retention period expires. + */ + public com.oracle.bmc.recovery.model.DeletionSchedule getDeletionSchedule() { + return deletionSchedule; + } /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code * if-match} parameter to the value of the etag from a previous GET or POST response for that @@ -67,6 +86,33 @@ public Builder protectedDatabaseId(String protectedDatabaseId) { return this; } + /** + * Defines a preferred schedule to delete a protected database after you terminate the + * source database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete + * operation can occur 72 hours (3 days) after the source database is terminated . * The + * alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to + * delete a protected database only after the policy-defined backup retention period + * expires. + */ + private com.oracle.bmc.recovery.model.DeletionSchedule deletionSchedule = null; + + /** + * Defines a preferred schedule to delete a protected database after you terminate the + * source database. * The default schedule is DELETE_AFTER_72_HOURS, so that the delete + * operation can occur 72 hours (3 days) after the source database is terminated . * The + * alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to + * delete a protected database only after the policy-defined backup retention period + * expires. + * + * @param deletionSchedule the value to set + * @return this builder instance + */ + public Builder deletionSchedule( + com.oracle.bmc.recovery.model.DeletionSchedule deletionSchedule) { + this.deletionSchedule = deletionSchedule; + return this; + } + /** * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the * {@code if-match} parameter to the value of the etag from a previous GET or POST response @@ -134,6 +180,7 @@ public Builder retryConfiguration( */ public Builder copy(DeleteProtectedDatabaseRequest o) { protectedDatabaseId(o.getProtectedDatabaseId()); + deletionSchedule(o.getDeletionSchedule()); ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); invocationCallback(o.getInvocationCallback()); @@ -171,10 +218,12 @@ public DeleteProtectedDatabaseRequest build() { public DeleteProtectedDatabaseRequest buildWithoutInvocationCallback() { DeleteProtectedDatabaseRequest request = new DeleteProtectedDatabaseRequest(); request.protectedDatabaseId = protectedDatabaseId; + request.deletionSchedule = deletionSchedule; request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; return request; - // new DeleteProtectedDatabaseRequest(protectedDatabaseId, ifMatch, opcRequestId); + // new DeleteProtectedDatabaseRequest(protectedDatabaseId, deletionSchedule, ifMatch, + // opcRequestId); } } @@ -186,6 +235,7 @@ public DeleteProtectedDatabaseRequest buildWithoutInvocationCallback() { public Builder toBuilder() { return new Builder() .protectedDatabaseId(protectedDatabaseId) + .deletionSchedule(deletionSchedule) .ifMatch(ifMatch) .opcRequestId(opcRequestId); } @@ -205,6 +255,7 @@ public String toString() { sb.append("("); sb.append("super=").append(super.toString()); sb.append(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",deletionSchedule=").append(String.valueOf(this.deletionSchedule)); sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(")"); @@ -223,6 +274,7 @@ public boolean equals(Object o) { DeleteProtectedDatabaseRequest other = (DeleteProtectedDatabaseRequest) o; return super.equals(o) && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals(this.deletionSchedule, other.deletionSchedule) && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); } @@ -236,6 +288,9 @@ public int hashCode() { + (this.protectedDatabaseId == null ? 43 : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.deletionSchedule == null ? 43 : this.deletionSchedule.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/ListRecoveryServiceSubnetsRequest.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListRecoveryServiceSubnetsRequest.java index 5f7c4b41aa7..7016ad8618d 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListRecoveryServiceSubnetsRequest.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ListRecoveryServiceSubnetsRequest.java @@ -22,16 +22,10 @@ public class ListRecoveryServiceSubnetsRequest public String getCompartmentId() { return compartmentId; } - /** - * A filter to return only the resources that match the specified lifecycle state. Allowed - * values are: - CREATING - UPDATING - ACTIVE - DELETING - DELETED - FAILED - */ + /** 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. Allowed - * values are: - CREATING - UPDATING - ACTIVE - DELETING - DELETED - FAILED - */ + /** A filter to return only the resources that match the specified lifecycle state. */ public com.oracle.bmc.recovery.model.LifecycleState getLifecycleState() { return lifecycleState; } @@ -173,15 +167,11 @@ public Builder compartmentId(String compartmentId) { return this; } - /** - * A filter to return only the resources that match the specified lifecycle state. Allowed - * values are: - CREATING - UPDATING - ACTIVE - DELETING - DELETED - FAILED - */ + /** 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. Allowed - * values are: - CREATING - UPDATING - ACTIVE - DELETING - DELETED - FAILED + * A filter to return only the resources that match the specified lifecycle state. * * @param lifecycleState the value to set * @return this builder instance 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 new file mode 100644 index 00000000000..2de59da4066 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/requests/ScheduleProtectedDatabaseDeletionRequest.java @@ -0,0 +1,316 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or 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 + * ScheduleProtectedDatabaseDeletionRequest. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ScheduleProtectedDatabaseDeletionRequest + extends com.oracle.bmc.requests.BmcRequest< + com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails> { + + /** The protected database OCID. */ + private String protectedDatabaseId; + + /** The protected database OCID. */ + public String getProtectedDatabaseId() { + return protectedDatabaseId; + } + /** The details for scheduling deletion of the protected database */ + private com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails + scheduleProtectedDatabaseDeletionDetails; + + /** The details for scheduling deletion of the protected database */ + public com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails + getScheduleProtectedDatabaseDeletionDetails() { + return scheduleProtectedDatabaseDeletionDetails; + } + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * if-match} parameter to the value of the etag from a previous GET or POST response for that + * 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.ScheduleProtectedDatabaseDeletionDetails getBody$() { + return scheduleProtectedDatabaseDeletionDetails; + } + + public static class Builder + implements com.oracle.bmc.requests.BmcRequest.Builder< + ScheduleProtectedDatabaseDeletionRequest, + com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails> { + private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; + private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + + /** The protected database OCID. */ + private String protectedDatabaseId = null; + + /** + * The protected database OCID. + * + * @param protectedDatabaseId the value to set + * @return this builder instance + */ + public Builder protectedDatabaseId(String protectedDatabaseId) { + this.protectedDatabaseId = protectedDatabaseId; + return this; + } + + /** The details for scheduling deletion of the protected database */ + private com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails + scheduleProtectedDatabaseDeletionDetails = null; + + /** + * The details for scheduling deletion of the protected database + * + * @param scheduleProtectedDatabaseDeletionDetails the value to set + * @return this builder instance + */ + public Builder scheduleProtectedDatabaseDeletionDetails( + com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails + scheduleProtectedDatabaseDeletionDetails) { + this.scheduleProtectedDatabaseDeletionDetails = + scheduleProtectedDatabaseDeletionDetails; + return this; + } + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; + + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code if-match} parameter to the value of the etag from a previous GET or POST response + * for that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + * + * @param ifMatch the value to set + * @return this builder instance + */ + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; + return this; + } + + /** Unique identifier for the request. */ + private String opcRequestId = null; + + /** + * Unique identifier for the request. + * + * @param opcRequestId the value to set + * @return this builder instance + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Set the invocation callback for the request to be built. + * + * @param invocationCallback the invocation callback to be set for the request + * @return this builder instance + */ + public Builder invocationCallback( + com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { + this.invocationCallback = invocationCallback; + return this; + } + + /** + * Set the retry configuration for the request to be built. + * + * @param retryConfiguration the retry configuration to be used for the request + * @return this builder instance + */ + public Builder retryConfiguration( + com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { + this.retryConfiguration = retryConfiguration; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + public Builder copy(ScheduleProtectedDatabaseDeletionRequest o) { + protectedDatabaseId(o.getProtectedDatabaseId()); + scheduleProtectedDatabaseDeletionDetails( + o.getScheduleProtectedDatabaseDeletionDetails()); + ifMatch(o.getIfMatch()); + opcRequestId(o.getOpcRequestId()); + invocationCallback(o.getInvocationCallback()); + retryConfiguration(o.getRetryConfiguration()); + return this; + } + + /** + * Build the instance of ScheduleProtectedDatabaseDeletionRequest as configured by this + * builder + * + *

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

This is the preferred method to build an instance. + * + * @return instance of ScheduleProtectedDatabaseDeletionRequest + */ + public ScheduleProtectedDatabaseDeletionRequest build() { + ScheduleProtectedDatabaseDeletionRequest 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.ScheduleProtectedDatabaseDeletionDetails body) { + scheduleProtectedDatabaseDeletionDetails(body); + return this; + } + + /** + * Build the instance of ScheduleProtectedDatabaseDeletionRequest as configured by this + * builder + * + *

Note that this method does not take calls to {@link + * Builder#invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)} into account, + * while the method {@link Builder#build} does + * + * @return instance of ScheduleProtectedDatabaseDeletionRequest + */ + public ScheduleProtectedDatabaseDeletionRequest buildWithoutInvocationCallback() { + ScheduleProtectedDatabaseDeletionRequest request = + new ScheduleProtectedDatabaseDeletionRequest(); + request.protectedDatabaseId = protectedDatabaseId; + request.scheduleProtectedDatabaseDeletionDetails = + scheduleProtectedDatabaseDeletionDetails; + request.ifMatch = ifMatch; + request.opcRequestId = opcRequestId; + return request; + // new ScheduleProtectedDatabaseDeletionRequest(protectedDatabaseId, + // scheduleProtectedDatabaseDeletionDetails, 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() + .protectedDatabaseId(protectedDatabaseId) + .scheduleProtectedDatabaseDeletionDetails(scheduleProtectedDatabaseDeletionDetails) + .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(",protectedDatabaseId=").append(String.valueOf(this.protectedDatabaseId)); + sb.append(",scheduleProtectedDatabaseDeletionDetails=") + .append(String.valueOf(this.scheduleProtectedDatabaseDeletionDetails)); + 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 ScheduleProtectedDatabaseDeletionRequest)) { + return false; + } + + ScheduleProtectedDatabaseDeletionRequest other = + (ScheduleProtectedDatabaseDeletionRequest) o; + return super.equals(o) + && java.util.Objects.equals(this.protectedDatabaseId, other.protectedDatabaseId) + && java.util.Objects.equals( + this.scheduleProtectedDatabaseDeletionDetails, + other.scheduleProtectedDatabaseDeletionDetails) + && 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.protectedDatabaseId == null + ? 43 + : this.protectedDatabaseId.hashCode()); + result = + (result * PRIME) + + (this.scheduleProtectedDatabaseDeletionDetails == null + ? 43 + : this.scheduleProtectedDatabaseDeletionDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelProtectedDatabaseDeletionResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelProtectedDatabaseDeletionResponse.java new file mode 100644 index 00000000000..52a63641447 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/CancelProtectedDatabaseDeletionResponse.java @@ -0,0 +1,138 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class CancelProtectedDatabaseDeletionResponse 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 CancelProtectedDatabaseDeletionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + CancelProtectedDatabaseDeletionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(CancelProtectedDatabaseDeletionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public CancelProtectedDatabaseDeletionResponse build() { + return new CancelProtectedDatabaseDeletionResponse( + __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 CancelProtectedDatabaseDeletionResponse)) { + return false; + } + + CancelProtectedDatabaseDeletionResponse other = (CancelProtectedDatabaseDeletionResponse) 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-recovery/src/main/java/com/oracle/bmc/recovery/responses/FetchProtectedDatabaseConfigurationResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/FetchProtectedDatabaseConfigurationResponse.java index 34283890d98..de5bbf8232b 100644 --- a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/FetchProtectedDatabaseConfigurationResponse.java +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/FetchProtectedDatabaseConfigurationResponse.java @@ -37,6 +37,30 @@ public String getOpcRequestId() { return opcRequestId; } + /** Contains filename passed in header. */ + private String opcFilename; + + /** + * Contains filename passed in header. + * + * @return the value + */ + public String getOpcFilename() { + return opcFilename; + } + + /** Contains file checksum passed in header. */ + private String opcChecksum; + + /** + * Contains file checksum passed in header. + * + * @return the value + */ + public String getOpcChecksum() { + return opcChecksum; + } + /** The returned {@code java.io.InputStream} instance. */ private java.io.InputStream inputStream; @@ -54,6 +78,8 @@ public java.io.InputStream getInputStream() { "headers", "etag", "opcRequestId", + "opcFilename", + "opcChecksum", "inputStream" }) private FetchProtectedDatabaseConfigurationResponse( @@ -61,10 +87,14 @@ private FetchProtectedDatabaseConfigurationResponse( java.util.Map> headers, String etag, String opcRequestId, + String opcFilename, + String opcChecksum, java.io.InputStream inputStream) { super(__httpStatusCode__, headers); this.etag = etag; this.opcRequestId = opcRequestId; + this.opcFilename = opcFilename; + this.opcChecksum = opcChecksum; this.inputStream = inputStream; } @@ -119,6 +149,34 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** Contains filename passed in header. */ + private String opcFilename; + + /** + * Contains filename passed in header. + * + * @param opcFilename the value to set + * @return this builder + */ + public Builder opcFilename(String opcFilename) { + this.opcFilename = opcFilename; + return this; + } + + /** Contains file checksum passed in header. */ + private String opcChecksum; + + /** + * Contains file checksum passed in header. + * + * @param opcChecksum the value to set + * @return this builder + */ + public Builder opcChecksum(String opcChecksum) { + this.opcChecksum = opcChecksum; + return this; + } + /** The returned {@code java.io.InputStream} instance. */ private java.io.InputStream inputStream; @@ -144,6 +202,8 @@ public Builder copy(FetchProtectedDatabaseConfigurationResponse o) { headers(o.getHeaders()); etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); + opcFilename(o.getOpcFilename()); + opcChecksum(o.getOpcChecksum()); inputStream(o.getInputStream()); return this; @@ -157,7 +217,13 @@ public Builder copy(FetchProtectedDatabaseConfigurationResponse o) { @Override public FetchProtectedDatabaseConfigurationResponse build() { return new FetchProtectedDatabaseConfigurationResponse( - __httpStatusCode__, headers, etag, opcRequestId, inputStream); + __httpStatusCode__, + headers, + etag, + opcRequestId, + opcFilename, + opcChecksum, + inputStream); } } @@ -177,6 +243,8 @@ 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(",opcFilename=").append(String.valueOf(opcFilename)); + sb.append(",opcChecksum=").append(String.valueOf(opcChecksum)); sb.append(",inputStream=").append(String.valueOf(inputStream)); sb.append(")"); return sb.toString(); @@ -196,6 +264,8 @@ 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.opcFilename, other.opcFilename) + && java.util.Objects.equals(this.opcChecksum, other.opcChecksum) && java.util.Objects.equals(this.inputStream, other.inputStream); } @@ -205,6 +275,8 @@ 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.opcFilename == null ? 43 : this.opcFilename.hashCode()); + result = (result * PRIME) + (this.opcChecksum == null ? 43 : this.opcChecksum.hashCode()); result = (result * PRIME) + (this.inputStream == null ? 43 : this.inputStream.hashCode()); return result; } diff --git a/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ScheduleProtectedDatabaseDeletionResponse.java b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ScheduleProtectedDatabaseDeletionResponse.java new file mode 100644 index 00000000000..14e7c5fe9e7 --- /dev/null +++ b/bmc-recovery/src/main/java/com/oracle/bmc/recovery/responses/ScheduleProtectedDatabaseDeletionResponse.java @@ -0,0 +1,180 @@ +/** + * Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved. + * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. + */ +package com.oracle.bmc.recovery.responses; + +import com.oracle.bmc.recovery.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210216") +public class ScheduleProtectedDatabaseDeletionResponse + 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 ScheduleProtectedDatabaseDeletionResponse( + int __httpStatusCode__, + java.util.Map> headers, + String opcWorkRequestId, + String opcRequestId) { + super(__httpStatusCode__, headers); + this.opcWorkRequestId = opcWorkRequestId; + this.opcRequestId = opcRequestId; + } + + public static class Builder + implements com.oracle.bmc.responses.BmcResponse.Builder< + ScheduleProtectedDatabaseDeletionResponse> { + private int __httpStatusCode__; + + @Override + public Builder __httpStatusCode__(int __httpStatusCode__) { + this.__httpStatusCode__ = __httpStatusCode__; + return this; + } + + private java.util.Map> headers; + + @Override + public Builder headers(java.util.Map> headers) { + this.headers = headers; + return this; + } + + /** Unique Oracle-assigned identifier of the work request. */ + private String opcWorkRequestId; + + /** + * Unique Oracle-assigned identifier of the work request. + * + * @param opcWorkRequestId the value to set + * @return this builder + */ + public Builder opcWorkRequestId(String opcWorkRequestId) { + this.opcWorkRequestId = opcWorkRequestId; + return this; + } + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + */ + private String opcRequestId; + + /** + * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a + * particular request, please provide the request ID. + * + * @param opcRequestId the value to set + * @return this builder + */ + public Builder opcRequestId(String opcRequestId) { + this.opcRequestId = opcRequestId; + return this; + } + + /** + * Copy method to populate the builder with values from the given instance. + * + * @return this builder instance + */ + @Override + public Builder copy(ScheduleProtectedDatabaseDeletionResponse o) { + __httpStatusCode__(o.get__httpStatusCode__()); + headers(o.getHeaders()); + opcWorkRequestId(o.getOpcWorkRequestId()); + opcRequestId(o.getOpcRequestId()); + + return this; + } + + /** + * Build the response object. + * + * @return the response object + */ + @Override + public ScheduleProtectedDatabaseDeletionResponse build() { + return new ScheduleProtectedDatabaseDeletionResponse( + __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 ScheduleProtectedDatabaseDeletionResponse)) { + return false; + } + + ScheduleProtectedDatabaseDeletionResponse other = + (ScheduleProtectedDatabaseDeletionResponse) o; + return super.equals(o) + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + return result; + } +} diff --git a/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json b/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json index 504b72d7a95..8c9e78e5483 100644 --- a/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json +++ b/bmc-recovery/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-recovery/reflect-config.json @@ -95,6 +95,12 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.DeletionSchedule", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.FetchProtectedDatabaseConfigurationDetails", @@ -321,6 +327,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.recovery.model.ScheduleProtectedDatabaseDeletionDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.recovery.model.SortOrder", diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index 857f98dd6c5..54ba64b2998 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index a2a81a7b841..b0045c4b86d 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 8cd8197143b..cdca8e443ac 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 7023462b652..ef9a5e1a07c 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 81b932768fa..c6bd0d7de1b 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 5497704e788..a58b5a567a5 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 3ca955b96e8..4ce294c725e 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 58729cc07d2..810f0ee08c9 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index d369f152a26..301cf4a9fb8 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.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 0a9f2d25b30..cb67d6a27cd 100644 --- a/bmc-shaded/bmc-shaded-full/pom.xml +++ b/bmc-shaded/bmc-shaded-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk-shaded - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 2286aa72fc1..5c3df4daece 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 5951e36c8d0..6fe89dd5912 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index 0cdfd1b3831..4dc342b5381 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 2c0b25c70f6..c24f07fd8ec 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 2237bbcf662..d02411f50f4 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 413ac67a280..acf129c55ed 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 12f7a63f8e2..6ce2015d80d 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 968408b9668..76ca8941457 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.40.0 + 3.41.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index 69d13d6b31d..f378ad6e7e7 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 230def316fe..5c8d5a8b60e 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 4fcb99dc4e8..30a18e2a933 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 3f460b51ec3..570e2d7faa6 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 384628dde1e..16f2482e71f 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 3ad9d04f69f..4858bf29bd7 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 150c1af8652..8f5a21da88e 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index 2ccf907bcd0..e6c790857f9 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.40.0 + 3.41.0 diff --git a/pom.xml b/pom.xml index 161d85c6a5b..a61ecdbc80f 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.40.0 + 3.41.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure