diff --git a/CHANGELOG.md b/CHANGELOG.md index fd2dede166d..022e6bba068 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.44.0 - 2024-06-25 +### Added +- Support for MySQL to MySQL homogeneous migrations in the Database Migration service +- Support for manual cross-region backups in the MySQL Heatwave service + +### Breaking Changes +- The models `AdvisorSettings`, `Agent`, `AgentCollection`, `AgentImageCollection`, `AgentImageSummary`, `AgentSummary`, `AwsS3DataTransferMediumDetails`, `AwsS3Details`, `ChangeAgentCompartmentDetails`, `ConnectDescriptor`, `CreateAdvisorSettings`, `CreateAwsS3Details`, `CreateConnectDescriptor`, `CreateDataPumpSettings`, `CreateDataTransferMediumDetails`, `CreateDatabaseLinkDetails`, `CreateDumpTransferDetails`, `CreateGoldenGateDetails`, `CreateGoldenGateHub`, `CreateGoldenGateServiceDetails`, `CreateGoldenGateServiceDetails`, `CreatePrivateEndpoint`, `CreateSshDetails`, `CreateVaultDetails`, `DataPumpJobMode`, `DataPumpSettings`, `DataTransferMediumDetails`, `DataTransferMediumDetailsV2`, `DatabaseConnectionTypes`, `DatabaseCredentials`, `DatabaseLinkDetails`, `DatabaseManualConnectionSubTypes`, `DatabaseObject`, `DbLinkDataTransferMediumDetails`, `DumpTransferDetails`, `GoldenGateDetails`, `GoldenGateHub`, `GoldenGateServiceDetails`, `GoldenGateSettings`, `MigrationObjectSummary`, `NfsDataTransferMediumDetails`, `ObjectStorageDataTransferMediumDetails`, `PrivateEndpointDetails`, `SshDetails`, `UpdateAdvisorSettings`, `UpdateAgentDetails`, `UpdateAwsS3Details`, `UpdateConnectDescriptor`, `UpdateDataPumpSettings`, `UpdateDataTransferMediumDetails`, `UpdateDatabaseLinkDetails`, `UpdateDumpTransferDetails`, `UpdateGoldenGateDetails`, `UpdateGoldenGateHub`, `UpdateGoldenGateServiceDetails`, `UpdateGoldenGateSettings`, `UpdatePrivateEndpoint`, `UpdateSshDetails`, `UpdateVaultDetails`, `VaultDetails`, `ChangeAgentCompartmentRequest`, `DeleteAgentRequest`, `GetAgentRequest`, `ListAgentImagesRequest`, `ListAgentsRequest`, `UpdateAgentRequest`, `ChangeAgentCompartmentResponse`, `DeleteAgentResponse`, `GetAgentResponse`, `ListAgentImagesResponse`, `ListAgentsResponse` and `UpdateAgentResponse` were removed in the Database Migration service +- The operations `changeAgentCompartment`, `deleteAgent`, `getAgent`, `listAgentImages`, `listAgents`, and `updateAgent` were removed in the Database Migration service +- The waiters `forAgent` were removed in the Database Migration service +- The type of parameter `targetStates` was changed from an array of `LifecycleStates` to an array of `Connection.LifecycleState` in the waiters `forConnection` in the Database Migration service +- The properties `agentId`, `sourceContainerDatabaseConnectionId`, `excludeObjects`, `includeObjects` and `vaultDetails` were removed from the model `CloneMigrationDetails` in the Database Migration service +- The properties `adminCredentials`, `connectDescriptor`, `certificateTdn`, `credentialsSecretId`, `databaseId`, `databaseType`, `isDedicated`, `manualDatabaseSubType`, `privateEndpoint`, `replicationCredentials`, `sshDetails` and `vaultDetails` were removed in the model `Connection` in the Database Migration service +- The properties `databaseId`, `databaseType`, `isDedicated`, and `manualDatabaseSubType` were removed in the model `ConnectionSummary` in the Database Migration service +- The properties `adminCredentials`, `certificateTdn`, `connectDescriptor`, `databaseId`, `databaseType`, `manualDatabaseSubType`, `privateEndpoint`, `replicationCredential`, `sshDetails`, `tlsKeystore`, `tlsWallet` and `vaultDetails` were removed from the model CreateConnectionDetails in the Database Migration service +- The properties `advisorSettings`, `agentId`, `csvText`, `dataTransferMediumDetails`, `dataTransferMediumDetailsV2`, `datapumpSettings`, `dumpTransferDetails`, `excludeObjects`, `goldenGateDetails`, `goldenGateServiceDetails`, `includeObjects`, `sourceContainerDatabaseConnectionId` and vaultDetails were removed in the model CreateMigrationDetails in the Database Migration service +- The properties `mapParallelism`, `maxApplyParallelism`, and `minApplyParallelism` were removed in the models `Replicat`, `UpdateReplicat`, and `CreateReplicat` in the Database Migration service +- The properties `advisorSettings`, `agentId`, `credentialsSecretId`, `dataTransferMediumDetails`, `dataTransferMediumDetailsV2`, `datapumpSettings`, `dumpTransferDetails`, `excludeObjects`, `goldenGateDetails`, `goldenGateServiceDetails`, `includeObjects`, `sourceContainerDatabaseConnectionId`, and `vaultDetails` were removed in the model `Migration` in the Database Migration service +- The properties `csvText` and `items` were removed in the model `MigrationObjectCollection` in the Database Migration service +- The properties `agentId`, `sourceContainerDatabaseConnectionId` and `vaultDetails` were removed in the model MigrationSummary in the Database Migration service +- The properties `adminCredentials`, `certificateTdn`, `connectDescriptor`, `databaseId`, `privateEndpoint`, `replicationCredential`, `sshDetails`, `tlsKeystore`, `tlsWallet` and `vaultDetails` were removed from the model UpdateConnectionDetails in the Database Migration service +- The properties `advisorSettings`, `agentId`, `dataTransferMediumDetails`, `dataTransferMediumDetailsV2`, `datapumpSettings`, `dumpTransferDetails`, `excludeObjects`, `goldenGateDetails`, `goldenGateServiceDetails`, `includeObjects`, `sourceContainerDatabaseConnectionId` and `vaultDetails` were removed in the model `UpdateMigrationDetails` in the Database Migration service +- The enum value `UnknownEnumValue` was removed in the enum `LifecycleStates` in the model `LifecycleStates` in the Database Migration service +- The enum values `OdmsInitializeGgs` and `OdmsValidateGgService` were removed in the enum `OdmsJobPhases` in the model `OdmsJobPhases` in the Database Migration service +- The type of property `lifecycleState` was changed from `LifecycleStates` to `Connection.LifecycleState` in the models `Connection` and `ConnectionSummary` in the Database Migration service + ## 3.43.2 - 2024-06-18 ### Added - Support for public connection urls and public endpoints for autonomous databases in the Database service diff --git a/bmc-accessgovernancecp/pom.xml b/bmc-accessgovernancecp/pom.xml index 11bc3c564bb..fc3caf338a0 100644 --- a/bmc-accessgovernancecp/pom.xml +++ b/bmc-accessgovernancecp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-accessgovernancecp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.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 dbb98e593a3..e91b6b50802 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.43.2 + 3.44.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.43.2 + 3.44.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.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 08437e68efb..22cc1175017 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.43.2 + 3.44.0 ../pom.xml @@ -17,14 +17,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.43.2 + 3.44.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.43.2 + 3.44.0 pom import diff --git a/bmc-addons/bmc-apache-connector-provider/pom.xml b/bmc-addons/bmc-apache-connector-provider/pom.xml index bda80335cba..21e18a4718a 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.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-addons/bmc-oke-workload-identity/pom.xml b/bmc-addons/bmc-oke-workload-identity/pom.xml index bf48d4044e3..2d27f14e0f1 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.43.2 + 3.44.0 4.0.0 @@ -38,25 +38,25 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 compile com.oracle.oci.sdk oci-java-sdk-core - 3.43.2 + 3.44.0 test com.oracle.oci.sdk oci-java-sdk-identity - 3.43.2 + 3.44.0 test com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.43.2 + 3.44.0 test diff --git a/bmc-addons/bmc-resteasy-client-configurator/pom.xml b/bmc-addons/bmc-resteasy-client-configurator/pom.xml index 26fde71df7c..459edd4aeb4 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.43.2 + 3.44.0 ../pom.xml @@ -23,7 +23,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.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 c3774b6a1d1..6b092b8a49d 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.43.2 + 3.44.0 ../pom.xml 4.0.0 @@ -39,13 +39,13 @@ com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.43.2 + 3.44.0 compile com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.43.2 + 3.44.0 compile diff --git a/bmc-addons/bmc-sasl/pom.xml b/bmc-addons/bmc-sasl/pom.xml index ccf0e2ea932..99f6fa3ed9d 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.43.2 + 3.44.0 ../pom.xml @@ -60,7 +60,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-addons/bmc-sse-support-jersey3/pom.xml b/bmc-addons/bmc-sse-support-jersey3/pom.xml index 0370a68a092..b59d7a290d1 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.43.2 + 3.44.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.43.2 + 3.44.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.43.2 + 3.44.0 diff --git a/bmc-addons/bmc-sse-support/pom.xml b/bmc-addons/bmc-sse-support/pom.xml index 3dec9083ce3..4239c6f5408 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.43.2 + 3.44.0 ../pom.xml 4.0.0 @@ -150,12 +150,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.43.2 + 3.44.0 test @@ -164,7 +164,7 @@ but the code in it needs it. --> com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 diff --git a/bmc-addons/pom.xml b/bmc-addons/pom.xml index 91f4e696154..058e12e709c 100644 --- a/bmc-addons/pom.xml +++ b/bmc-addons/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml diff --git a/bmc-adm/pom.xml b/bmc-adm/pom.xml index a63e4f4b5ab..6f139e9baa7 100644 --- a/bmc-adm/pom.xml +++ b/bmc-adm/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-adm @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-aianomalydetection/pom.xml b/bmc-aianomalydetection/pom.xml index 52cc362968a..61229697e9e 100644 --- a/bmc-aianomalydetection/pom.xml +++ b/bmc-aianomalydetection/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-aianomalydetection @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-aidocument/pom.xml b/bmc-aidocument/pom.xml index 178c3e3a82c..1e6cbf78b5f 100644 --- a/bmc-aidocument/pom.xml +++ b/bmc-aidocument/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-aidocument @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-ailanguage/pom.xml b/bmc-ailanguage/pom.xml index 54d3d1f0fb5..af7414309c6 100644 --- a/bmc-ailanguage/pom.xml +++ b/bmc-ailanguage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-ailanguage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-aispeech/pom.xml b/bmc-aispeech/pom.xml index 7d6105e3cea..1300e27e78e 100644 --- a/bmc-aispeech/pom.xml +++ b/bmc-aispeech/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-aispeech @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-aivision/pom.xml b/bmc-aivision/pom.xml index c5470bcd5c8..31f5f8285d6 100644 --- a/bmc-aivision/pom.xml +++ b/bmc-aivision/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-aivision @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-analytics/pom.xml b/bmc-analytics/pom.xml index e8f0d14b3a0..cd7cc2dfe10 100644 --- a/bmc-analytics/pom.xml +++ b/bmc-analytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-analytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-announcementsservice/pom.xml b/bmc-announcementsservice/pom.xml index 09c4d63a31f..628301d1b47 100644 --- a/bmc-announcementsservice/pom.xml +++ b/bmc-announcementsservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-announcementsservice @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-apigateway/pom.xml b/bmc-apigateway/pom.xml index 8889c8e954a..2dde85b77d6 100644 --- a/bmc-apigateway/pom.xml +++ b/bmc-apigateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-apigateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-apmconfig/pom.xml b/bmc-apmconfig/pom.xml index 8a45edba252..ee33d1d6218 100644 --- a/bmc-apmconfig/pom.xml +++ b/bmc-apmconfig/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-apmconfig @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-apmcontrolplane/pom.xml b/bmc-apmcontrolplane/pom.xml index 54b57a98ac0..987e5a4a2db 100644 --- a/bmc-apmcontrolplane/pom.xml +++ b/bmc-apmcontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-apmcontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-apmsynthetics/pom.xml b/bmc-apmsynthetics/pom.xml index 74e604e5f6a..b0d52e52a7c 100644 --- a/bmc-apmsynthetics/pom.xml +++ b/bmc-apmsynthetics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-apmsynthetics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-apmtraces/pom.xml b/bmc-apmtraces/pom.xml index 9167c7c3198..7932aa8464d 100644 --- a/bmc-apmtraces/pom.xml +++ b/bmc-apmtraces/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-apmtraces @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-appmgmtcontrol/pom.xml b/bmc-appmgmtcontrol/pom.xml index d0699846252..a2f36d2bed6 100644 --- a/bmc-appmgmtcontrol/pom.xml +++ b/bmc-appmgmtcontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-appmgmtcontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-artifacts/pom.xml b/bmc-artifacts/pom.xml index 57fa0ed0817..b0f065969d6 100644 --- a/bmc-artifacts/pom.xml +++ b/bmc-artifacts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-artifacts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-audit/pom.xml b/bmc-audit/pom.xml index 0186fe4b518..f11b63fb58e 100644 --- a/bmc-audit/pom.xml +++ b/bmc-audit/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-autoscaling/pom.xml b/bmc-autoscaling/pom.xml index 51bd0430f19..0ea0928f175 100644 --- a/bmc-autoscaling/pom.xml +++ b/bmc-autoscaling/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-autoscaling @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-bastion/pom.xml b/bmc-bastion/pom.xml index 2b4d178ea2c..ae85b9f471e 100644 --- a/bmc-bastion/pom.xml +++ b/bmc-bastion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-bastion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-bds/pom.xml b/bmc-bds/pom.xml index 52fe384a6ff..6d6d7a5d01e 100644 --- a/bmc-bds/pom.xml +++ b/bmc-bds/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-bds @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-blockchain/pom.xml b/bmc-blockchain/pom.xml index 0a956f92714..8a9a087abd8 100644 --- a/bmc-blockchain/pom.xml +++ b/bmc-blockchain/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-blockchain @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-bom/pom.xml b/bmc-bom/pom.xml index bd23dd18dac..1f75ac1993b 100644 --- a/bmc-bom/pom.xml +++ b/bmc-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk - 3.43.2 + 3.44.0 oci-java-sdk-bom pom Oracle Cloud Infrastructure SDK - BOM @@ -38,933 +38,933 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-enforcer-rules - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-shaded-full - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-audit - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-containerengine - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-core - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-database - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-dns - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-email - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-filestorage - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-identity - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-loadbalancer - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-objectstorage - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-addons-resteasy-client-configurator - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-addons-oke-workload-identity - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-addons-sasl-oke-workload-identity - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-resourcesearch - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-addons-apache - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-announcementsservice - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-healthchecks - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-waas - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-streaming - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-resourcemanager - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-monitoring - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-ons - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-autoscaling - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-budget - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-workrequests - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-limits - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-functions - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-events - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-dts - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-oce - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-oda - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-analytics - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-integration - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-osmanagement - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-marketplace - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-apigateway - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-datacatalog - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-dataflow - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-datascience - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-nosql - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-secrets - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-vault - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-bds - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-encryption - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-cims - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-datasafe - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-mysql - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-dataintegration - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-ocvp - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-usageapi - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-blockchain - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-loggingingestion - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-logging - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-loganalytics - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-managementdashboard - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-sch - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-loggingsearch - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-managementagent - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-cloudguard - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-opsi - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-computeinstanceagent - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-optimizer - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-tenantmanagercontrolplane - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-rover - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-databasemanagement - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-artifacts - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-apmsynthetics - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-goldengate - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-apmcontrolplane - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-apmtraces - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-networkloadbalancer - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-vulnerabilityscanning - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-databasemigration - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-servicecatalog - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-ailanguage - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-operatoraccesscontrol - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-bastion - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-genericartifactscontent - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-jms - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-devops - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-aianomalydetection - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservice - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-datalabelingservicedataplane - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-apmconfig - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-waf - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-certificates - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-certificatesmanagement - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-usage - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-databasetools - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-servicemanagerproxy - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-appmgmtcontrol - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-ospgateway - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-identitydataplane - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-visualbuilder - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-osubusage - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-osubsubscription - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-osuborganizationsubscription - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-osubbillingschedule - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-dashboardservice - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-threatintelligence - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-aivision - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-aispeech - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-stackmonitoring - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-servicemesh - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-adm - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-licensemanager - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-onesubscription - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-governancerulescontrolplane - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-waa - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-networkfirewall - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-vnmonitoring - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-emwarehouse - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-lockbox - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-fusionapps - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-mediaservices - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-opa - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-opensearch - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-cloudmigrations - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-cloudbridge - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-disasterrecovery - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-containerinstances - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-aidocument - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-queue - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-recovery - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-vbsinst - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-identitydomains - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-accessgovernancecp - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-ocicontrolcenter - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-osmanagementhub - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-fleetsoftwareupdate - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-computecloudatcustomer - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-marketplacepublisher - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-redis - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-jmsjavadownloads - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-psql - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-generativeai - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-generativeaiinference - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-capacitymanagement - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-globallydistributeddatabase - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-desktops - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-emaildataplane - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-clusterplacementgroups - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-marketplaceprivateoffer - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-resourcescheduler - 3.43.2 + 3.44.0 false com.oracle.oci.sdk oci-java-sdk-demandsignal - 3.43.2 + 3.44.0 false diff --git a/bmc-budget/pom.xml b/bmc-budget/pom.xml index c846defaf11..791331fb446 100644 --- a/bmc-budget/pom.xml +++ b/bmc-budget/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-budget @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-capacitymanagement/pom.xml b/bmc-capacitymanagement/pom.xml index 1722779b615..c1ad2f90f14 100644 --- a/bmc-capacitymanagement/pom.xml +++ b/bmc-capacitymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-capacitymanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-certificates/pom.xml b/bmc-certificates/pom.xml index 2fef647a56b..80adc457c5a 100644 --- a/bmc-certificates/pom.xml +++ b/bmc-certificates/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-certificates @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-certificatesmanagement/pom.xml b/bmc-certificatesmanagement/pom.xml index 54ad241d2fd..2660f7b5015 100644 --- a/bmc-certificatesmanagement/pom.xml +++ b/bmc-certificatesmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-certificatesmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-cims/pom.xml b/bmc-cims/pom.xml index b7564ffb9e0..4ac4fa530b8 100644 --- a/bmc-cims/pom.xml +++ b/bmc-cims/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-cims @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-circuitbreaker/pom.xml b/bmc-circuitbreaker/pom.xml index 6c7360209e7..9a11e63690d 100644 --- a/bmc-circuitbreaker/pom.xml +++ b/bmc-circuitbreaker/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-circuitbreaker diff --git a/bmc-cloudbridge/pom.xml b/bmc-cloudbridge/pom.xml index 4909bfabef4..c31ff433579 100644 --- a/bmc-cloudbridge/pom.xml +++ b/bmc-cloudbridge/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-cloudbridge @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-cloudguard/pom.xml b/bmc-cloudguard/pom.xml index 9d472c61ccf..5cc1e2161a2 100644 --- a/bmc-cloudguard/pom.xml +++ b/bmc-cloudguard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-cloudguard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-cloudmigrations/pom.xml b/bmc-cloudmigrations/pom.xml index 885ca666650..8b93768ffc9 100644 --- a/bmc-cloudmigrations/pom.xml +++ b/bmc-cloudmigrations/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-cloudmigrations @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-clusterplacementgroups/pom.xml b/bmc-clusterplacementgroups/pom.xml index 45d481fcf81..eca61449f57 100644 --- a/bmc-clusterplacementgroups/pom.xml +++ b/bmc-clusterplacementgroups/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-clusterplacementgroups @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.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 ff664d5a33e..19b210eb41c 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.43.2 + 3.44.0 ../pom.xml @@ -68,7 +68,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey - 3.43.2 + 3.44.0 @@ -77,7 +77,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.43.2 + 3.44.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 d086ab367f6..2b74b542a92 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.43.2 + 3.44.0 ../pom.xml @@ -70,7 +70,7 @@ com.oracle.oci.sdk oci-java-sdk-addons-apache-configurator-jersey3 - 3.43.2 + 3.44.0 @@ -79,7 +79,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.43.2 + 3.44.0 jakarta.ws.rs diff --git a/bmc-common-httpclient-choices/pom.xml b/bmc-common-httpclient-choices/pom.xml index db2c7fb50ad..ef435332c32 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.43.2 + 3.44.0 ../pom.xml diff --git a/bmc-common-httpclient/pom.xml b/bmc-common-httpclient/pom.xml index bdf58dcb00f..d5755a9d10c 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.43.2 + 3.44.0 ../pom.xml diff --git a/bmc-common/pom.xml b/bmc-common/pom.xml index 01efc004c7b..cd588038aca 100644 --- a/bmc-common/pom.xml +++ b/bmc-common/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -67,18 +67,18 @@ com.oracle.oci.sdk oci-java-sdk-circuitbreaker - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 test diff --git a/bmc-computecloudatcustomer/pom.xml b/bmc-computecloudatcustomer/pom.xml index d18f2f91896..6ad17fddce3 100644 --- a/bmc-computecloudatcustomer/pom.xml +++ b/bmc-computecloudatcustomer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-computecloudatcustomer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-computeinstanceagent/pom.xml b/bmc-computeinstanceagent/pom.xml index aa31c4c5533..ac536a58b8f 100644 --- a/bmc-computeinstanceagent/pom.xml +++ b/bmc-computeinstanceagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-computeinstanceagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-containerengine/pom.xml b/bmc-containerengine/pom.xml index 6ddb3c19e2e..75522c812e1 100644 --- a/bmc-containerengine/pom.xml +++ b/bmc-containerengine/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-containerinstances/pom.xml b/bmc-containerinstances/pom.xml index b0060f2ae7e..3fb78096f02 100644 --- a/bmc-containerinstances/pom.xml +++ b/bmc-containerinstances/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-containerinstances @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-core/pom.xml b/bmc-core/pom.xml index 3f8ed66c6f9..ef598368a1a 100644 --- a/bmc-core/pom.xml +++ b/bmc-core/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.43.2 + 3.44.0 diff --git a/bmc-dashboardservice/pom.xml b/bmc-dashboardservice/pom.xml index f0992197ce7..006df2fcd13 100644 --- a/bmc-dashboardservice/pom.xml +++ b/bmc-dashboardservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-dashboardservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-database/pom.xml b/bmc-database/pom.xml index 536618e22a6..685f8bb59da 100644 --- a/bmc-database/pom.xml +++ b/bmc-database/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.43.2 + 3.44.0 diff --git a/bmc-databasemanagement/pom.xml b/bmc-databasemanagement/pom.xml index 2f287418569..e8881cb909f 100644 --- a/bmc-databasemanagement/pom.xml +++ b/bmc-databasemanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-databasemanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-databasemigration/pom.xml b/bmc-databasemigration/pom.xml index 322c1f77247..1fd17603a8d 100644 --- a/bmc-databasemigration/pom.xml +++ b/bmc-databasemigration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-databasemigration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java index 1c8ad441337..189d5090308 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigration.java @@ -12,7 +12,7 @@ * operations. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the * operations by default if no circuit breaker configuration is defined by the user. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public interface DatabaseMigration extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -94,22 +94,6 @@ public interface DatabaseMigration extends AutoCloseable { */ AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsRequest request); - /** - * Used to configure an ODMS Agent Compartment ID. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here - * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - *

Example: Click here to see how to use - * ChangeAgentCompartment API. - */ - ChangeAgentCompartmentResponse changeAgentCompartment(ChangeAgentCompartmentRequest request); - /** * Used to change the Database Connection compartment. * @@ -209,21 +193,6 @@ ChangeMigrationCompartmentResponse changeMigrationCompartment( */ CreateMigrationResponse createMigration(CreateMigrationRequest request); - /** - * Delete the ODMS Agent represented by the specified ODMS Agent ID. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here - * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - *

Example: Click here to see how to use DeleteAgent API. - */ - DeleteAgentResponse deleteAgent(DeleteAgentRequest request); - /** * Deletes the Database Connection represented by the specified connection ID. * @@ -303,21 +272,6 @@ ChangeMigrationCompartmentResponse changeMigrationCompartment( */ GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request); - /** - * Display the ODMS Agent configuration. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here - * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - *

Example: Click here to see how to use GetAgent API. - */ - GetAgentResponse getAgent(GetAgentRequest request); - /** * Display Database Connection details. * @@ -394,37 +348,6 @@ ChangeMigrationCompartmentResponse changeMigrationCompartment( */ GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request); - /** - * Get details of the ODMS Agent Images available to install on-premises. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here - * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - *

Example: Click here to see how to use ListAgentImages - * API. - */ - ListAgentImagesResponse listAgentImages(ListAgentImagesRequest request); - - /** - * Display the name of all the existing ODMS Agents in the server. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here - * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - *

Example: Click here to see how to use ListAgents API. - */ - ListAgentsResponse listAgents(ListAgentsRequest request); - /** * List all Database Connections. * @@ -645,21 +568,6 @@ ListMigrationObjectTypesResponse listMigrationObjectTypes( */ StartMigrationResponse startMigration(StartMigrationRequest request); - /** - * Modifies the ODMS Agent represented by the given ODMS Agent ID. - * - * @param request The request object containing the details to send - * @return A response object containing details about the completed operation - * @throws BmcException when an error occurs. This operation uses - * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is - * provided. The specifics of the default retry strategy are described here - * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries - *

Example: Click here to see how to use UpdateAgent API. - */ - UpdateAgentResponse updateAgent(UpdateAgentRequest request); - /** * Update Database Connection resource details. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java index 0177ba8718a..b2da7079693 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsync.java @@ -11,7 +11,7 @@ * Use the Oracle Cloud Infrastructure Database Migration APIs to perform database migration * operations. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public interface DatabaseMigrationAsync extends AutoCloseable { /** Rebuilds the client from scratch. Useful to refresh certificates. */ @@ -92,22 +92,6 @@ java.util.concurrent.Future addMigrationObjects( AddMigrationObjectsRequest, AddMigrationObjectsResponse> handler); - /** - * Used to configure an ODMS Agent Compartment ID. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future changeAgentCompartment( - ChangeAgentCompartmentRequest request, - com.oracle.bmc.responses.AsyncHandler< - ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse> - handler); - /** * Used to change the Database Connection compartment. * @@ -203,20 +187,6 @@ java.util.concurrent.Future createMigration( com.oracle.bmc.responses.AsyncHandler handler); - /** - * Delete the ODMS Agent represented by the specified ODMS Agent ID. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future deleteAgent( - DeleteAgentRequest request, - com.oracle.bmc.responses.AsyncHandler handler); - /** * Deletes the Database Connection represented by the specified connection ID. * @@ -292,20 +262,6 @@ java.util.concurrent.Future getAdvisorReport( com.oracle.bmc.responses.AsyncHandler handler); - /** - * Display the ODMS Agent configuration. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future getAgent( - GetAgentRequest request, - com.oracle.bmc.responses.AsyncHandler handler); - /** * Display Database Connection details. * @@ -381,35 +337,6 @@ java.util.concurrent.Future getWorkRequest( com.oracle.bmc.responses.AsyncHandler handler); - /** - * Get details of the ODMS Agent Images available to install on-premises. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future listAgentImages( - ListAgentImagesRequest request, - com.oracle.bmc.responses.AsyncHandler - handler); - - /** - * Display the name of all the existing ODMS Agents in the server. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future listAgents( - ListAgentsRequest request, - com.oracle.bmc.responses.AsyncHandler handler); - /** * List all Database Connections. * @@ -625,20 +552,6 @@ java.util.concurrent.Future startMigration( com.oracle.bmc.responses.AsyncHandler handler); - /** - * Modifies the ODMS Agent represented by the given ODMS Agent ID. - * - * @param request The request object containing the details to send - * @param handler The request handler to invoke upon completion, may be null. - * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, - * if you provide an AsyncHandler and use the Future, some types of responses (like - * java.io.InputStream) may not be able to be read in both places as the underlying stream - * may only be consumed once. - */ - java.util.concurrent.Future updateAgent( - UpdateAgentRequest request, - com.oracle.bmc.responses.AsyncHandler handler); - /** * Update Database Connection resource details. * diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java index 9d4d82e8ff3..c55eb050c34 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationAsyncClient.java @@ -25,7 +25,7 @@ * Please refer to * https://github.com/oracle/oci-java-sdk/blob/master/bmc-examples/src/main/java/ResteasyClientWithObjectStorageExample.java */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationAsyncClient extends com.oracle.bmc.http.internal.BaseAsyncClient implements DatabaseMigrationAsync { /** Service instance for DatabaseMigration. */ @@ -135,10 +135,10 @@ public java.util.concurrent.Future abortJob( .serviceDetails( "DatabaseMigration", "AbortJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AbortJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("actions") @@ -172,10 +172,10 @@ public java.util.concurrent.Future addMigrationObje .serviceDetails( "DatabaseMigration", "AddMigrationObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddMigrationObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -189,41 +189,6 @@ public java.util.concurrent.Future addMigrationObje .callAsync(handler); } - @Override - public java.util.concurrent.Future changeAgentCompartment( - ChangeAgentCompartmentRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ChangeAgentCompartmentRequest, ChangeAgentCompartmentResponse> - handler) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - Objects.requireNonNull( - request.getChangeAgentCompartmentDetails(), - "changeAgentCompartmentDetails is required"); - - return clientCall(request, ChangeAgentCompartmentResponse::builder) - .logger(LOG, "changeAgentCompartment") - .serviceDetails( - "DatabaseMigration", - "ChangeAgentCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(ChangeAgentCompartmentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .appendPathParam("actions") - .appendPathParam("changeCompartment") - .accept("application/json") - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .hasBody() - .handleResponseHeaderString( - "opc-request-id", ChangeAgentCompartmentResponse.Builder::opcRequestId) - .callAsync(handler); - } - @Override public java.util.concurrent.Future changeConnectionCompartment( @@ -243,10 +208,10 @@ public java.util.concurrent.Future changeAgentCo .serviceDetails( "DatabaseMigration", "ChangeConnectionCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartment") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeConnectionCompartmentRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .appendPathParam("actions") @@ -280,10 +245,10 @@ public java.util.concurrent.Future changeAgentCo .serviceDetails( "DatabaseMigration", "ChangeMigrationCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartment") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeMigrationCompartmentRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -314,10 +279,10 @@ public java.util.concurrent.Future cloneMigration( .serviceDetails( "DatabaseMigration", "CloneMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CloneMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -352,10 +317,10 @@ public java.util.concurrent.Future connectionDiag .serviceDetails( "DatabaseMigration", "ConnectionDiagnostics", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ConnectionDiagnostics") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ConnectionDiagnosticsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .appendPathParam("actions") @@ -387,7 +352,7 @@ public java.util.concurrent.Future createConnection( .serviceDetails("DatabaseMigration", "CreateConnection", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -415,10 +380,13 @@ public java.util.concurrent.Future createMigration( return clientCall(request, CreateMigrationResponse::builder) .logger(LOG, "createMigration") - .serviceDetails("DatabaseMigration", "CreateMigration", "") + .serviceDetails( + "DatabaseMigration", + "CreateMigration", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -435,35 +403,6 @@ public java.util.concurrent.Future createMigration( .callAsync(handler); } - @Override - public java.util.concurrent.Future deleteAgent( - DeleteAgentRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - - return clientCall(request, DeleteAgentResponse::builder) - .logger(LOG, "deleteAgent") - .serviceDetails( - "DatabaseMigration", - "DeleteAgent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent") - .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteAgentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .handleResponseHeaderString( - "opc-request-id", DeleteAgentResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-work-request-id", DeleteAgentResponse.Builder::opcWorkRequestId) - .callAsync(handler); - } - @Override public java.util.concurrent.Future deleteConnection( DeleteConnectionRequest request, @@ -478,10 +417,10 @@ public java.util.concurrent.Future deleteConnection( .serviceDetails( "DatabaseMigration", "DeleteConnection", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnection") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .accept("application/json") @@ -507,10 +446,10 @@ public java.util.concurrent.Future deleteJob( .serviceDetails( "DatabaseMigration", "DeleteJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .accept("application/json") @@ -535,10 +474,10 @@ public java.util.concurrent.Future deleteMigration( .serviceDetails( "DatabaseMigration", "DeleteMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .accept("application/json") @@ -565,10 +504,10 @@ public java.util.concurrent.Future evaluateMigration( .serviceDetails( "DatabaseMigration", "EvaluateMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(EvaluateMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -602,10 +541,10 @@ public java.util.concurrent.Future getAdvisorReport( .serviceDetails( "DatabaseMigration", "GetAdvisorReport", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAdvisorReportRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("advisorReport") @@ -620,36 +559,6 @@ public java.util.concurrent.Future getAdvisorReport( .callAsync(handler); } - @Override - public java.util.concurrent.Future getAgent( - GetAgentRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - - return clientCall(request, GetAgentResponse::builder) - .logger(LOG, "getAgent") - .serviceDetails( - "DatabaseMigration", - "GetAgent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent") - .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(GetAgentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .handleBody( - com.oracle.bmc.databasemigration.model.Agent.class, - GetAgentResponse.Builder::agent) - .handleResponseHeaderString( - "opc-request-id", GetAgentResponse.Builder::opcRequestId) - .handleResponseHeaderString("etag", GetAgentResponse.Builder::etag) - .callAsync(handler); - } - @Override public java.util.concurrent.Future getConnection( GetConnectionRequest request, @@ -663,10 +572,10 @@ public java.util.concurrent.Future getConnection( .serviceDetails( "DatabaseMigration", "GetConnection", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnection") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .accept("application/json") @@ -692,10 +601,10 @@ public java.util.concurrent.Future getJob( .serviceDetails( "DatabaseMigration", "GetJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .accept("application/json") @@ -722,10 +631,10 @@ public java.util.concurrent.Future getJobOutputCont .serviceDetails( "DatabaseMigration", "GetJobOutputContent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContent") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetJobOutputContentRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("output") @@ -752,10 +661,10 @@ public java.util.concurrent.Future getMigration( .serviceDetails( "DatabaseMigration", "GetMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .accept("application/json") @@ -784,10 +693,10 @@ public java.util.concurrent.Future getWorkRequest( .serviceDetails( "DatabaseMigration", "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") @@ -800,74 +709,6 @@ public java.util.concurrent.Future getWorkRequest( .callAsync(handler); } - @Override - public java.util.concurrent.Future listAgentImages( - ListAgentImagesRequest request, - final com.oracle.bmc.responses.AsyncHandler< - ListAgentImagesRequest, ListAgentImagesResponse> - handler) { - - return clientCall(request, ListAgentImagesResponse::builder) - .logger(LOG, "listAgentImages") - .serviceDetails( - "DatabaseMigration", - "ListAgentImages", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages") - .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListAgentImagesRequest::builder) - .basePath("/20210929") - .appendPathParam("agentImages") - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .handleBody( - com.oracle.bmc.databasemigration.model.AgentImageCollection.class, - ListAgentImagesResponse.Builder::agentImageCollection) - .handleResponseHeaderString( - "opc-request-id", ListAgentImagesResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-next-page", ListAgentImagesResponse.Builder::opcNextPage) - .callAsync(handler); - } - - @Override - public java.util.concurrent.Future listAgents( - ListAgentsRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - - return clientCall(request, ListAgentsResponse::builder) - .logger(LOG, "listAgents") - .serviceDetails( - "DatabaseMigration", - "ListAgents", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents") - .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListAgentsRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) - .appendQueryParam("displayName", request.getDisplayName()) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .handleBody( - com.oracle.bmc.databasemigration.model.AgentCollection.class, - ListAgentsResponse.Builder::agentCollection) - .handleResponseHeaderString( - "opc-request-id", ListAgentsResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-next-page", ListAgentsResponse.Builder::opcNextPage) - .callAsync(handler); - } - @Override public java.util.concurrent.Future listConnections( ListConnectionsRequest request, @@ -881,12 +722,21 @@ public java.util.concurrent.Future listConnections( .serviceDetails( "DatabaseMigration", "ListConnections", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListConnectionsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendListQueryParam( + "technologyType", + request.getTechnologyType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "connectionType", + request.getConnectionType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("sourceConnectionId", request.getSourceConnectionId()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -919,10 +769,10 @@ public java.util.concurrent.Future listExcludedObje .serviceDetails( "DatabaseMigration", "ListExcludedObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListExcludedObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("excludedObjects") @@ -964,10 +814,10 @@ public java.util.concurrent.Future listJobOutputs( .serviceDetails( "DatabaseMigration", "ListJobOutputs", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListJobOutputsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("output") @@ -997,10 +847,10 @@ public java.util.concurrent.Future listJobs( .serviceDetails( "DatabaseMigration", "ListJobs", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobs") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListJobsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendQueryParam("migrationId", request.getMigrationId()) .appendQueryParam("displayName", request.getDisplayName()) @@ -1026,21 +876,23 @@ public java.util.concurrent.Future listMigrati final com.oracle.bmc.responses.AsyncHandler< ListMigrationObjectTypesRequest, ListMigrationObjectTypesResponse> handler) { + Objects.requireNonNull(request.getConnectionType(), "connectionType is required"); return clientCall(request, ListMigrationObjectTypesResponse::builder) .logger(LOG, "listMigrationObjectTypes") .serviceDetails( "DatabaseMigration", "ListMigrationObjectTypes", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListMigrationObjectTypesRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrationObjectTypes") .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("connectionType", request.getConnectionType()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .handleBody( @@ -1069,10 +921,10 @@ public java.util.concurrent.Future listMigrationOb .serviceDetails( "DatabaseMigration", "ListMigrationObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListMigrationObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("migrationObjects") @@ -1104,10 +956,10 @@ public java.util.concurrent.Future listMigrations( .serviceDetails( "DatabaseMigration", "ListMigrations", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListMigrationsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("displayName", request.getDisplayName()) @@ -1143,10 +995,10 @@ public java.util.concurrent.Future listWorkReques .serviceDetails( "DatabaseMigration", "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") @@ -1180,10 +1032,10 @@ public java.util.concurrent.Future listWorkRequestL .serviceDetails( "DatabaseMigration", "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogs") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") @@ -1216,10 +1068,10 @@ public java.util.concurrent.Future listWorkRequests( .serviceDetails( "DatabaseMigration", "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("resourceId", request.getResourceId()) @@ -1257,10 +1109,10 @@ public java.util.concurrent.Future removeMigrati .serviceDetails( "DatabaseMigration", "RemoveMigrationObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveMigrationObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -1287,10 +1139,10 @@ public java.util.concurrent.Future resumeJob( .serviceDetails( "DatabaseMigration", "ResumeJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ResumeJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("actions") @@ -1323,10 +1175,10 @@ public java.util.concurrent.Future retrieveSupp .serviceDetails( "DatabaseMigration", "RetrieveSupportedPhases", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhases") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RetrieveSupportedPhasesRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -1355,10 +1207,10 @@ public java.util.concurrent.Future startMigration( .serviceDetails( "DatabaseMigration", "StartMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(StartMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -1379,40 +1231,6 @@ public java.util.concurrent.Future startMigration( .callAsync(handler); } - @Override - public java.util.concurrent.Future updateAgent( - UpdateAgentRequest request, - final com.oracle.bmc.responses.AsyncHandler - handler) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - Objects.requireNonNull(request.getUpdateAgentDetails(), "updateAgentDetails is required"); - - return clientCall(request, UpdateAgentResponse::builder) - .logger(LOG, "updateAgent") - .serviceDetails( - "DatabaseMigration", - "UpdateAgent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent") - .method(com.oracle.bmc.http.client.Method.PUT) - .requestBuilder(UpdateAgentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .appendHeader("if-match", request.getIfMatch()) - .hasBody() - .handleBody( - com.oracle.bmc.databasemigration.model.Agent.class, - UpdateAgentResponse.Builder::agent) - .handleResponseHeaderString( - "opc-request-id", UpdateAgentResponse.Builder::opcRequestId) - .handleResponseHeaderString("etag", UpdateAgentResponse.Builder::etag) - .callAsync(handler); - } - @Override public java.util.concurrent.Future updateConnection( UpdateConnectionRequest request, @@ -1429,10 +1247,10 @@ public java.util.concurrent.Future updateConnection( .serviceDetails( "DatabaseMigration", "UpdateConnection", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnection") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .accept("application/json") @@ -1460,10 +1278,10 @@ public java.util.concurrent.Future updateJob( .serviceDetails( "DatabaseMigration", "UpdateJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .accept("application/json") @@ -1495,10 +1313,10 @@ public java.util.concurrent.Future updateMigration( .serviceDetails( "DatabaseMigration", "UpdateMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .accept("application/json") diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java index 5cf37b17570..dde1d9af049 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationClient.java @@ -12,7 +12,7 @@ import java.util.Objects; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationClient extends com.oracle.bmc.http.internal.BaseSyncClient implements DatabaseMigration { /** Service instance for DatabaseMigration. */ @@ -158,10 +158,10 @@ public AbortJobResponse abortJob(AbortJobRequest request) { .serviceDetails( "DatabaseMigration", "AbortJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/AbortJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/AbortJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AbortJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("actions") @@ -192,10 +192,10 @@ public AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsReques .serviceDetails( "DatabaseMigration", "AddMigrationObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/AddMigrationObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/AddMigrationObjects") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(AddMigrationObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -210,39 +210,6 @@ public AddMigrationObjectsResponse addMigrationObjects(AddMigrationObjectsReques .callSync(); } - @Override - public ChangeAgentCompartmentResponse changeAgentCompartment( - ChangeAgentCompartmentRequest request) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - Objects.requireNonNull( - request.getChangeAgentCompartmentDetails(), - "changeAgentCompartmentDetails is required"); - - return clientCall(request, ChangeAgentCompartmentResponse::builder) - .logger(LOG, "changeAgentCompartment") - .serviceDetails( - "DatabaseMigration", - "ChangeAgentCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/ChangeAgentCompartment") - .method(com.oracle.bmc.http.client.Method.POST) - .requestBuilder(ChangeAgentCompartmentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .appendPathParam("actions") - .appendPathParam("changeCompartment") - .accept("application/json") - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .operationUsesDefaultRetries() - .hasBody() - .handleResponseHeaderString( - "opc-request-id", ChangeAgentCompartmentResponse.Builder::opcRequestId) - .callSync(); - } - @Override public ChangeConnectionCompartmentResponse changeConnectionCompartment( ChangeConnectionCompartmentRequest request) { @@ -257,10 +224,10 @@ public ChangeConnectionCompartmentResponse changeConnectionCompartment( .serviceDetails( "DatabaseMigration", "ChangeConnectionCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ChangeConnectionCompartment") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ChangeConnectionCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeConnectionCompartmentRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .appendPathParam("actions") @@ -290,10 +257,10 @@ public ChangeMigrationCompartmentResponse changeMigrationCompartment( .serviceDetails( "DatabaseMigration", "ChangeMigrationCompartment", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/ChangeMigrationCompartment") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/ChangeMigrationCompartment") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ChangeMigrationCompartmentRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -321,10 +288,10 @@ public CloneMigrationResponse cloneMigration(CloneMigrationRequest request) { .serviceDetails( "DatabaseMigration", "CloneMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/CloneMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CloneMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CloneMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -357,10 +324,10 @@ public ConnectionDiagnosticsResponse connectionDiagnostics( .serviceDetails( "DatabaseMigration", "ConnectionDiagnostics", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/ConnectionDiagnostics") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/ConnectionDiagnostics") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ConnectionDiagnosticsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .appendPathParam("actions") @@ -389,7 +356,7 @@ public CreateConnectionResponse createConnection(CreateConnectionRequest request .serviceDetails("DatabaseMigration", "CreateConnection", "") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -414,10 +381,13 @@ public CreateMigrationResponse createMigration(CreateMigrationRequest request) { return clientCall(request, CreateMigrationResponse::builder) .logger(LOG, "createMigration") - .serviceDetails("DatabaseMigration", "CreateMigration", "") + .serviceDetails( + "DatabaseMigration", + "CreateMigration", + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/CreateMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(CreateMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .accept("application/json") .appendHeader("opc-retry-token", request.getOpcRetryToken()) @@ -435,33 +405,6 @@ public CreateMigrationResponse createMigration(CreateMigrationRequest request) { .callSync(); } - @Override - public DeleteAgentResponse deleteAgent(DeleteAgentRequest request) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - - return clientCall(request, DeleteAgentResponse::builder) - .logger(LOG, "deleteAgent") - .serviceDetails( - "DatabaseMigration", - "DeleteAgent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/DeleteAgent") - .method(com.oracle.bmc.http.client.Method.DELETE) - .requestBuilder(DeleteAgentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("if-match", request.getIfMatch()) - .operationUsesDefaultRetries() - .handleResponseHeaderString( - "opc-request-id", DeleteAgentResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-work-request-id", DeleteAgentResponse.Builder::opcWorkRequestId) - .callSync(); - } - @Override public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request) { @@ -472,10 +415,10 @@ public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request .serviceDetails( "DatabaseMigration", "DeleteConnection", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/DeleteConnection") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/DeleteConnection") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .accept("application/json") @@ -499,10 +442,10 @@ public DeleteJobResponse deleteJob(DeleteJobRequest request) { .serviceDetails( "DatabaseMigration", "DeleteJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/DeleteJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteJob") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .accept("application/json") @@ -524,10 +467,10 @@ public DeleteMigrationResponse deleteMigration(DeleteMigrationRequest request) { .serviceDetails( "DatabaseMigration", "DeleteMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/DeleteMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/DeleteMigration") .method(com.oracle.bmc.http.client.Method.DELETE) .requestBuilder(DeleteMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .accept("application/json") @@ -551,10 +494,10 @@ public EvaluateMigrationResponse evaluateMigration(EvaluateMigrationRequest requ .serviceDetails( "DatabaseMigration", "EvaluateMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/EvaluateMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/EvaluateMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(EvaluateMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -585,10 +528,10 @@ public GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request .serviceDetails( "DatabaseMigration", "GetAdvisorReport", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetAdvisorReport") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetAdvisorReport") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetAdvisorReportRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("advisorReport") @@ -604,34 +547,6 @@ public GetAdvisorReportResponse getAdvisorReport(GetAdvisorReportRequest request .callSync(); } - @Override - public GetAgentResponse getAgent(GetAgentRequest request) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - - return clientCall(request, GetAgentResponse::builder) - .logger(LOG, "getAgent") - .serviceDetails( - "DatabaseMigration", - "GetAgent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/GetAgent") - .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(GetAgentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .operationUsesDefaultRetries() - .handleBody( - com.oracle.bmc.databasemigration.model.Agent.class, - GetAgentResponse.Builder::agent) - .handleResponseHeaderString( - "opc-request-id", GetAgentResponse.Builder::opcRequestId) - .handleResponseHeaderString("etag", GetAgentResponse.Builder::etag) - .callSync(); - } - @Override public GetConnectionResponse getConnection(GetConnectionRequest request) { @@ -642,10 +557,10 @@ public GetConnectionResponse getConnection(GetConnectionRequest request) { .serviceDetails( "DatabaseMigration", "GetConnection", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/GetConnection") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/GetConnection") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .accept("application/json") @@ -670,10 +585,10 @@ public GetJobResponse getJob(GetJobRequest request) { .serviceDetails( "DatabaseMigration", "GetJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJob") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .accept("application/json") @@ -697,10 +612,10 @@ public GetJobOutputContentResponse getJobOutputContent(GetJobOutputContentReques .serviceDetails( "DatabaseMigration", "GetJobOutputContent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/GetJobOutputContent") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetJobOutputContent") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetJobOutputContentRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("output") @@ -725,10 +640,10 @@ public GetMigrationResponse getMigration(GetMigrationRequest request) { .serviceDetails( "DatabaseMigration", "GetMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/GetMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/GetMigration") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .accept("application/json") @@ -754,10 +669,10 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { .serviceDetails( "DatabaseMigration", "GetWorkRequest", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequest/GetWorkRequest") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequest/GetWorkRequest") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(GetWorkRequestRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .accept("application/json") @@ -771,69 +686,6 @@ public GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) { .callSync(); } - @Override - public ListAgentImagesResponse listAgentImages(ListAgentImagesRequest request) { - - return clientCall(request, ListAgentImagesResponse::builder) - .logger(LOG, "listAgentImages") - .serviceDetails( - "DatabaseMigration", - "ListAgentImages", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentImageSummary/ListAgentImages") - .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListAgentImagesRequest::builder) - .basePath("/20210929") - .appendPathParam("agentImages") - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .operationUsesDefaultRetries() - .handleBody( - com.oracle.bmc.databasemigration.model.AgentImageCollection.class, - ListAgentImagesResponse.Builder::agentImageCollection) - .handleResponseHeaderString( - "opc-request-id", ListAgentImagesResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-next-page", ListAgentImagesResponse.Builder::opcNextPage) - .callSync(); - } - - @Override - public ListAgentsResponse listAgents(ListAgentsRequest request) { - Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); - - return clientCall(request, ListAgentsResponse::builder) - .logger(LOG, "listAgents") - .serviceDetails( - "DatabaseMigration", - "ListAgents", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/AgentSummary/ListAgents") - .method(com.oracle.bmc.http.client.Method.GET) - .requestBuilder(ListAgentsRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendQueryParam("compartmentId", request.getCompartmentId()) - .appendQueryParam("limit", request.getLimit()) - .appendQueryParam("page", request.getPage()) - .appendEnumQueryParam("sortBy", request.getSortBy()) - .appendEnumQueryParam("sortOrder", request.getSortOrder()) - .appendQueryParam("displayName", request.getDisplayName()) - .appendEnumQueryParam("lifecycleState", request.getLifecycleState()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .operationUsesDefaultRetries() - .handleBody( - com.oracle.bmc.databasemigration.model.AgentCollection.class, - ListAgentsResponse.Builder::agentCollection) - .handleResponseHeaderString( - "opc-request-id", ListAgentsResponse.Builder::opcRequestId) - .handleResponseHeaderString( - "opc-next-page", ListAgentsResponse.Builder::opcNextPage) - .callSync(); - } - @Override public ListConnectionsResponse listConnections(ListConnectionsRequest request) { Objects.requireNonNull(request.getCompartmentId(), "compartmentId is required"); @@ -843,12 +695,21 @@ public ListConnectionsResponse listConnections(ListConnectionsRequest request) { .serviceDetails( "DatabaseMigration", "ListConnections", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ConnectionSummary/ListConnections") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ConnectionSummary/ListConnections") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListConnectionsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendQueryParam("compartmentId", request.getCompartmentId()) + .appendListQueryParam( + "technologyType", + request.getTechnologyType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendListQueryParam( + "connectionType", + request.getConnectionType(), + com.oracle.bmc.util.internal.CollectionFormatType.Multi) + .appendQueryParam("sourceConnectionId", request.getSourceConnectionId()) .appendQueryParam("displayName", request.getDisplayName()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) @@ -878,10 +739,10 @@ public ListExcludedObjectsResponse listExcludedObjects(ListExcludedObjectsReques .serviceDetails( "DatabaseMigration", "ListExcludedObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/ExcludedObjectSummary/ListExcludedObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/ExcludedObjectSummary/ListExcludedObjects") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListExcludedObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("excludedObjects") @@ -920,10 +781,10 @@ public ListJobOutputsResponse listJobOutputs(ListJobOutputsRequest request) { .serviceDetails( "DatabaseMigration", "ListJobOutputs", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobOutputSummary/ListJobOutputs") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobOutputSummary/ListJobOutputs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListJobOutputsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("output") @@ -951,10 +812,10 @@ public ListJobsResponse listJobs(ListJobsRequest request) { .serviceDetails( "DatabaseMigration", "ListJobs", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/JobSummary/ListJobs") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/JobSummary/ListJobs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListJobsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendQueryParam("migrationId", request.getMigrationId()) .appendQueryParam("displayName", request.getDisplayName()) @@ -978,21 +839,23 @@ public ListJobsResponse listJobs(ListJobsRequest request) { @Override public ListMigrationObjectTypesResponse listMigrationObjectTypes( ListMigrationObjectTypesRequest request) { + Objects.requireNonNull(request.getConnectionType(), "connectionType is required"); return clientCall(request, ListMigrationObjectTypesResponse::builder) .logger(LOG, "listMigrationObjectTypes") .serviceDetails( "DatabaseMigration", "ListMigrationObjectTypes", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectTypeSummary/ListMigrationObjectTypes") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectTypeSummary/ListMigrationObjectTypes") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListMigrationObjectTypesRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrationObjectTypes") .appendEnumQueryParam("sortBy", request.getSortBy()) .appendEnumQueryParam("sortOrder", request.getSortOrder()) .appendQueryParam("limit", request.getLimit()) .appendQueryParam("page", request.getPage()) + .appendEnumQueryParam("connectionType", request.getConnectionType()) .accept("application/json") .appendHeader("opc-request-id", request.getOpcRequestId()) .operationUsesDefaultRetries() @@ -1018,10 +881,10 @@ public ListMigrationObjectsResponse listMigrationObjects(ListMigrationObjectsReq .serviceDetails( "DatabaseMigration", "ListMigrationObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationObjectCollection/ListMigrationObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationObjectCollection/ListMigrationObjects") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListMigrationObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("migrationObjects") @@ -1050,10 +913,10 @@ public ListMigrationsResponse listMigrations(ListMigrationsRequest request) { .serviceDetails( "DatabaseMigration", "ListMigrations", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/MigrationSummary/ListMigrations") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/MigrationSummary/ListMigrations") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListMigrationsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("displayName", request.getDisplayName()) @@ -1087,10 +950,10 @@ public ListWorkRequestErrorsResponse listWorkRequestErrors( .serviceDetails( "DatabaseMigration", "ListWorkRequestErrors", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestError/ListWorkRequestErrors") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestError/ListWorkRequestErrors") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestErrorsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("errors") @@ -1121,10 +984,10 @@ public ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsReques .serviceDetails( "DatabaseMigration", "ListWorkRequestLogs", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestLogEntry/ListWorkRequestLogs") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestLogEntry/ListWorkRequestLogs") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestLogsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendPathParam(request.getWorkRequestId()) .appendPathParam("logs") @@ -1154,10 +1017,10 @@ public ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request .serviceDetails( "DatabaseMigration", "ListWorkRequests", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/WorkRequestSummary/ListWorkRequests") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/WorkRequestSummary/ListWorkRequests") .method(com.oracle.bmc.http.client.Method.GET) .requestBuilder(ListWorkRequestsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("workRequests") .appendQueryParam("compartmentId", request.getCompartmentId()) .appendQueryParam("resourceId", request.getResourceId()) @@ -1193,10 +1056,10 @@ public RemoveMigrationObjectsResponse removeMigrationObjects( .serviceDetails( "DatabaseMigration", "RemoveMigrationObjects", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RemoveMigrationObjects") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RemoveMigrationObjects") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RemoveMigrationObjectsRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -1221,10 +1084,10 @@ public ResumeJobResponse resumeJob(ResumeJobRequest request) { .serviceDetails( "DatabaseMigration", "ResumeJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/ResumeJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ResumeJob") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(ResumeJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .appendPathParam("actions") @@ -1255,10 +1118,10 @@ public RetrieveSupportedPhasesResponse retrieveSupportedPhases( .serviceDetails( "DatabaseMigration", "RetrieveSupportedPhases", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/RetrieveSupportedPhases") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/RetrieveSupportedPhases") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(RetrieveSupportedPhasesRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -1284,10 +1147,10 @@ public StartMigrationResponse startMigration(StartMigrationRequest request) { .serviceDetails( "DatabaseMigration", "StartMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/StartMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/StartMigration") .method(com.oracle.bmc.http.client.Method.POST) .requestBuilder(StartMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .appendPathParam("actions") @@ -1309,38 +1172,6 @@ public StartMigrationResponse startMigration(StartMigrationRequest request) { .callSync(); } - @Override - public UpdateAgentResponse updateAgent(UpdateAgentRequest request) { - - Validate.notBlank(request.getAgentId(), "agentId must not be blank"); - Objects.requireNonNull(request.getUpdateAgentDetails(), "updateAgentDetails is required"); - - return clientCall(request, UpdateAgentResponse::builder) - .logger(LOG, "updateAgent") - .serviceDetails( - "DatabaseMigration", - "UpdateAgent", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Agent/UpdateAgent") - .method(com.oracle.bmc.http.client.Method.PUT) - .requestBuilder(UpdateAgentRequest::builder) - .basePath("/20210929") - .appendPathParam("agents") - .appendPathParam(request.getAgentId()) - .accept("application/json") - .appendHeader("opc-request-id", request.getOpcRequestId()) - .appendHeader("opc-retry-token", request.getOpcRetryToken()) - .appendHeader("if-match", request.getIfMatch()) - .operationUsesDefaultRetries() - .hasBody() - .handleBody( - com.oracle.bmc.databasemigration.model.Agent.class, - UpdateAgentResponse.Builder::agent) - .handleResponseHeaderString( - "opc-request-id", UpdateAgentResponse.Builder::opcRequestId) - .handleResponseHeaderString("etag", UpdateAgentResponse.Builder::etag) - .callSync(); - } - @Override public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request) { @@ -1353,10 +1184,10 @@ public UpdateConnectionResponse updateConnection(UpdateConnectionRequest request .serviceDetails( "DatabaseMigration", "UpdateConnection", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Connection/UpdateConnection") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Connection/UpdateConnection") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateConnectionRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("connections") .appendPathParam(request.getConnectionId()) .accept("application/json") @@ -1382,10 +1213,10 @@ public UpdateJobResponse updateJob(UpdateJobRequest request) { .serviceDetails( "DatabaseMigration", "UpdateJob", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Job/UpdateJob") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/UpdateJob") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateJobRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("jobs") .appendPathParam(request.getJobId()) .accept("application/json") @@ -1414,10 +1245,10 @@ public UpdateMigrationResponse updateMigration(UpdateMigrationRequest request) { .serviceDetails( "DatabaseMigration", "UpdateMigration", - "https://docs.oracle.com/iaas/api/#/en/database-migration/20210929/Migration/UpdateMigration") + "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Migration/UpdateMigration") .method(com.oracle.bmc.http.client.Method.PUT) .requestBuilder(UpdateMigrationRequest::builder) - .basePath("/20210929") + .basePath("/20230518") .appendPathParam("migrations") .appendPathParam(request.getMigrationId()) .accept("application/json") diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java index e3b20487756..231101f95ac 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationPaginators.java @@ -33,7 +33,7 @@ * handled so we can iterate until there are no more responses or no more resources/records * available. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationPaginators { private final DatabaseMigration client; @@ -41,235 +41,6 @@ public DatabaseMigrationPaginators(DatabaseMigration client) { this.client = client; } - /** - * Creates a new iterable which will iterate over the responses received from the - * listAgentImages 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 listAgentImagesResponseIterator( - final ListAgentImagesRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseIterable< - ListAgentImagesRequest.Builder, ListAgentImagesRequest, ListAgentImagesResponse>( - new java.util.function.Supplier() { - @Override - public ListAgentImagesRequest.Builder get() { - return ListAgentImagesRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListAgentImagesResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentImagesRequest.Builder>, - ListAgentImagesRequest>() { - @Override - public ListAgentImagesRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentImagesRequest.Builder> - input) { - if (input.getNextPageToken() == null) { - return input.getRequestBuilder().build(); - } else { - return input.getRequestBuilder() - .page(input.getNextPageToken().orElse(null)) - .build(); - } - } - }, - new java.util.function.Function() { - @Override - public ListAgentImagesResponse apply(ListAgentImagesRequest request) { - return client.listAgentImages(request); - } - }); - } - - /** - * Creates a new iterable which will iterate over the {@link - * com.oracle.bmc.databasemigration.model.AgentImageSummary} objects contained in responses from - * the listAgentImages operation. This iterable will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link - * com.oracle.bmc.databasemigration.model.AgentImageSummary} objects contained in responses - * received from the service. - */ - public Iterable - listAgentImagesRecordIterator(final ListAgentImagesRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< - ListAgentImagesRequest.Builder, - ListAgentImagesRequest, - ListAgentImagesResponse, - com.oracle.bmc.databasemigration.model.AgentImageSummary>( - new java.util.function.Supplier() { - @Override - public ListAgentImagesRequest.Builder get() { - return ListAgentImagesRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListAgentImagesResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentImagesRequest.Builder>, - ListAgentImagesRequest>() { - @Override - public ListAgentImagesRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentImagesRequest.Builder> - input) { - if (input.getNextPageToken() == null) { - return input.getRequestBuilder().build(); - } else { - return input.getRequestBuilder() - .page(input.getNextPageToken().orElse(null)) - .build(); - } - } - }, - new java.util.function.Function() { - @Override - public ListAgentImagesResponse apply(ListAgentImagesRequest request) { - return client.listAgentImages(request); - } - }, - new java.util.function.Function< - ListAgentImagesResponse, - java.util.List< - com.oracle.bmc.databasemigration.model.AgentImageSummary>>() { - @Override - public java.util.List - apply(ListAgentImagesResponse response) { - return response.getAgentImageCollection().getItems(); - } - }); - } - - /** - * Creates a new iterable which will iterate over the responses received from the listAgents - * 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 listAgentsResponseIterator( - final ListAgentsRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseIterable< - ListAgentsRequest.Builder, ListAgentsRequest, ListAgentsResponse>( - new java.util.function.Supplier() { - @Override - public ListAgentsRequest.Builder get() { - return ListAgentsRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListAgentsResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentsRequest.Builder>, - ListAgentsRequest>() { - @Override - public ListAgentsRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentsRequest.Builder> - input) { - if (input.getNextPageToken() == null) { - return input.getRequestBuilder().build(); - } else { - return input.getRequestBuilder() - .page(input.getNextPageToken().orElse(null)) - .build(); - } - } - }, - new java.util.function.Function() { - @Override - public ListAgentsResponse apply(ListAgentsRequest request) { - return client.listAgents(request); - } - }); - } - - /** - * Creates a new iterable which will iterate over the {@link - * com.oracle.bmc.databasemigration.model.AgentSummary} objects contained in responses from the - * listAgents operation. This iterable will fetch more data from the server as needed. - * - * @param request a request which can be sent to the service operation - * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link - * com.oracle.bmc.databasemigration.model.AgentSummary} objects contained in responses - * received from the service. - */ - public Iterable listAgentsRecordIterator( - final ListAgentsRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< - ListAgentsRequest.Builder, - ListAgentsRequest, - ListAgentsResponse, - com.oracle.bmc.databasemigration.model.AgentSummary>( - new java.util.function.Supplier() { - @Override - public ListAgentsRequest.Builder get() { - return ListAgentsRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListAgentsResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentsRequest.Builder>, - ListAgentsRequest>() { - @Override - public ListAgentsRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListAgentsRequest.Builder> - input) { - if (input.getNextPageToken() == null) { - return input.getRequestBuilder().build(); - } else { - return input.getRequestBuilder() - .page(input.getNextPageToken().orElse(null)) - .build(); - } - } - }, - new java.util.function.Function() { - @Override - public ListAgentsResponse apply(ListAgentsRequest request) { - return client.listAgents(request); - } - }, - new java.util.function.Function< - ListAgentsResponse, - java.util.List>() { - @Override - public java.util.List - apply(ListAgentsResponse response) { - return response.getAgentCollection().getItems(); - } - }); - } - /** * Creates a new iterable which will iterate over the responses received from the * listConnections operation. This iterable will fetch more data from the server as needed. @@ -859,127 +630,6 @@ public ListMigrationObjectTypesResponse apply( }); } - /** - * Creates a new iterable which will iterate over the responses received from the - * listMigrationObjects 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 listMigrationObjectsResponseIterator( - final ListMigrationObjectsRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseIterable< - ListMigrationObjectsRequest.Builder, - ListMigrationObjectsRequest, - ListMigrationObjectsResponse>( - new java.util.function.Supplier() { - @Override - public ListMigrationObjectsRequest.Builder get() { - return ListMigrationObjectsRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListMigrationObjectsResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListMigrationObjectsRequest.Builder>, - ListMigrationObjectsRequest>() { - @Override - public ListMigrationObjectsRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListMigrationObjectsRequest.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< - ListMigrationObjectsRequest, ListMigrationObjectsResponse>() { - @Override - public ListMigrationObjectsResponse apply(ListMigrationObjectsRequest request) { - return client.listMigrationObjects(request); - } - }); - } - - /** - * Creates a new iterable which will iterate over the {@link - * com.oracle.bmc.databasemigration.model.MigrationObjectSummary} objects contained in responses - * from the listMigrationObjects operation. This iterable will fetch more data from the server - * as needed. - * - * @param request a request which can be sent to the service operation - * @return an {@link java.lang.Iterable} which can be used to iterate over the {@link - * com.oracle.bmc.databasemigration.model.MigrationObjectSummary} objects contained in - * responses received from the service. - */ - public Iterable - listMigrationObjectsRecordIterator(final ListMigrationObjectsRequest request) { - return new com.oracle.bmc.paginator.internal.ResponseRecordIterable< - ListMigrationObjectsRequest.Builder, - ListMigrationObjectsRequest, - ListMigrationObjectsResponse, - com.oracle.bmc.databasemigration.model.MigrationObjectSummary>( - new java.util.function.Supplier() { - @Override - public ListMigrationObjectsRequest.Builder get() { - return ListMigrationObjectsRequest.builder().copy(request); - } - }, - new java.util.function.Function() { - @Override - public String apply(ListMigrationObjectsResponse response) { - return response.getOpcNextPage(); - } - }, - new java.util.function.Function< - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListMigrationObjectsRequest.Builder>, - ListMigrationObjectsRequest>() { - @Override - public ListMigrationObjectsRequest apply( - com.oracle.bmc.paginator.internal.RequestBuilderAndToken< - ListMigrationObjectsRequest.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< - ListMigrationObjectsRequest, ListMigrationObjectsResponse>() { - @Override - public ListMigrationObjectsResponse apply(ListMigrationObjectsRequest request) { - return client.listMigrationObjects(request); - } - }, - new java.util.function.Function< - ListMigrationObjectsResponse, - java.util.List< - com.oracle.bmc.databasemigration.model.MigrationObjectSummary>>() { - @Override - public java.util.List< - com.oracle.bmc.databasemigration.model.MigrationObjectSummary> - apply(ListMigrationObjectsResponse response) { - return response.getMigrationObjectCollection().getItems(); - } - }); - } - /** * Creates a new iterable which will iterate over the responses received from the listMigrations * operation. This iterable will fetch more data from the server as needed. diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java index 73a814dbb47..537a9e12e5f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/DatabaseMigrationWaiters.java @@ -14,7 +14,7 @@ *

The default configuration used is defined by {@link * com.oracle.bmc.waiter.Waiters.Waiters#DEFAULT_POLLING_WAITER}. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DatabaseMigrationWaiters { private final java.util.concurrent.ExecutorService executorService; private final DatabaseMigration client; @@ -29,112 +29,13 @@ public DatabaseMigrationWaiters( * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. * * @param request the request to send - * @param targetState the desired states to wait for. If multiple states are provided then the + * @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 com.oracle.bmc.waiter.Waiter} instance - */ - public com.oracle.bmc.waiter.Waiter forAgent( - GetAgentRequest request, - com.oracle.bmc.databasemigration.model.LifecycleStates... 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 forAgent( - 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 forAgent( - GetAgentRequest request, - com.oracle.bmc.databasemigration.model.LifecycleStates 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 forAgent( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetState); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the provided configuration. - * - * @param request the request to send - * @param terminationStrategy the {@link com.oracle.bmc.waiter.TerminationStrategy} to use - * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use - * @param targetStates the desired states to wait for. The waiter will return once the resource - * reaches any of the provided states * @return a new {@code Waiter} instance */ - public com.oracle.bmc.waiter.Waiter forAgent( - GetAgentRequest request, - com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, - com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.databasemigration.model.LifecycleStates... 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 forAgent( - com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), - request, - targetStates); - } - - // Helper method to create a new Waiter for Agent. - private com.oracle.bmc.waiter.Waiter forAgent( - com.oracle.bmc.waiter.BmcGenericWaiter waiter, - final GetAgentRequest request, - final com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) { - final java.util.Set - targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); - - return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( - executorService, - waiter.toCallable( - () -> request, - new java.util.function.Function() { - @Override - public GetAgentResponse apply(GetAgentRequest request) { - return client.getAgent(request); - } - }, - new java.util.function.Predicate() { - @Override - public boolean test(GetAgentResponse response) { - return targetStatesSet.contains( - response.getAgent().getLifecycleState()); - } - }, - targetStatesSet.contains( - com.oracle.bmc.databasemigration.model.LifecycleStates.Deleted)), - request); - } - - /** - * Creates a new {@link com.oracle.bmc.waiter.Waiter} using the default configuration. - * - * @param request the request to send - * @param targetState the desired states to wait for. If multiple states are provided then the - * waiter will return once the resource reaches any of the provided states - * @return a new {@code com.oracle.bmc.waiter.Waiter} instance - */ public com.oracle.bmc.waiter.Waiter forConnection( GetConnectionRequest request, - com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) { + com.oracle.bmc.databasemigration.model.Connection.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( targetStates, "At least one targetState must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( @@ -155,7 +56,7 @@ public com.oracle.bmc.waiter.Waiter */ public com.oracle.bmc.waiter.Waiter forConnection( GetConnectionRequest request, - com.oracle.bmc.databasemigration.model.LifecycleStates targetState, + com.oracle.bmc.databasemigration.model.Connection.LifecycleState targetState, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy) { com.oracle.bmc.util.internal.Validate.notNull( @@ -175,17 +76,17 @@ public com.oracle.bmc.waiter.Waiter * @param delayStrategy the {@link com.oracle.bmc.waiter.DelayStrategy} to use * @param targetStates the desired states to wait for. The waiter will return once the resource * reaches any of the provided states - * @return a new {@code Waiter} instance + * @return a new {@code com.oracle.bmc.waiter.Waiter} instance */ public com.oracle.bmc.waiter.Waiter forConnection( GetConnectionRequest request, com.oracle.bmc.waiter.TerminationStrategy terminationStrategy, com.oracle.bmc.waiter.DelayStrategy delayStrategy, - com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) { + com.oracle.bmc.databasemigration.model.Connection.LifecycleState... targetStates) { com.oracle.bmc.util.internal.Validate.notEmpty( - targetStates, "At least one targetState must be provided"); + targetStates, "At least one target state must be provided"); com.oracle.bmc.util.internal.Validate.noNullElements( - targetStates, "Null targetState values are not permitted"); + targetStates, "Null target states are not permitted"); return forConnection( com.oracle.bmc.waiter.Waiters.newWaiter(terminationStrategy, delayStrategy), @@ -197,8 +98,9 @@ public com.oracle.bmc.waiter.Waiter private com.oracle.bmc.waiter.Waiter forConnection( com.oracle.bmc.waiter.BmcGenericWaiter waiter, final GetConnectionRequest request, - final com.oracle.bmc.databasemigration.model.LifecycleStates... targetStates) { - final java.util.Set + final com.oracle.bmc.databasemigration.model.Connection.LifecycleState... + targetStates) { + final java.util.Set targetStatesSet = new java.util.HashSet<>(java.util.Arrays.asList(targetStates)); return new com.oracle.bmc.waiter.internal.SimpleWaiterImpl<>( @@ -220,7 +122,8 @@ public boolean test(GetConnectionResponse response) { } }, targetStatesSet.contains( - com.oracle.bmc.databasemigration.model.LifecycleStates.Deleted)), + com.oracle.bmc.databasemigration.model.Connection.LifecycleState + .Deleted)), request); } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java index eddb32dd1c3..83a8ab8dd86 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedAutoCreateTablespaceDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using auto create feature
+ * Auto create tablespace settings that are valid for Dedicated Autonomous Databases.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ADBDedicatedAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -27,12 +27,16 @@ public final class ADBDedicatedAutoCreateTablespaceDetails extends TargetTypeTablespaceDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** True to auto-create tablespace in the target Database. */ + /** + * Set this property to true to auto-create tablespaces in the target Database. Note: This + * is not applicable for Autonomous Database Serverless databases. + */ @com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate") private Boolean isAutoCreate; /** - * True to auto-create tablespace in the target Database. + * Set this property to true to auto-create tablespaces in the target Database. Note: This + * is not applicable for Autonomous Database Serverless databases. * * @param isAutoCreate the value to set * @return this builder @@ -42,12 +46,12 @@ public Builder isAutoCreate(Boolean isAutoCreate) { this.__explicitlySet__.add("isAutoCreate"); return this; } - /** True set tablespace to big file. */ + /** Set this property to true to enable tablespace of the type big file. */ @com.fasterxml.jackson.annotation.JsonProperty("isBigFile") private Boolean isBigFile; /** - * True set tablespace to big file. + * Set this property to true to enable tablespace of the type big file. * * @param isBigFile the value to set * @return this builder @@ -57,12 +61,16 @@ public Builder isBigFile(Boolean isBigFile) { this.__explicitlySet__.add("isBigFile"); return this; } - /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */ + /** + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set + * to true. + */ @com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs") private Integer extendSizeInMBs; /** - * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set + * to true. * * @param extendSizeInMBs the value to set * @return this builder @@ -144,12 +152,16 @@ public ADBDedicatedAutoCreateTablespaceDetails( this.blockSizeInKBs = blockSizeInKBs; } - /** True to auto-create tablespace in the target Database. */ + /** + * Set this property to true to auto-create tablespaces in the target Database. Note: This is + * not applicable for Autonomous Database Serverless databases. + */ @com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate") private final Boolean isAutoCreate; /** - * True to auto-create tablespace in the target Database. + * Set this property to true to auto-create tablespaces in the target Database. Note: This is + * not applicable for Autonomous Database Serverless databases. * * @return the value */ @@ -157,12 +169,12 @@ public Boolean getIsAutoCreate() { return isAutoCreate; } - /** True set tablespace to big file. */ + /** Set this property to true to enable tablespace of the type big file. */ @com.fasterxml.jackson.annotation.JsonProperty("isBigFile") private final Boolean isBigFile; /** - * True set tablespace to big file. + * Set this property to true to enable tablespace of the type big file. * * @return the value */ @@ -170,12 +182,16 @@ public Boolean getIsBigFile() { return isBigFile; } - /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */ + /** + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to + * true. + */ @com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs") private final Integer extendSizeInMBs; /** - * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to + * true. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java index 62bed22a839..06f4a8eb73e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBDedicatedRemapTargetTablespaceDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using remap feature
+ * Remap tablespace settings that are valid for Dedicated Autonomous Databases.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ADBDedicatedRemapTargetTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -28,13 +28,15 @@ public final class ADBDedicatedRemapTargetTablespaceDetails extends TargetTypeTa @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private String remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. * * @param remapTarget the value to set * @return this builder @@ -81,12 +83,16 @@ public ADBDedicatedRemapTargetTablespaceDetails(String remapTarget) { this.remapTarget = remapTarget; } - /** Name of tablespace at target to which the source database tablespace need to be remapped. */ + /** + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. + */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private final String remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java index b6699207197..5eec3fe76e5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ADBServerlesTablespaceDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using remap feature
+ * Migration tablespace settings valid for Autonomous Database Serverless target type using remap + * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ADBServerlesTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -28,13 +29,15 @@ public final class ADBServerlesTablespaceDetails extends TargetTypeTablespaceDet @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private RemapTarget remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. * * @param remapTarget the value to set * @return this builder @@ -81,7 +84,10 @@ public ADBServerlesTablespaceDetails(RemapTarget remapTarget) { this.remapTarget = remapTarget; } - /** Name of tablespace at target to which the source database tablespace need to be remapped. */ + /** + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. + */ public enum RemapTarget implements com.oracle.bmc.http.internal.BmcEnum { Data("DATA"), @@ -126,12 +132,16 @@ public static RemapTarget create(String key) { return UnknownEnumValue; } }; - /** Name of tablespace at target to which the source database tablespace need to be remapped. */ + /** + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. + */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private final RemapTarget remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java index 35426af1a3f..2238a3fd845 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdminCredentials.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdminCredentials.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java index e434bf6578c..d479977602d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReport.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Pre-Migration advisor report details.
+ * Premigration Advisor report details.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdvisorReport.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -56,12 +56,12 @@ public Builder reportLocationDetails(AdvisorReportLocationDetails reportLocation this.__explicitlySet__.add("reportLocationDetails"); return this; } - /** Pre-Migration advisor result. */ + /** Premigration Advisor result. */ @com.fasterxml.jackson.annotation.JsonProperty("result") private AdvisorResults result; /** - * Pre-Migration advisor result. + * Premigration Advisor result. * * @param result the value to set * @return this builder @@ -190,12 +190,12 @@ public AdvisorReportLocationDetails getReportLocationDetails() { return reportLocationDetails; } - /** Pre-Migration advisor result. */ + /** Premigration Advisor result. */ @com.fasterxml.jackson.annotation.JsonProperty("result") private final AdvisorResults result; /** - * Pre-Migration advisor result. + * Premigration Advisor result. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java index 258d9566425..5b473ae0730 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportBucketDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Details to access Pre-Migration Advisor report in the specified Object Storage bucket, if any. - *
+ * Details to access Premigration Advisor report in the specified Object Storage bucket.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AdvisorReportBucketDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -34,12 +33,12 @@ public AdvisorReportBucketDetails(String bucketName, String namespace, String ob @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Name of the bucket containing the Pre-Migration Advisor report. */ + /** Name of the bucket containing the Premigration Advisor report. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketName") private String bucketName; /** - * Name of the bucket containing the Pre-Migration Advisor report. + * Name of the bucket containing the Premigration Advisor report. * * @param bucketName the value to set * @return this builder @@ -64,12 +63,12 @@ public Builder namespace(String namespace) { this.__explicitlySet__.add("namespace"); return this; } - /** Pre-Migration Advisor report object name. */ + /** Premigration Advisor report object name. */ @com.fasterxml.jackson.annotation.JsonProperty("objectName") private String objectName; /** - * Pre-Migration Advisor report object name. + * Premigration Advisor report object name. * * @param objectName the value to set * @return this builder @@ -117,12 +116,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Name of the bucket containing the Pre-Migration Advisor report. */ + /** Name of the bucket containing the Premigration Advisor report. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketName") private final String bucketName; /** - * Name of the bucket containing the Pre-Migration Advisor report. + * Name of the bucket containing the Premigration Advisor report. * * @return the value */ @@ -143,12 +142,12 @@ public String getNamespace() { return namespace; } - /** Pre-Migration Advisor report object name. */ + /** Premigration Advisor report object name. */ @com.fasterxml.jackson.annotation.JsonProperty("objectName") private final String objectName; /** - * Pre-Migration Advisor report object name. + * Premigration Advisor report object name. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java index 9691b0aeda3..50512280e35 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorReportLocationDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Details to access Pre-Migration Advisor report.
+ * Details to access Premigration Advisor report.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AdvisorReportLocationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -43,14 +43,14 @@ public Builder objectStorageDetails(AdvisorReportBucketDetails objectStorageDeta return this; } /** - * Path in the Source Registered Connection where the Pre-Migration advisor report can be + * File system path on the Source Database host where the Premigration Advisor report can be * accessed. */ @com.fasterxml.jackson.annotation.JsonProperty("locationInSource") private String locationInSource; /** - * Path in the Source Registered Connection where the Pre-Migration advisor report can be + * File system path on the Source Database host where the Premigration Advisor report can be * accessed. * * @param locationInSource the value to set @@ -104,14 +104,14 @@ public AdvisorReportBucketDetails getObjectStorageDetails() { } /** - * Path in the Source Registered Connection where the Pre-Migration advisor report can be + * File system path on the Source Database host where the Premigration Advisor report can be * accessed. */ @com.fasterxml.jackson.annotation.JsonProperty("locationInSource") private final String locationInSource; /** - * Path in the Source Registered Connection where the Pre-Migration advisor report can be + * File system path on the Source Database host where the Premigration Advisor report can be * accessed. * * @return the value diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java index 642133e5887..67b84c7a4c3 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorResults.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Pre-Migration advisor result. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum AdvisorResults implements com.oracle.bmc.http.internal.BmcEnum { Fatal("FATAL"), Blocker("BLOCKER"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java deleted file mode 100644 index dd72880efca..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Agent.java +++ /dev/null @@ -1,632 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * ODMS Agent Details
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Agent.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class Agent extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "id", - "displayName", - "compartmentId", - "streamId", - "publicKey", - "version", - "timeCreated", - "timeUpdated", - "lifecycleState", - "lifecycleDetails", - "freeformTags", - "definedTags", - "systemTags" - }) - public Agent( - String id, - String displayName, - String compartmentId, - String streamId, - String publicKey, - String version, - java.util.Date timeCreated, - java.util.Date timeUpdated, - LifecycleStates lifecycleState, - String lifecycleDetails, - java.util.Map freeformTags, - java.util.Map> definedTags, - java.util.Map> systemTags) { - super(); - this.id = id; - this.displayName = displayName; - this.compartmentId = compartmentId; - this.streamId = streamId; - this.publicKey = publicKey; - this.version = version; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.lifecycleState = lifecycleState; - this.lifecycleDetails = lifecycleDetails; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - this.systemTags = systemTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The OCID of the resource - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** ODMS Agent name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * ODMS Agent name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** The OCID of the Stream */ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private String streamId; - - /** - * The OCID of the Stream - * - * @param streamId the value to set - * @return this builder - */ - public Builder streamId(String streamId) { - this.streamId = streamId; - this.__explicitlySet__.add("streamId"); - return this; - } - /** ODMS Agent public key. */ - @com.fasterxml.jackson.annotation.JsonProperty("publicKey") - private String publicKey; - - /** - * ODMS Agent public key. - * - * @param publicKey the value to set - * @return this builder - */ - public Builder publicKey(String publicKey) { - this.publicKey = publicKey; - this.__explicitlySet__.add("publicKey"); - return this; - } - /** ODMS Agent version */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - - /** - * ODMS Agent version - * - * @param version the value to set - * @return this builder - */ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); - return this; - } - /** The time the Agent was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Agent was created. An RFC3339 formatted datetime string. - * - * @param timeCreated the value to set - * @return this builder - */ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** The time of the last Agent details update. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. - * - * @param timeUpdated the value to set - * @return this builder - */ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** The current state of the ODMS on-premises Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleStates lifecycleState; - - /** - * The current state of the ODMS on-premises Agent. - * - * @param lifecycleState the value to set - * @return this builder - */ - public Builder lifecycleState(LifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; - - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - * - * @param lifecycleDetails the value to set - * @return this builder - */ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - */ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public Agent build() { - Agent model = - new Agent( - this.id, - this.displayName, - this.compartmentId, - this.streamId, - this.publicKey, - this.version, - this.timeCreated, - this.timeUpdated, - this.lifecycleState, - this.lifecycleDetails, - this.freeformTags, - this.definedTags, - this.systemTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(Agent model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("streamId")) { - this.streamId(model.getStreamId()); - } - if (model.wasPropertyExplicitlySet("publicKey")) { - this.publicKey(model.getPublicKey()); - } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The OCID of the resource - * - * @return the value - */ - public String getId() { - return id; - } - - /** ODMS Agent name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * ODMS Agent name - * - * @return the value - */ - public String getDisplayName() { - return displayName; - } - - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * OCID of the compartment - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** The OCID of the Stream */ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private final String streamId; - - /** - * The OCID of the Stream - * - * @return the value - */ - public String getStreamId() { - return streamId; - } - - /** ODMS Agent public key. */ - @com.fasterxml.jackson.annotation.JsonProperty("publicKey") - private final String publicKey; - - /** - * ODMS Agent public key. - * - * @return the value - */ - public String getPublicKey() { - return publicKey; - } - - /** ODMS Agent version */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; - - /** - * ODMS Agent version - * - * @return the value - */ - public String getVersion() { - return version; - } - - /** The time the Agent was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the Agent was created. An RFC3339 formatted datetime string. - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time of the last Agent details update. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The current state of the ODMS on-premises Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; - - /** - * The current state of the ODMS on-premises Agent. - * - * @return the value - */ - public LifecycleStates getLifecycleState() { - return lifecycleState; - } - - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; - - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - * - * @return the value - */ - public String getLifecycleDetails() { - return lifecycleDetails; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @return the value - */ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - */ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - */ - public java.util.Map> getSystemTags() { - return systemTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("Agent("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", streamId=").append(String.valueOf(this.streamId)); - sb.append(", publicKey=").append(String.valueOf(this.publicKey)); - sb.append(", version=").append(String.valueOf(this.version)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof Agent)) { - return false; - } - - Agent other = (Agent) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.streamId, other.streamId) - && java.util.Objects.equals(this.publicKey, other.publicKey) - && java.util.Objects.equals(this.version, other.version) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.streamId == null ? 43 : this.streamId.hashCode()); - result = (result * PRIME) + (this.publicKey == null ? 43 : this.publicKey.hashCode()); - result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java deleted file mode 100644 index 022dd0ab20b..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageCollection.java +++ /dev/null @@ -1,133 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Results of an ODMS Agent Image search. Contains AgentImageSummary items.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AgentImageCollection.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AgentImageCollection - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"items"}) - public AgentImageCollection(java.util.List items) { - super(); - this.items = items; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Items in collection. */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * Items in collection. - * - * @param items the value to set - * @return this builder - */ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AgentImageCollection build() { - AgentImageCollection model = new AgentImageCollection(this.items); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentImageCollection 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); - } - - /** Items in collection. */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * Items in collection. - * - * @return the value - */ - public java.util.List getItems() { - return items; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentImageCollection("); - 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 AgentImageCollection)) { - return false; - } - - AgentImageCollection other = (AgentImageCollection) 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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java deleted file mode 100644 index e86cc3a4cba..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentSummary.java +++ /dev/null @@ -1,594 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * ODMS Agent Details
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AgentSummary.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AgentSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "id", - "displayName", - "compartmentId", - "streamId", - "version", - "timeCreated", - "timeUpdated", - "lifecycleState", - "lifecycleDetails", - "freeformTags", - "definedTags", - "systemTags" - }) - public AgentSummary( - String id, - String displayName, - String compartmentId, - String streamId, - String version, - java.util.Date timeCreated, - java.util.Date timeUpdated, - LifecycleStates lifecycleState, - String lifecycleDetails, - java.util.Map freeformTags, - java.util.Map> definedTags, - java.util.Map> systemTags) { - super(); - this.id = id; - this.displayName = displayName; - this.compartmentId = compartmentId; - this.streamId = streamId; - this.version = version; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.lifecycleState = lifecycleState; - this.lifecycleDetails = lifecycleDetails; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - this.systemTags = systemTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The OCID of the resource - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** ODMS Agent name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * ODMS Agent name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** The OCID of the Stream */ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private String streamId; - - /** - * The OCID of the Stream - * - * @param streamId the value to set - * @return this builder - */ - public Builder streamId(String streamId) { - this.streamId = streamId; - this.__explicitlySet__.add("streamId"); - return this; - } - /** ODMS Agent version */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - - /** - * ODMS Agent version - * - * @param version the value to set - * @return this builder - */ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); - return this; - } - /** The time the Agent was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Agent was created. An RFC3339 formatted datetime string. - * - * @param timeCreated the value to set - * @return this builder - */ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** The time of the last Agent details update. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. - * - * @param timeUpdated the value to set - * @return this builder - */ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** The current state of the ODMS on-premises Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleStates lifecycleState; - - /** - * The current state of the ODMS on-premises Agent. - * - * @param lifecycleState the value to set - * @return this builder - */ - public Builder lifecycleState(LifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; - - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - * - * @param lifecycleDetails the value to set - * @return this builder - */ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - */ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AgentSummary build() { - AgentSummary model = - new AgentSummary( - this.id, - this.displayName, - this.compartmentId, - this.streamId, - this.version, - this.timeCreated, - this.timeUpdated, - this.lifecycleState, - this.lifecycleDetails, - this.freeformTags, - this.definedTags, - this.systemTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentSummary model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("streamId")) { - this.streamId(model.getStreamId()); - } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * The OCID of the resource - * - * @return the value - */ - public String getId() { - return id; - } - - /** ODMS Agent name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * ODMS Agent name - * - * @return the value - */ - public String getDisplayName() { - return displayName; - } - - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * OCID of the compartment - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** The OCID of the Stream */ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private final String streamId; - - /** - * The OCID of the Stream - * - * @return the value - */ - public String getStreamId() { - return streamId; - } - - /** ODMS Agent version */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; - - /** - * ODMS Agent version - * - * @return the value - */ - public String getVersion() { - return version; - } - - /** The time the Agent was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private final java.util.Date timeCreated; - - /** - * The time the Agent was created. An RFC3339 formatted datetime string. - * - * @return the value - */ - public java.util.Date getTimeCreated() { - return timeCreated; - } - - /** The time of the last Agent details update. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private final java.util.Date timeUpdated; - - /** - * The time of the last Agent details update. An RFC3339 formatted datetime string. - * - * @return the value - */ - public java.util.Date getTimeUpdated() { - return timeUpdated; - } - - /** The current state of the ODMS on-premises Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; - - /** - * The current state of the ODMS on-premises Agent. - * - * @return the value - */ - public LifecycleStates getLifecycleState() { - return lifecycleState; - } - - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; - - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - * - * @return the value - */ - public String getLifecycleDetails() { - return lifecycleDetails; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @return the value - */ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - */ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - */ - public java.util.Map> getSystemTags() { - return systemTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentSummary("); - sb.append("super=").append(super.toString()); - sb.append("id=").append(String.valueOf(this.id)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", streamId=").append(String.valueOf(this.streamId)); - sb.append(", version=").append(String.valueOf(this.version)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AgentSummary)) { - return false; - } - - AgentSummary other = (AgentSummary) o; - return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.streamId, other.streamId) - && java.util.Objects.equals(this.version, other.version) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.streamId == null ? 43 : this.streamId.hashCode()); - result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java deleted file mode 100644 index 0a87eb08c25..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3Details.java +++ /dev/null @@ -1,180 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * AWS S3 bucket details used for source Connection resources with RDS_ORACLE type. Only supported - * for source Connection resources with RDS_ORACLE type.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AwsS3Details.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AwsS3Details extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "region"}) - public AwsS3Details(String name, String region) { - super(); - this.name = name; - this.region = region; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** S3 bucket name. */ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private String name; - - /** - * S3 bucket name. - * - * @param name the value to set - * @return this builder - */ - public Builder name(String name) { - this.name = name; - this.__explicitlySet__.add("name"); - return this; - } - /** - * AWS region code where the S3 bucket is located. Region code should match the documented - * available regions: - * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - */ - @com.fasterxml.jackson.annotation.JsonProperty("region") - private String region; - - /** - * AWS region code where the S3 bucket is located. Region code should match the documented - * available regions: - * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - * - * @param region the value to set - * @return this builder - */ - public Builder region(String region) { - this.region = region; - this.__explicitlySet__.add("region"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public AwsS3Details build() { - AwsS3Details model = new AwsS3Details(this.name, this.region); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AwsS3Details model) { - if (model.wasPropertyExplicitlySet("name")) { - this.name(model.getName()); - } - if (model.wasPropertyExplicitlySet("region")) { - this.region(model.getRegion()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** S3 bucket name. */ - @com.fasterxml.jackson.annotation.JsonProperty("name") - private final String name; - - /** - * S3 bucket name. - * - * @return the value - */ - public String getName() { - return name; - } - - /** - * AWS region code where the S3 bucket is located. Region code should match the documented - * available regions: - * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - */ - @com.fasterxml.jackson.annotation.JsonProperty("region") - private final String region; - - /** - * AWS region code where the S3 bucket is located. Region code should match the documented - * available regions: - * https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions - * - * @return the value - */ - public String getRegion() { - return region; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AwsS3Details("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", region=").append(String.valueOf(this.region)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof AwsS3Details)) { - return false; - } - - AwsS3Details other = (AwsS3Details) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.region, other.region) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java index abe35d192c4..cca59243f38 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeConnectionCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Change Database Connection compartment details.
+ * Details for changing the compartment for a Connection.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeConnectionCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -31,12 +31,12 @@ public ChangeConnectionCompartmentDetails(String compartmentId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the compartment to move the resource to. */ + /** The OCID of the compartment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment to move the resource to. + * The OCID of the compartment. * * @param compartmentId the value to set * @return this builder @@ -77,12 +77,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the compartment to move the resource to. */ + /** The OCID of the compartment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment to move the resource to. + * The OCID of the compartment. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java index 17003873428..9d2814092f6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeMigrationCompartmentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Change Migration compartment details.
+ * Details pertaining to change of a migration's compartment.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ChangeMigrationCompartmentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -31,12 +31,12 @@ public ChangeMigrationCompartmentDetails(String compartmentId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the compartment to move the resource to. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** - * The OCID of the compartment to move the resource to. + * The OCID of the resource being referenced. * * @param compartmentId the value to set * @return this builder @@ -77,12 +77,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the compartment to move the resource to. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * The OCID of the compartment to move the resource to. + * The OCID of the resource being referenced. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java index 50b0cccff5f..e1f96333534 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CloneMigrationDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Details that will override an existing Migration configuration that will be cloned.
+ * Customizable details when performing cloning of a migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,319 +15,59 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CloneMigrationDetails.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = CloneMigrationDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleCloneMigrationDetails.class, + name = "ORACLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlCloneMigrationDetails.class, + name = "MYSQL") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CloneMigrationDetails +public class CloneMigrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "displayName", "compartmentId", - "agentId", "sourceDatabaseConnectionId", - "sourceContainerDatabaseConnectionId", "targetDatabaseConnectionId", - "excludeObjects", - "includeObjects", - "vaultDetails", "freeformTags", "definedTags" }) - public CloneMigrationDetails( + protected CloneMigrationDetails( String displayName, String compartmentId, - String agentId, String sourceDatabaseConnectionId, - String sourceContainerDatabaseConnectionId, String targetDatabaseConnectionId, - java.util.List excludeObjects, - java.util.List includeObjects, - CreateVaultDetails vaultDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.displayName = displayName; this.compartmentId = compartmentId; - this.agentId = agentId; this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.excludeObjects = excludeObjects; - this.includeObjects = includeObjects; - this.vaultDetails = vaultDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Migration Display Name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Migration Display Name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical - * Migrations. - */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private String agentId; - - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical - * Migrations. - * - * @param agentId the value to set - * @return this builder - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - this.__explicitlySet__.add("agentId"); - return this; - } - /** The OCID of the Source Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private String sourceDatabaseConnectionId; - - /** - * The OCID of the Source Database Connection. - * - * @param sourceDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { - this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.__explicitlySet__.add("sourceDatabaseConnectionId"); - return this; - } - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. - * Only Connections of type Non-Autonomous can be used as source container databases. - */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. - * Only Connections of type Non-Autonomous can be used as source container databases. - * - * @param sourceContainerDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceContainerDatabaseConnectionId( - String sourceContainerDatabaseConnectionId) { - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; - this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); - return this; - } - /** The OCID of the Target Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") - private String targetDatabaseConnectionId; - - /** - * The OCID of the Target Database Connection. - * - * @param targetDatabaseConnectionId the value to set - * @return this builder - */ - public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { - this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.__explicitlySet__.add("targetDatabaseConnectionId"); - return this; - } - /** - * Database objects to exclude from migration, cannot be specified alongside - * 'includeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private java.util.List excludeObjects; - - /** - * Database objects to exclude from migration, cannot be specified alongside - * 'includeObjects' - * - * @param excludeObjects the value to set - * @return this builder - */ - public Builder excludeObjects(java.util.List excludeObjects) { - this.excludeObjects = excludeObjects; - this.__explicitlySet__.add("excludeObjects"); - return this; - } - /** - * Database objects to include from migration, cannot be specified alongside - * 'excludeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private java.util.List includeObjects; - - /** - * Database objects to include from migration, cannot be specified alongside - * 'excludeObjects' - * - * @param includeObjects the value to set - * @return this builder - */ - public Builder includeObjects(java.util.List includeObjects) { - this.includeObjects = includeObjects; - this.__explicitlySet__.add("includeObjects"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private CreateVaultDetails vaultDetails; - - public Builder vaultDetails(CreateVaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CloneMigrationDetails build() { - CloneMigrationDetails model = - new CloneMigrationDetails( - this.displayName, - this.compartmentId, - this.agentId, - this.sourceDatabaseConnectionId, - this.sourceContainerDatabaseConnectionId, - this.targetDatabaseConnectionId, - this.excludeObjects, - this.includeObjects, - this.vaultDetails, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CloneMigrationDetails model) { - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("agentId")) { - this.agentId(model.getAgentId()); - } - if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { - this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { - this.sourceContainerDatabaseConnectionId( - model.getSourceContainerDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { - this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("excludeObjects")) { - this.excludeObjects(model.getExcludeObjects()); - } - if (model.wasPropertyExplicitlySet("includeObjects")) { - this.includeObjects(model.getIncludeObjects()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - 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); - } - - /** Migration Display Name */ + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Migration Display Name + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ @@ -335,12 +75,12 @@ public String getDisplayName() { return displayName; } - /** OCID of the compartment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * OCID of the compartment + * The OCID of the resource being referenced. * * @return the value */ @@ -348,27 +88,12 @@ public String getCompartmentId() { return compartmentId; } - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical Migrations. - */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private final String agentId; - - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Logical Migrations. - * - * @return the value - */ - public String getAgentId() { - return agentId; - } - - /** The OCID of the Source Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") private final String sourceDatabaseConnectionId; /** - * The OCID of the Source Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -376,29 +101,12 @@ public String getSourceDatabaseConnectionId() { return sourceDatabaseConnectionId; } - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. Only - * Connections of type Non-Autonomous can be used as source container databases. - */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private final String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. Only - * Connections of type Non-Autonomous can be used as source container databases. - * - * @return the value - */ - public String getSourceContainerDatabaseConnectionId() { - return sourceContainerDatabaseConnectionId; - } - - /** The OCID of the Target Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") private final String targetDatabaseConnectionId; /** - * The OCID of the Target Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -407,52 +115,17 @@ public String getTargetDatabaseConnectionId() { } /** - * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private final java.util.List excludeObjects; - - /** - * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' - * - * @return the value - */ - public java.util.List getExcludeObjects() { - return excludeObjects; - } - - /** - * Database objects to include from migration, cannot be specified alongside 'excludeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private final java.util.List includeObjects; - - /** - * Database objects to include from migration, cannot be specified alongside 'excludeObjects' - * - * @return the value - */ - public java.util.List getIncludeObjects() { - return includeObjects; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final CreateVaultDetails vaultDetails; - - public CreateVaultDetails getVaultDetails() { - return vaultDetails; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ @@ -494,16 +167,10 @@ public String toString(boolean includeByteArrayContents) { sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", agentId=").append(String.valueOf(this.agentId)); sb.append(", sourceDatabaseConnectionId=") .append(String.valueOf(this.sourceDatabaseConnectionId)); - sb.append(", sourceContainerDatabaseConnectionId=") - .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", targetDatabaseConnectionId=") .append(String.valueOf(this.targetDatabaseConnectionId)); - sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); - sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -522,17 +189,10 @@ public boolean equals(Object o) { CloneMigrationDetails other = (CloneMigrationDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.agentId, other.agentId) && java.util.Objects.equals( this.sourceDatabaseConnectionId, other.sourceDatabaseConnectionId) - && java.util.Objects.equals( - this.sourceContainerDatabaseConnectionId, - other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( this.targetDatabaseConnectionId, other.targetDatabaseConnectionId) - && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) - && java.util.Objects.equals(this.includeObjects, other.includeObjects) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -546,29 +206,16 @@ public int hashCode() { result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); result = (result * PRIME) + (this.sourceDatabaseConnectionId == null ? 43 : this.sourceDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDatabaseConnectionId == null - ? 43 - : this.sourceContainerDatabaseConnectionId.hashCode()); result = (result * PRIME) + (this.targetDatabaseConnectionId == null ? 43 : this.targetDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); - result = - (result * PRIME) - + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java new file mode 100644 index 00000000000..1a837bd7809 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CompatibilityOption.java @@ -0,0 +1,71 @@ +/** + * 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.databasemigration.model; + +/** + * Compatibility option. FORCE_INNODB - Change CREATE TABLE statements to use the InnoDB storage + * engine for any tables that do not already use it. SKIP_INVALID_ACCOUNTS - Remove user accounts + * created with external authentication plugins that are not supported in MySQL HeatWave Service. + * STRIP_DEFINERS - Remove the DEFINER clause from views, routines, events, and triggers, so these + * objects are created with the default definer. STRIP_RESTRICTED_GRANTS - Remove specific + * privileges that are restricted by MySQL HeatWave Service from GRANT statements, so users and + * their roles cannot be given these privileges STRIP_TABLESPACES - Remove the TABLESPACE clause + * from CREATE TABLE statements, so all tables are created in their default tablespaces. + * IGNORE_WILDCARD_GRANTS - Ignore errors from grants on schemas with wildcards, which are + * interpreted differently in systems where the partial_revokes system variable is enabled. + * STRIP_INVALID_GRANTS - Strip grant statements which would fail when users are loaded. Such as + * grants referring to a specific routine which does not exist. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum CompatibilityOption implements com.oracle.bmc.http.internal.BmcEnum { + ForceInnodb("FORCE_INNODB"), + SkipInvalidAccounts("SKIP_INVALID_ACCOUNTS"), + StripDefiners("STRIP_DEFINERS"), + StripRestrictedGrants("STRIP_RESTRICTED_GRANTS"), + StripTablespaces("STRIP_TABLESPACES"), + IgnoreWildcardGrants("IGNORE_WILDCARD_GRANTS"), + StripInvalidGrants("STRIP_INVALID_GRANTS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(CompatibilityOption.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (CompatibilityOption v : CompatibilityOption.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + CompatibilityOption(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static CompatibilityOption create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'CompatibilityOption', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java deleted file mode 100644 index cc942960427..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectDescriptor.java +++ /dev/null @@ -1,248 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Connect Descriptor details.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ConnectDescriptor.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ConnectDescriptor - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"host", "port", "databaseServiceName", "connectString"}) - public ConnectDescriptor( - String host, Integer port, String databaseServiceName, String connectString) { - super(); - this.host = host; - this.port = port; - this.databaseServiceName = databaseServiceName; - this.connectString = connectString; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Host of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private String host; - - /** - * Host of the connect descriptor. - * - * @param host the value to set - * @return this builder - */ - public Builder host(String host) { - this.host = host; - this.__explicitlySet__.add("host"); - return this; - } - /** Port of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("port") - private Integer port; - - /** - * Port of the connect descriptor. - * - * @param port the value to set - * @return this builder - */ - public Builder port(Integer port) { - this.port = port; - this.__explicitlySet__.add("port"); - return this; - } - /** Database service name. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName") - private String databaseServiceName; - - /** - * Database service name. - * - * @param databaseServiceName the value to set - * @return this builder - */ - public Builder databaseServiceName(String databaseServiceName) { - this.databaseServiceName = databaseServiceName; - this.__explicitlySet__.add("databaseServiceName"); - return this; - } - /** Connect string. */ - @com.fasterxml.jackson.annotation.JsonProperty("connectString") - private String connectString; - - /** - * Connect string. - * - * @param connectString the value to set - * @return this builder - */ - public Builder connectString(String connectString) { - this.connectString = connectString; - this.__explicitlySet__.add("connectString"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ConnectDescriptor build() { - ConnectDescriptor model = - new ConnectDescriptor( - this.host, this.port, this.databaseServiceName, this.connectString); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ConnectDescriptor model) { - if (model.wasPropertyExplicitlySet("host")) { - this.host(model.getHost()); - } - if (model.wasPropertyExplicitlySet("port")) { - this.port(model.getPort()); - } - if (model.wasPropertyExplicitlySet("databaseServiceName")) { - this.databaseServiceName(model.getDatabaseServiceName()); - } - if (model.wasPropertyExplicitlySet("connectString")) { - this.connectString(model.getConnectString()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Host of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private final String host; - - /** - * Host of the connect descriptor. - * - * @return the value - */ - public String getHost() { - return host; - } - - /** Port of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("port") - private final Integer port; - - /** - * Port of the connect descriptor. - * - * @return the value - */ - public Integer getPort() { - return port; - } - - /** Database service name. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName") - private final String databaseServiceName; - - /** - * Database service name. - * - * @return the value - */ - public String getDatabaseServiceName() { - return databaseServiceName; - } - - /** Connect string. */ - @com.fasterxml.jackson.annotation.JsonProperty("connectString") - private final String connectString; - - /** - * Connect string. - * - * @return the value - */ - public String getConnectString() { - return connectString; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ConnectDescriptor("); - sb.append("super=").append(super.toString()); - sb.append("host=").append(String.valueOf(this.host)); - sb.append(", port=").append(String.valueOf(this.port)); - sb.append(", databaseServiceName=").append(String.valueOf(this.databaseServiceName)); - sb.append(", connectString=").append(String.valueOf(this.connectString)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ConnectDescriptor)) { - return false; - } - - ConnectDescriptor other = (ConnectDescriptor) o; - return java.util.Objects.equals(this.host, other.host) - && java.util.Objects.equals(this.port, other.port) - && java.util.Objects.equals(this.databaseServiceName, other.databaseServiceName) - && java.util.Objects.equals(this.connectString, other.connectString) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); - result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); - result = - (result * PRIME) - + (this.databaseServiceName == null - ? 43 - : this.databaseServiceName.hashCode()); - result = - (result * PRIME) - + (this.connectString == null ? 43 : this.connectString.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java index 71c41331a7e..45aa8f84a9f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Connection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Database Connection resource used for migrations.
+ * Represents the common details required for creating a new connection.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,560 +15,102 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Connection.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType", + defaultImpl = Connection.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MysqlConnection.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleConnection.class, + name = "ORACLE") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class Connection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { +public class Connection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", - "compartmentId", - "databaseType", - "manualDatabaseSubType", - "isDedicated", "displayName", - "databaseId", - "connectDescriptor", - "credentialsSecretId", - "certificateTdn", - "sshDetails", - "adminCredentials", - "replicationCredentials", - "privateEndpoint", - "vaultDetails", + "description", + "compartmentId", + "freeformTags", + "definedTags", + "systemTags", "lifecycleState", "lifecycleDetails", "timeCreated", "timeUpdated", - "freeformTags", - "definedTags", - "systemTags", - "nsgIds" + "vaultId", + "keyId", + "subnetId", + "ingressIps", + "nsgIds", + "username", + "password", + "replicationUsername", + "replicationPassword", + "secretId", + "privateEndpointId" }) - public Connection( + protected Connection( String id, - String compartmentId, - DatabaseConnectionTypes databaseType, - DatabaseManualConnectionSubTypes manualDatabaseSubType, - Boolean isDedicated, String displayName, - String databaseId, - ConnectDescriptor connectDescriptor, - String credentialsSecretId, - String certificateTdn, - SshDetails sshDetails, - AdminCredentials adminCredentials, - AdminCredentials replicationCredentials, - PrivateEndpointDetails privateEndpoint, - VaultDetails vaultDetails, - LifecycleStates lifecycleState, - String lifecycleDetails, - java.util.Date timeCreated, - java.util.Date timeUpdated, + String description, + String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, - java.util.List nsgIds) { + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + String secretId, + String privateEndpointId) { super(); this.id = id; - this.compartmentId = compartmentId; - this.databaseType = databaseType; - this.manualDatabaseSubType = manualDatabaseSubType; - this.isDedicated = isDedicated; this.displayName = displayName; - this.databaseId = databaseId; - this.connectDescriptor = connectDescriptor; - this.credentialsSecretId = credentialsSecretId; - this.certificateTdn = certificateTdn; - this.sshDetails = sshDetails; - this.adminCredentials = adminCredentials; - this.replicationCredentials = replicationCredentials; - this.privateEndpoint = privateEndpoint; - this.vaultDetails = vaultDetails; + this.description = description; + this.compartmentId = compartmentId; + this.freeformTags = freeformTags; + this.definedTags = definedTags; + this.systemTags = systemTags; this.lifecycleState = lifecycleState; this.lifecycleDetails = lifecycleDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - this.systemTags = systemTags; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; + this.ingressIps = ingressIps; this.nsgIds = nsgIds; + this.username = username; + this.password = password; + this.replicationUsername = replicationUsername; + this.replicationPassword = replicationPassword; + this.secretId = secretId; + this.privateEndpointId = privateEndpointId; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The OCID of the resource - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** Database connection type. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private DatabaseConnectionTypes databaseType; - - /** - * Database connection type. - * - * @param databaseType the value to set - * @return this builder - */ - public Builder databaseType(DatabaseConnectionTypes databaseType) { - this.databaseType = databaseType; - this.__explicitlySet__.add("databaseType"); - return this; - } - /** - * Database manual connection subtype. This value can only be specified for manual - * connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private DatabaseManualConnectionSubTypes manualDatabaseSubType; - - /** - * Database manual connection subtype. This value can only be specified for manual - * connections. - * - * @param manualDatabaseSubType the value to set - * @return this builder - */ - public Builder manualDatabaseSubType( - DatabaseManualConnectionSubTypes manualDatabaseSubType) { - this.manualDatabaseSubType = manualDatabaseSubType; - this.__explicitlySet__.add("manualDatabaseSubType"); - return this; - } - /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous - * Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") - private Boolean isDedicated; - - /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous - * Connections. - * - * @param isDedicated the value to set - * @return this builder - */ - public Builder isDedicated(Boolean isDedicated) { - this.isDedicated = isDedicated; - this.__explicitlySet__.add("isDedicated"); - return this; - } - /** Database Connection display name identifier. */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Database Connection display name identifier. - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** The OCID of the cloud database. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private String databaseId; - - /** - * The OCID of the cloud database. - * - * @param databaseId the value to set - * @return this builder - */ - public Builder databaseId(String databaseId) { - this.databaseId = databaseId; - this.__explicitlySet__.add("databaseId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private ConnectDescriptor connectDescriptor; - - public Builder connectDescriptor(ConnectDescriptor connectDescriptor) { - this.connectDescriptor = connectDescriptor; - this.__explicitlySet__.add("connectDescriptor"); - return this; - } - /** OCID of the Secret in the OCI vault containing the Database Connection credentials. */ - @com.fasterxml.jackson.annotation.JsonProperty("credentialsSecretId") - private String credentialsSecretId; - - /** - * OCID of the Secret in the OCI vault containing the Database Connection credentials. - * - * @param credentialsSecretId the value to set - * @return this builder - */ - public Builder credentialsSecretId(String credentialsSecretId) { - this.credentialsSecretId = credentialsSecretId; - this.__explicitlySet__.add("credentialsSecretId"); - return this; - } - /** - * This name is the distinguished name used while creating the certificate on target - * database. - */ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private String certificateTdn; - - /** - * This name is the distinguished name used while creating the certificate on target - * database. - * - * @param certificateTdn the value to set - * @return this builder - */ - public Builder certificateTdn(String certificateTdn) { - this.certificateTdn = certificateTdn; - this.__explicitlySet__.add("certificateTdn"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private SshDetails sshDetails; - - public Builder sshDetails(SshDetails sshDetails) { - this.sshDetails = sshDetails; - this.__explicitlySet__.add("sshDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private AdminCredentials adminCredentials; - - public Builder adminCredentials(AdminCredentials adminCredentials) { - this.adminCredentials = adminCredentials; - this.__explicitlySet__.add("adminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private AdminCredentials replicationCredentials; - - public Builder replicationCredentials(AdminCredentials replicationCredentials) { - this.replicationCredentials = replicationCredentials; - this.__explicitlySet__.add("replicationCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private PrivateEndpointDetails privateEndpoint; - - public Builder privateEndpoint(PrivateEndpointDetails privateEndpoint) { - this.privateEndpoint = privateEndpoint; - this.__explicitlySet__.add("privateEndpoint"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private VaultDetails vaultDetails; - - public Builder vaultDetails(VaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** The current state of the Connection resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleStates lifecycleState; - - /** - * The current state of the Connection resource. - * - * @param lifecycleState the value to set - * @return this builder - */ - public Builder lifecycleState(LifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; - - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - * - * @param lifecycleDetails the value to set - * @return this builder - */ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** The time the Connection resource was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Connection resource was created. An RFC3339 formatted datetime string. - * - * @param timeCreated the value to set - * @return this builder - */ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. - */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. - * - * @param timeUpdated the value to set - * @return this builder - */ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - */ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - * - * @param nsgIds the value to set - * @return this builder - */ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public Connection build() { - Connection model = - new Connection( - this.id, - this.compartmentId, - this.databaseType, - this.manualDatabaseSubType, - this.isDedicated, - this.displayName, - this.databaseId, - this.connectDescriptor, - this.credentialsSecretId, - this.certificateTdn, - this.sshDetails, - this.adminCredentials, - this.replicationCredentials, - this.privateEndpoint, - this.vaultDetails, - this.lifecycleState, - this.lifecycleDetails, - this.timeCreated, - this.timeUpdated, - this.freeformTags, - this.definedTags, - this.systemTags, - this.nsgIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(Connection model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("databaseType")) { - this.databaseType(model.getDatabaseType()); - } - if (model.wasPropertyExplicitlySet("manualDatabaseSubType")) { - this.manualDatabaseSubType(model.getManualDatabaseSubType()); - } - if (model.wasPropertyExplicitlySet("isDedicated")) { - this.isDedicated(model.getIsDedicated()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("databaseId")) { - this.databaseId(model.getDatabaseId()); - } - if (model.wasPropertyExplicitlySet("connectDescriptor")) { - this.connectDescriptor(model.getConnectDescriptor()); - } - if (model.wasPropertyExplicitlySet("credentialsSecretId")) { - this.credentialsSecretId(model.getCredentialsSecretId()); - } - if (model.wasPropertyExplicitlySet("certificateTdn")) { - this.certificateTdn(model.getCertificateTdn()); - } - if (model.wasPropertyExplicitlySet("sshDetails")) { - this.sshDetails(model.getSshDetails()); - } - if (model.wasPropertyExplicitlySet("adminCredentials")) { - this.adminCredentials(model.getAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("replicationCredentials")) { - this.replicationCredentials(model.getReplicationCredentials()); - } - if (model.wasPropertyExplicitlySet("privateEndpoint")) { - this.privateEndpoint(model.getPrivateEndpoint()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The OCID of the resource */ + /** The OCID of the connection being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the resource + * The OCID of the connection being referenced. * * @return the value */ @@ -576,181 +118,180 @@ public String getId() { return id; } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - /** - * OCID of the compartment - * - * @return the value + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. */ - public String getCompartmentId() { - return compartmentId; - } - - /** Database connection type. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private final DatabaseConnectionTypes databaseType; + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; /** - * Database connection type. + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public DatabaseConnectionTypes getDatabaseType() { - return databaseType; + public String getDisplayName() { + return displayName; } /** - * Database manual connection subtype. This value can only be specified for manual connections. + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. */ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private final DatabaseManualConnectionSubTypes manualDatabaseSubType; + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * Database manual connection subtype. This value can only be specified for manual connections. + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public DatabaseManualConnectionSubTypes getManualDatabaseSubType() { - return manualDatabaseSubType; + public String getDescription() { + return description; } - /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") - private final Boolean isDedicated; + /** The OCID of the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections. + * The OCID of the compartment. * * @return the value */ - public Boolean getIsDedicated() { - return isDedicated; + public String getCompartmentId() { + return compartmentId; } - /** Database Connection display name identifier. */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - /** - * Database Connection display name identifier. - * - * @return the value + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ - public String getDisplayName() { - return displayName; - } - - /** The OCID of the cloud database. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private final String databaseId; + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; /** - * The OCID of the cloud database. + * 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. Example: {"Department": + * "Finance"} * * @return the value */ - public String getDatabaseId() { - return databaseId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private final ConnectDescriptor connectDescriptor; - - public ConnectDescriptor getConnectDescriptor() { - return connectDescriptor; + public java.util.Map getFreeformTags() { + return freeformTags; } - /** OCID of the Secret in the OCI vault containing the Database Connection credentials. */ - @com.fasterxml.jackson.annotation.JsonProperty("credentialsSecretId") - private final String credentialsSecretId; + /** + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} + */ + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; /** - * OCID of the Secret in the OCI vault containing the Database Connection credentials. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} * * @return the value */ - public String getCredentialsSecretId() { - return credentialsSecretId; + public java.util.Map> getDefinedTags() { + return definedTags; } /** - * This name is the distinguished name used while creating the certificate on target database. + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private final String certificateTdn; + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; /** - * This name is the distinguished name used while creating the certificate on target database. + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} * * @return the value */ - public String getCertificateTdn() { - return certificateTdn; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private final SshDetails sshDetails; - - public SshDetails getSshDetails() { - return sshDetails; + public java.util.Map> getSystemTags() { + return systemTags; } - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private final AdminCredentials adminCredentials; + /** The Connection's current lifecycle state. */ + public enum LifecycleState implements com.oracle.bmc.http.internal.BmcEnum { + Creating("CREATING"), + Updating("UPDATING"), + Active("ACTIVE"), + Inactive("INACTIVE"), + Deleting("DELETING"), + Deleted("DELETED"), + Failed("FAILED"), - public AdminCredentials getAdminCredentials() { - return adminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private final AdminCredentials replicationCredentials; + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); - public AdminCredentials getReplicationCredentials() { - return replicationCredentials; - } + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(LifecycleState.class); - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private final PrivateEndpointDetails privateEndpoint; + private final String value; + private static java.util.Map map; - public PrivateEndpointDetails getPrivateEndpoint() { - return privateEndpoint; - } + static { + map = new java.util.HashMap<>(); + for (LifecycleState v : LifecycleState.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final VaultDetails vaultDetails; + LifecycleState(String value) { + this.value = value; + } - public VaultDetails getVaultDetails() { - return vaultDetails; - } + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } - /** The current state of the Connection resource. */ + @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 Connection's current lifecycle state. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; + private final LifecycleState lifecycleState; /** - * The current state of the Connection resource. + * The Connection's current lifecycle state. * * @return the value */ - public LifecycleStates getLifecycleState() { + public LifecycleState getLifecycleState() { return lifecycleState; } /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. + * The message describing the current state of the connection's lifecycle in detail. For + * example, can be used to provide actionable information for a connection in a Failed state. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") private final String lifecycleDetails; /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. + * The message describing the current state of the connection's lifecycle in detail. For + * example, can be used to provide actionable information for a connection in a Failed state. * * @return the value */ @@ -758,12 +299,16 @@ public String getLifecycleDetails() { return lifecycleDetails; } - /** The time the Connection resource was created. An RFC3339 formatted datetime string. */ + /** + * The time when this resource was created. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Connection resource was created. An RFC3339 formatted datetime string. + * The time when this resource was created. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -772,15 +317,15 @@ public java.util.Date getTimeCreated() { } /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. + * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. + * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -788,55 +333,56 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * OCI resource ID. * * @return the value */ - public java.util.Map getFreeformTags() { - return freeformTags; + public String getVaultId() { + return vaultId; } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + /** The OCID of the key used in cryptographic operations. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * The OCID of the key used in cryptographic operations. * * @return the value */ - public java.util.Map> getDefinedTags() { - return definedTags; + public String getKeyId() { + return keyId; } + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; + /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} + * OCI resource ID. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; + public String getSubnetId() { + return subnetId; + } + + /** List of ingress IP addresses from where to connect to this connection's privateIp. */ + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private final java.util.List ingressIps; /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} + * List of ingress IP addresses from where to connect to this connection's privateIp. * * @return the value */ - public java.util.Map> getSystemTags() { - return systemTags; + public java.util.List getIngressIps() { + return ingressIps; } /** An array of Network Security Group OCIDs used to define network access for Connections. */ @@ -852,6 +398,84 @@ public java.util.List getNsgIds() { return nsgIds; } + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; + + /** + * The username (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getUsername() { + return username; + } + + /** The password (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getPassword() { + return password; + } + + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private final String replicationUsername; + + /** + * The username (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getReplicationUsername() { + return replicationUsername; + } + + /** The password (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private final String replicationPassword; + + /** + * The password (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getReplicationPassword() { + return replicationPassword; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private final String secretId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSecretId() { + return secretId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId") + private final String privateEndpointId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getPrivateEndpointId() { + return privateEndpointId; + } + @Override public String toString() { return this.toString(true); @@ -868,28 +492,27 @@ public String toString(boolean includeByteArrayContents) { sb.append("Connection("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", databaseType=").append(String.valueOf(this.databaseType)); - sb.append(", manualDatabaseSubType=").append(String.valueOf(this.manualDatabaseSubType)); - sb.append(", isDedicated=").append(String.valueOf(this.isDedicated)); sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", databaseId=").append(String.valueOf(this.databaseId)); - sb.append(", connectDescriptor=").append(String.valueOf(this.connectDescriptor)); - sb.append(", credentialsSecretId=").append(String.valueOf(this.credentialsSecretId)); - sb.append(", certificateTdn=").append(String.valueOf(this.certificateTdn)); - sb.append(", sshDetails=").append(String.valueOf(this.sshDetails)); - sb.append(", adminCredentials=").append(String.valueOf(this.adminCredentials)); - sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials)); - sb.append(", privateEndpoint=").append(String.valueOf(this.privateEndpoint)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); + sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", systemTags=").append(String.valueOf(this.systemTags)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); - sb.append(", definedTags=").append(String.valueOf(this.definedTags)); - sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", ingressIps=").append(String.valueOf(this.ingressIps)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", password=").append(""); + sb.append(", replicationUsername=").append(String.valueOf(this.replicationUsername)); + sb.append(", replicationPassword=").append(""); + sb.append(", secretId=").append(String.valueOf(this.secretId)); + sb.append(", privateEndpointId=").append(String.valueOf(this.privateEndpointId)); sb.append(")"); return sb.toString(); } @@ -905,29 +528,27 @@ public boolean equals(Object o) { Connection other = (Connection) o; return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.databaseType, other.databaseType) - && java.util.Objects.equals(this.manualDatabaseSubType, other.manualDatabaseSubType) - && java.util.Objects.equals(this.isDedicated, other.isDedicated) && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.databaseId, other.databaseId) - && java.util.Objects.equals(this.connectDescriptor, other.connectDescriptor) - && java.util.Objects.equals(this.credentialsSecretId, other.credentialsSecretId) - && java.util.Objects.equals(this.certificateTdn, other.certificateTdn) - && java.util.Objects.equals(this.sshDetails, other.sshDetails) - && java.util.Objects.equals(this.adminCredentials, other.adminCredentials) - && java.util.Objects.equals( - this.replicationCredentials, other.replicationCredentials) - && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.freeformTags, other.freeformTags) + && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.systemTags, other.systemTags) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.ingressIps, other.ingressIps) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.replicationUsername, other.replicationUsername) + && java.util.Objects.equals(this.replicationPassword, other.replicationPassword) + && java.util.Objects.equals(this.secretId, other.secretId) + && java.util.Objects.equals(this.privateEndpointId, other.privateEndpointId) && super.equals(other); } @@ -936,54 +557,43 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) - + (this.manualDatabaseSubType == null - ? 43 - : this.manualDatabaseSubType.hashCode()); - result = (result * PRIME) + (this.isDedicated == null ? 43 : this.isDedicated.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) - + (this.connectDescriptor == null ? 43 : this.connectDescriptor.hashCode()); + + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.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.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.ingressIps == null ? 43 : this.ingressIps.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); result = (result * PRIME) - + (this.credentialsSecretId == null + + (this.replicationUsername == null ? 43 - : this.credentialsSecretId.hashCode()); + : this.replicationUsername.hashCode()); result = (result * PRIME) - + (this.certificateTdn == null ? 43 : this.certificateTdn.hashCode()); - result = (result * PRIME) + (this.sshDetails == null ? 43 : this.sshDetails.hashCode()); - result = - (result * PRIME) - + (this.adminCredentials == null ? 43 : this.adminCredentials.hashCode()); - result = - (result * PRIME) - + (this.replicationCredentials == null + + (this.replicationPassword == null ? 43 - : this.replicationCredentials.hashCode()); - result = - (result * PRIME) - + (this.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.hashCode()); + : this.replicationPassword.hashCode()); + result = (result * PRIME) + (this.secretId == null ? 43 : this.secretId.hashCode()); result = (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = - (result * PRIME) - + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); - result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + + (this.privateEndpointId == null ? 43 : this.privateEndpointId.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java index 766b9caf608..5b7b91e19ed 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Results of a Database Connection search. Contains DatabaseConnectionSummary items.
+ * Array of connection summary 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 @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ConnectionCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -31,12 +31,12 @@ public ConnectionCollection(java.util.List items) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Items in collection. */ + /** An array of Connection summaries. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private java.util.List items; /** - * Items in collection. + * An array of Connection summaries. * * @param items the value to set * @return this builder @@ -76,12 +76,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Items in collection. */ + /** An array of Connection summaries. */ @com.fasterxml.jackson.annotation.JsonProperty("items") private final java.util.List items; /** - * Items in collection. + * An array of Connection summaries. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java index 83f7cea0912..6268443ef48 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionSummary.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Database Connection Summary.
+ * Represents the parameters common for all connections in list 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 @@ -15,431 +15,131 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ConnectionSummary.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType", + defaultImpl = ConnectionSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleConnectionSummary.class, + name = "ORACLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MysqlConnectionSummary.class, + name = "MYSQL") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ConnectionSummary - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { +public class ConnectionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", - "compartmentId", - "databaseType", - "manualDatabaseSubType", - "isDedicated", "displayName", - "databaseId", - "timeCreated", - "timeUpdated", - "lifecycleState", - "lifecycleDetails", + "description", + "compartmentId", "freeformTags", "definedTags", "systemTags", + "lifecycleState", + "lifecycleDetails", + "timeCreated", + "timeUpdated", + "vaultId", + "keyId", + "subnetId", + "ingressIps", "nsgIds" }) - public ConnectionSummary( + protected ConnectionSummary( String id, - String compartmentId, - DatabaseConnectionTypes databaseType, - DatabaseManualConnectionSubTypes manualDatabaseSubType, - Boolean isDedicated, String displayName, - String databaseId, - java.util.Date timeCreated, - java.util.Date timeUpdated, - LifecycleStates lifecycleState, - String lifecycleDetails, + String description, + String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, java.util.Map> systemTags, + Connection.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, java.util.List nsgIds) { super(); this.id = id; - this.compartmentId = compartmentId; - this.databaseType = databaseType; - this.manualDatabaseSubType = manualDatabaseSubType; - this.isDedicated = isDedicated; this.displayName = displayName; - this.databaseId = databaseId; - this.timeCreated = timeCreated; - this.timeUpdated = timeUpdated; - this.lifecycleState = lifecycleState; - this.lifecycleDetails = lifecycleDetails; + this.description = description; + this.compartmentId = compartmentId; this.freeformTags = freeformTags; this.definedTags = definedTags; this.systemTags = systemTags; + this.lifecycleState = lifecycleState; + this.lifecycleDetails = lifecycleDetails; + this.timeCreated = timeCreated; + this.timeUpdated = timeUpdated; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; + this.ingressIps = ingressIps; this.nsgIds = nsgIds; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The OCID of the resource - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** Database connection type. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private DatabaseConnectionTypes databaseType; - - /** - * Database connection type. - * - * @param databaseType the value to set - * @return this builder - */ - public Builder databaseType(DatabaseConnectionTypes databaseType) { - this.databaseType = databaseType; - this.__explicitlySet__.add("databaseType"); - return this; - } - /** - * Database manual connection subtype. This value can only be specified for manual - * connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private DatabaseManualConnectionSubTypes manualDatabaseSubType; - - /** - * Database manual connection subtype. This value can only be specified for manual - * connections. - * - * @param manualDatabaseSubType the value to set - * @return this builder - */ - public Builder manualDatabaseSubType( - DatabaseManualConnectionSubTypes manualDatabaseSubType) { - this.manualDatabaseSubType = manualDatabaseSubType; - this.__explicitlySet__.add("manualDatabaseSubType"); - return this; - } - /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous - * Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") - private Boolean isDedicated; - - /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous - * Connections. - * - * @param isDedicated the value to set - * @return this builder - */ - public Builder isDedicated(Boolean isDedicated) { - this.isDedicated = isDedicated; - this.__explicitlySet__.add("isDedicated"); - return this; - } - /** Database Connection display name identifier. */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Database Connection display name identifier. - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** The OCID of the cloud database. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private String databaseId; - - /** - * The OCID of the cloud database. - * - * @param databaseId the value to set - * @return this builder - */ - public Builder databaseId(String databaseId) { - this.databaseId = databaseId; - this.__explicitlySet__.add("databaseId"); - return this; - } - /** The time the Connection resource was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Connection resource was created. An RFC3339 formatted datetime string. - * - * @param timeCreated the value to set - * @return this builder - */ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. - */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. - * - * @param timeUpdated the value to set - * @return this builder - */ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** The current state of the Connection resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private LifecycleStates lifecycleState; - - /** - * The current state of the Connection resource. - * - * @param lifecycleState the value to set - * @return this builder - */ - public Builder lifecycleState(LifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private String lifecycleDetails; - - /** - * A message describing the current state in more detail. For example, can be used to - * provide actionable information for a resource in Failed state. - * - * @param lifecycleDetails the value to set - * @return this builder - */ - public Builder lifecycleDetails(String lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - */ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - * - * @param nsgIds the value to set - * @return this builder - */ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public ConnectionSummary build() { - ConnectionSummary model = - new ConnectionSummary( - this.id, - this.compartmentId, - this.databaseType, - this.manualDatabaseSubType, - this.isDedicated, - this.displayName, - this.databaseId, - this.timeCreated, - this.timeUpdated, - this.lifecycleState, - this.lifecycleDetails, - this.freeformTags, - this.definedTags, - this.systemTags, - this.nsgIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } + /** The OCID of the connection being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ConnectionSummary model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("databaseType")) { - this.databaseType(model.getDatabaseType()); - } - if (model.wasPropertyExplicitlySet("manualDatabaseSubType")) { - this.manualDatabaseSubType(model.getManualDatabaseSubType()); - } - if (model.wasPropertyExplicitlySet("isDedicated")) { - this.isDedicated(model.getIsDedicated()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("databaseId")) { - this.databaseId(model.getDatabaseId()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } - return this; - } + /** + * The OCID of the connection being referenced. + * + * @return the value + */ + public String getId() { + return id; } - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; - public Builder toBuilder() { - return new Builder().copy(this); + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDisplayName() { + return displayName; } - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; + /** + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * The OCID of the resource + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public String getId() { - return id; + public String getDescription() { + return description; } - /** OCID of the compartment */ + /** The OCID of the compartment. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * OCID of the compartment + * The OCID of the compartment. * * @return the value */ @@ -447,81 +147,99 @@ public String getCompartmentId() { return compartmentId; } - /** Database connection type. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private final DatabaseConnectionTypes databaseType; + /** + * 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. Example: {"Department": + * "Finance"} + */ + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; /** - * Database connection type. + * 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. Example: {"Department": + * "Finance"} * * @return the value */ - public DatabaseConnectionTypes getDatabaseType() { - return databaseType; + public java.util.Map getFreeformTags() { + return freeformTags; } /** - * Database manual connection subtype. This value can only be specified for manual connections. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private final DatabaseManualConnectionSubTypes manualDatabaseSubType; + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; /** - * Database manual connection subtype. This value can only be specified for manual connections. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} * * @return the value */ - public DatabaseManualConnectionSubTypes getManualDatabaseSubType() { - return manualDatabaseSubType; + public java.util.Map> getDefinedTags() { + return definedTags; } /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections. + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("isDedicated") - private final Boolean isDedicated; + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private final java.util.Map> systemTags; /** - * True if the Autonomous Connection is dedicated. Not provided for Non-Autonomous Connections. + * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code + * {"orcl-cloud": {"free-tier-retained": "true"}}} * * @return the value */ - public Boolean getIsDedicated() { - return isDedicated; + public java.util.Map> getSystemTags() { + return systemTags; } - /** Database Connection display name identifier. */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; + /** Lifecycle state for connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private final Connection.LifecycleState lifecycleState; /** - * Database Connection display name identifier. + * Lifecycle state for connection. * * @return the value */ - public String getDisplayName() { - return displayName; + public Connection.LifecycleState getLifecycleState() { + return lifecycleState; } - /** The OCID of the cloud database. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private final String databaseId; + /** + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. + */ + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private final String lifecycleDetails; /** - * The OCID of the cloud database. + * A message describing the current state in more detail. For example, can be used to provide + * actionable information for a resource in Failed state. * * @return the value */ - public String getDatabaseId() { - return databaseId; + public String getLifecycleDetails() { + return lifecycleDetails; } - /** The time the Connection resource was created. An RFC3339 formatted datetime string. */ + /** + * The time when this resource was created. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. + */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Connection resource was created. An RFC3339 formatted datetime string. + * The time when this resource was created. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -530,15 +248,15 @@ public java.util.Date getTimeCreated() { } /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. + * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time of the last Connection resource details update. An RFC3339 formatted datetime - * string. + * The time when this resource was updated. An RFC3339 formatted datetime string such as {@code + * 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -546,85 +264,56 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** The current state of the Connection resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private final LifecycleStates lifecycleState; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; /** - * The current state of the Connection resource. + * OCI resource ID. * * @return the value */ - public LifecycleStates getLifecycleState() { - return lifecycleState; + public String getVaultId() { + return vaultId; } - /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. - */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private final String lifecycleDetails; + /** The OCID of the key used in cryptographic operations. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; /** - * A message describing the current state in more detail. For example, can be used to provide - * actionable information for a resource in Failed state. + * The OCID of the key used in cryptographic operations. * * @return the value */ - public String getLifecycleDetails() { - return lifecycleDetails; + public String getKeyId() { + return keyId; } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * OCI resource ID. * * @return the value */ - public java.util.Map getFreeformTags() { - return freeformTags; + public String getSubnetId() { + return subnetId; } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + /** List of ingress IP addresses from where to connect to this connection's privateIp. */ + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private final java.util.List ingressIps; /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * List of ingress IP addresses from where to connect to this connection's privateIp. * * @return the value */ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private final java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @return the value - */ - public java.util.Map> getSystemTags() { - return systemTags; + public java.util.List getIngressIps() { + return ingressIps; } /** An array of Network Security Group OCIDs used to define network access for Connections. */ @@ -656,19 +345,20 @@ public String toString(boolean includeByteArrayContents) { sb.append("ConnectionSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); - sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", databaseType=").append(String.valueOf(this.databaseType)); - sb.append(", manualDatabaseSubType=").append(String.valueOf(this.manualDatabaseSubType)); - sb.append(", isDedicated=").append(String.valueOf(this.isDedicated)); sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", databaseId=").append(String.valueOf(this.databaseId)); - sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); - sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); - sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); - sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(", systemTags=").append(String.valueOf(this.systemTags)); + sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); + sb.append(", lifecycleDetails=").append(String.valueOf(this.lifecycleDetails)); + sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); + sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); + sb.append(", ingressIps=").append(String.valueOf(this.ingressIps)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); sb.append(")"); return sb.toString(); @@ -685,19 +375,20 @@ public boolean equals(Object o) { ConnectionSummary other = (ConnectionSummary) o; return java.util.Objects.equals(this.id, other.id) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.databaseType, other.databaseType) - && java.util.Objects.equals(this.manualDatabaseSubType, other.manualDatabaseSubType) - && java.util.Objects.equals(this.isDedicated, other.isDedicated) && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.databaseId, other.databaseId) - && java.util.Objects.equals(this.timeCreated, other.timeCreated) - && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && java.util.Objects.equals(this.systemTags, other.systemTags) + && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) + && java.util.Objects.equals(this.lifecycleDetails, other.lifecycleDetails) + && java.util.Objects.equals(this.timeCreated, other.timeCreated) + && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.subnetId, other.subnetId) + && java.util.Objects.equals(this.ingressIps, other.ingressIps) && java.util.Objects.equals(this.nsgIds, other.nsgIds) && super.equals(other); } @@ -707,29 +398,26 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.hashCode()); - result = - (result * PRIME) - + (this.manualDatabaseSubType == null - ? 43 - : this.manualDatabaseSubType.hashCode()); - result = (result * PRIME) + (this.isDedicated == null ? 43 : this.isDedicated.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); - result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); - result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); + result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); + result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.lifecycleDetails == null ? 43 : this.lifecycleDetails.hashCode()); - result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); - result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); - result = (result * PRIME) + (this.systemTags == null ? 43 : this.systemTags.hashCode()); + result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); + result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.ingressIps == null ? 43 : this.ingressIps.hashCode()); result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); result = (result * PRIME) + super.hashCode(); return result; diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseManualConnectionSubTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionType.java similarity index 63% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseManualConnectionSubTypes.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionType.java index 193b889cbbd..8c025c28f8b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseManualConnectionSubTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ConnectionType.java @@ -4,11 +4,11 @@ */ package com.oracle.bmc.databasemigration.model; -/** Supported database manual connection subtypes */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public enum DatabaseManualConnectionSubTypes implements com.oracle.bmc.http.internal.BmcEnum { +/** The type of database connection. Example: ORACLE or MYSQL */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum ConnectionType implements com.oracle.bmc.http.internal.BmcEnum { + Mysql("MYSQL"), Oracle("ORACLE"), - RdsOracle("RDS_ORACLE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -17,21 +17,21 @@ public enum DatabaseManualConnectionSubTypes implements com.oracle.bmc.http.inte UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DatabaseManualConnectionSubTypes.class); + org.slf4j.LoggerFactory.getLogger(ConnectionType.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DatabaseManualConnectionSubTypes v : DatabaseManualConnectionSubTypes.values()) { + for (ConnectionType v : ConnectionType.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DatabaseManualConnectionSubTypes(String value) { + ConnectionType(String value) { this.value = value; } @@ -41,12 +41,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DatabaseManualConnectionSubTypes create(String key) { + public static ConnectionType create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DatabaseManualConnectionSubTypes', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'ConnectionType', returning UnknownEnumValue", key); return UnknownEnumValue; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedAutoCreateTablespaceDetails.java index 36f6ccb9a7c..e842fdc4257 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedAutoCreateTablespaceDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using auto create feature.
+ * Auto create tablespace settings that are valid for Dedicated Autonomous Databases.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateADBDedicatedAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -28,12 +28,16 @@ public final class CreateADBDedicatedAutoCreateTablespaceDetails extends CreateTargetTypeTablespaceDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** True to auto-create tablespace in the target Database. */ + /** + * Set this property to true to auto-create tablespaces in the target Database. Note: This + * is not applicable for Autonomous Database Serverless databases. + */ @com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate") private Boolean isAutoCreate; /** - * True to auto-create tablespace in the target Database. + * Set this property to true to auto-create tablespaces in the target Database. Note: This + * is not applicable for Autonomous Database Serverless databases. * * @param isAutoCreate the value to set * @return this builder @@ -43,12 +47,12 @@ public Builder isAutoCreate(Boolean isAutoCreate) { this.__explicitlySet__.add("isAutoCreate"); return this; } - /** True set tablespace to big file. */ + /** Set this property to true to enable tablespace of the type big file. */ @com.fasterxml.jackson.annotation.JsonProperty("isBigFile") private Boolean isBigFile; /** - * True set tablespace to big file. + * Set this property to true to enable tablespace of the type big file. * * @param isBigFile the value to set * @return this builder @@ -58,12 +62,16 @@ public Builder isBigFile(Boolean isBigFile) { this.__explicitlySet__.add("isBigFile"); return this; } - /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */ + /** + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set + * to true. + */ @com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs") private Integer extendSizeInMBs; /** - * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set + * to true. * * @param extendSizeInMBs the value to set * @return this builder @@ -145,12 +153,16 @@ public CreateADBDedicatedAutoCreateTablespaceDetails( this.blockSizeInKBs = blockSizeInKBs; } - /** True to auto-create tablespace in the target Database. */ + /** + * Set this property to true to auto-create tablespaces in the target Database. Note: This is + * not applicable for Autonomous Database Serverless databases. + */ @com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate") private final Boolean isAutoCreate; /** - * True to auto-create tablespace in the target Database. + * Set this property to true to auto-create tablespaces in the target Database. Note: This is + * not applicable for Autonomous Database Serverless databases. * * @return the value */ @@ -158,12 +170,12 @@ public Boolean getIsAutoCreate() { return isAutoCreate; } - /** True set tablespace to big file. */ + /** Set this property to true to enable tablespace of the type big file. */ @com.fasterxml.jackson.annotation.JsonProperty("isBigFile") private final Boolean isBigFile; /** - * True set tablespace to big file. + * Set this property to true to enable tablespace of the type big file. * * @return the value */ @@ -171,12 +183,16 @@ public Boolean getIsBigFile() { return isBigFile; } - /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */ + /** + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to + * true. + */ @com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs") private final Integer extendSizeInMBs; /** - * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to + * true. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedRemapTargetTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedRemapTargetTablespaceDetails.java index 3f75bef35ac..01152415024 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedRemapTargetTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBDedicatedRemapTargetTablespaceDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using remap feature.
+ * Remap tablespace settings that are valid for Dedicated Autonomous Databases.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateADBDedicatedRemapTargetTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -29,13 +29,15 @@ public final class CreateADBDedicatedRemapTargetTablespaceDetails @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private String remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. * * @param remapTarget the value to set * @return this builder @@ -82,12 +84,16 @@ public CreateADBDedicatedRemapTargetTablespaceDetails(String remapTarget) { this.remapTarget = remapTarget; } - /** Name of tablespace at target to which the source database tablespace need to be remapped. */ + /** + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. + */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private final String remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBServerlesTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBServerlesTablespaceDetails.java index 445033496c6..c4d8ee31086 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBServerlesTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateADBServerlesTablespaceDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-S target type using remap feature.
+ * Migration tablespace settings valid for Autonomous Database Serverless target type using remap + * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateADBServerlesTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java index b7286140ea8..013b5be2725 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdminCredentials.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateAdminCredentials.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectDescriptor.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectDescriptor.java deleted file mode 100644 index c3bb90cc7b7..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectDescriptor.java +++ /dev/null @@ -1,271 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Connect Descriptor details. Required for Manual and UserManagerOci connection types. If a Private - * Endpoint was specified for the Connection, the host should contain a valid IP address.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateConnectDescriptor.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateConnectDescriptor - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"host", "port", "databaseServiceName", "connectString"}) - public CreateConnectDescriptor( - String host, Integer port, String databaseServiceName, String connectString) { - super(); - this.host = host; - this.port = port; - this.databaseServiceName = databaseServiceName; - this.connectString = connectString; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** - * Host or IP address of the connect descriptor. Required if no connectString was specified. - */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private String host; - - /** - * Host or IP address of the connect descriptor. Required if no connectString was specified. - * - * @param host the value to set - * @return this builder - */ - public Builder host(String host) { - this.host = host; - this.__explicitlySet__.add("host"); - return this; - } - /** Port of the connect descriptor. Required if no connectString was specified. */ - @com.fasterxml.jackson.annotation.JsonProperty("port") - private Integer port; - - /** - * Port of the connect descriptor. Required if no connectString was specified. - * - * @param port the value to set - * @return this builder - */ - public Builder port(Integer port) { - this.port = port; - this.__explicitlySet__.add("port"); - return this; - } - /** Database service name. Required if no connectString was specified. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName") - private String databaseServiceName; - - /** - * Database service name. Required if no connectString was specified. - * - * @param databaseServiceName the value to set - * @return this builder - */ - public Builder databaseServiceName(String databaseServiceName) { - this.databaseServiceName = databaseServiceName; - this.__explicitlySet__.add("databaseServiceName"); - return this; - } - /** - * Connect String. Required if no host, port nor databaseServiceName were specified. If a - * Private Endpoint was specified in the Connection, the host entry should be a valid IP - * address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - */ - @com.fasterxml.jackson.annotation.JsonProperty("connectString") - private String connectString; - - /** - * Connect String. Required if no host, port nor databaseServiceName were specified. If a - * Private Endpoint was specified in the Connection, the host entry should be a valid IP - * address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - * - * @param connectString the value to set - * @return this builder - */ - public Builder connectString(String connectString) { - this.connectString = connectString; - this.__explicitlySet__.add("connectString"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateConnectDescriptor build() { - CreateConnectDescriptor model = - new CreateConnectDescriptor( - this.host, this.port, this.databaseServiceName, this.connectString); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateConnectDescriptor model) { - if (model.wasPropertyExplicitlySet("host")) { - this.host(model.getHost()); - } - if (model.wasPropertyExplicitlySet("port")) { - this.port(model.getPort()); - } - if (model.wasPropertyExplicitlySet("databaseServiceName")) { - this.databaseServiceName(model.getDatabaseServiceName()); - } - if (model.wasPropertyExplicitlySet("connectString")) { - this.connectString(model.getConnectString()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Host or IP address of the connect descriptor. Required if no connectString was specified. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private final String host; - - /** - * Host or IP address of the connect descriptor. Required if no connectString was specified. - * - * @return the value - */ - public String getHost() { - return host; - } - - /** Port of the connect descriptor. Required if no connectString was specified. */ - @com.fasterxml.jackson.annotation.JsonProperty("port") - private final Integer port; - - /** - * Port of the connect descriptor. Required if no connectString was specified. - * - * @return the value - */ - public Integer getPort() { - return port; - } - - /** Database service name. Required if no connectString was specified. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName") - private final String databaseServiceName; - - /** - * Database service name. Required if no connectString was specified. - * - * @return the value - */ - public String getDatabaseServiceName() { - return databaseServiceName; - } - - /** - * Connect String. Required if no host, port nor databaseServiceName were specified. If a - * Private Endpoint was specified in the Connection, the host entry should be a valid IP - * address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - */ - @com.fasterxml.jackson.annotation.JsonProperty("connectString") - private final String connectString; - - /** - * Connect String. Required if no host, port nor databaseServiceName were specified. If a - * Private Endpoint was specified in the Connection, the host entry should be a valid IP - * address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - * - * @return the value - */ - public String getConnectString() { - return connectString; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateConnectDescriptor("); - sb.append("super=").append(super.toString()); - sb.append("host=").append(String.valueOf(this.host)); - sb.append(", port=").append(String.valueOf(this.port)); - sb.append(", databaseServiceName=").append(String.valueOf(this.databaseServiceName)); - sb.append(", connectString=").append(String.valueOf(this.connectString)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateConnectDescriptor)) { - return false; - } - - CreateConnectDescriptor other = (CreateConnectDescriptor) o; - return java.util.Objects.equals(this.host, other.host) - && java.util.Objects.equals(this.port, other.port) - && java.util.Objects.equals(this.databaseServiceName, other.databaseServiceName) - && java.util.Objects.equals(this.connectString, other.connectString) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); - result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); - result = - (result * PRIME) - + (this.databaseServiceName == null - ? 43 - : this.databaseServiceName.hashCode()); - result = - (result * PRIME) - + (this.connectString == null ? 43 : this.connectString.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java index 387e3974d2e..c7b3a210463 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateConnectionDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Details to create a Database Connection resource.
+ * The information about a new Connection.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,439 +15,80 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateConnectionDetails.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType", + defaultImpl = CreateConnectionDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateMysqlConnectionDetails.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleConnectionDetails.class, + name = "ORACLE") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateConnectionDetails +public class CreateConnectionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ - "compartmentId", "displayName", - "databaseType", - "manualDatabaseSubType", - "databaseId", - "connectDescriptor", - "certificateTdn", - "tlsWallet", - "tlsKeystore", - "sshDetails", - "adminCredentials", - "replicationCredentials", - "privateEndpoint", - "vaultDetails", + "description", + "compartmentId", "freeformTags", "definedTags", - "nsgIds" + "vaultId", + "keyId", + "subnetId", + "nsgIds", + "username", + "password", + "replicationUsername", + "replicationPassword" }) - public CreateConnectionDetails( - String compartmentId, + protected CreateConnectionDetails( String displayName, - DatabaseConnectionTypes databaseType, - DatabaseManualConnectionSubTypes manualDatabaseSubType, - String databaseId, - CreateConnectDescriptor connectDescriptor, - String certificateTdn, - String tlsWallet, - String tlsKeystore, - CreateSshDetails sshDetails, - CreateAdminCredentials adminCredentials, - CreateAdminCredentials replicationCredentials, - CreatePrivateEndpoint privateEndpoint, - CreateVaultDetails vaultDetails, + String description, + String compartmentId, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.List nsgIds) { + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword) { super(); - this.compartmentId = compartmentId; this.displayName = displayName; - this.databaseType = databaseType; - this.manualDatabaseSubType = manualDatabaseSubType; - this.databaseId = databaseId; - this.connectDescriptor = connectDescriptor; - this.certificateTdn = certificateTdn; - this.tlsWallet = tlsWallet; - this.tlsKeystore = tlsKeystore; - this.sshDetails = sshDetails; - this.adminCredentials = adminCredentials; - this.replicationCredentials = replicationCredentials; - this.privateEndpoint = privateEndpoint; - this.vaultDetails = vaultDetails; + this.description = description; + this.compartmentId = compartmentId; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; this.nsgIds = nsgIds; + this.username = username; + this.password = password; + this.replicationUsername = replicationUsername; + this.replicationPassword = replicationPassword; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** Database Connection display name identifier. */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Database Connection display name identifier. - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** Database connection type. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private DatabaseConnectionTypes databaseType; - - /** - * Database connection type. - * - * @param databaseType the value to set - * @return this builder - */ - public Builder databaseType(DatabaseConnectionTypes databaseType) { - this.databaseType = databaseType; - this.__explicitlySet__.add("databaseType"); - return this; - } - /** - * Database manual connection subtype. This value can only be specified for manual - * connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private DatabaseManualConnectionSubTypes manualDatabaseSubType; - - /** - * Database manual connection subtype. This value can only be specified for manual - * connections. - * - * @param manualDatabaseSubType the value to set - * @return this builder - */ - public Builder manualDatabaseSubType( - DatabaseManualConnectionSubTypes manualDatabaseSubType) { - this.manualDatabaseSubType = manualDatabaseSubType; - this.__explicitlySet__.add("manualDatabaseSubType"); - return this; - } - /** - * The OCID of the cloud database. Required if the database connection type is Autonomous. - */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private String databaseId; - - /** - * The OCID of the cloud database. Required if the database connection type is Autonomous. - * - * @param databaseId the value to set - * @return this builder - */ - public Builder databaseId(String databaseId) { - this.databaseId = databaseId; - this.__explicitlySet__.add("databaseId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private CreateConnectDescriptor connectDescriptor; - - public Builder connectDescriptor(CreateConnectDescriptor connectDescriptor) { - this.connectDescriptor = connectDescriptor; - this.__explicitlySet__.add("connectDescriptor"); - return this; - } - /** - * This name is the distinguished name used while creating the certificate on target - * database. Requires a TLS wallet to be specified. Not required for source container - * database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private String certificateTdn; - - /** - * This name is the distinguished name used while creating the certificate on target - * database. Requires a TLS wallet to be specified. Not required for source container - * database connections. - * - * @param certificateTdn the value to set - * @return this builder - */ - public Builder certificateTdn(String certificateTdn) { - this.certificateTdn = certificateTdn; - this.__explicitlySet__.add("certificateTdn"); - return this; - } - /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsWallet") - private String tlsWallet; - - /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. - * - * @param tlsWallet the value to set - * @return this builder - */ - public Builder tlsWallet(String tlsWallet) { - this.tlsWallet = tlsWallet; - this.__explicitlySet__.add("tlsWallet"); - return this; - } - /** - * keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. - * Not required for source container database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsKeystore") - private String tlsKeystore; - - /** - * keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. - * Not required for source container database connections. - * - * @param tlsKeystore the value to set - * @return this builder - */ - public Builder tlsKeystore(String tlsKeystore) { - this.tlsKeystore = tlsKeystore; - this.__explicitlySet__.add("tlsKeystore"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private CreateSshDetails sshDetails; - - public Builder sshDetails(CreateSshDetails sshDetails) { - this.sshDetails = sshDetails; - this.__explicitlySet__.add("sshDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private CreateAdminCredentials adminCredentials; - - public Builder adminCredentials(CreateAdminCredentials adminCredentials) { - this.adminCredentials = adminCredentials; - this.__explicitlySet__.add("adminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private CreateAdminCredentials replicationCredentials; - - public Builder replicationCredentials(CreateAdminCredentials replicationCredentials) { - this.replicationCredentials = replicationCredentials; - this.__explicitlySet__.add("replicationCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private CreatePrivateEndpoint privateEndpoint; - - public Builder privateEndpoint(CreatePrivateEndpoint privateEndpoint) { - this.privateEndpoint = privateEndpoint; - this.__explicitlySet__.add("privateEndpoint"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private CreateVaultDetails vaultDetails; - - public Builder vaultDetails(CreateVaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - * - * @param nsgIds the value to set - * @return this builder - */ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateConnectionDetails build() { - CreateConnectionDetails model = - new CreateConnectionDetails( - this.compartmentId, - this.displayName, - this.databaseType, - this.manualDatabaseSubType, - this.databaseId, - this.connectDescriptor, - this.certificateTdn, - this.tlsWallet, - this.tlsKeystore, - this.sshDetails, - this.adminCredentials, - this.replicationCredentials, - this.privateEndpoint, - this.vaultDetails, - this.freeformTags, - this.definedTags, - this.nsgIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateConnectionDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("databaseType")) { - this.databaseType(model.getDatabaseType()); - } - if (model.wasPropertyExplicitlySet("manualDatabaseSubType")) { - this.manualDatabaseSubType(model.getManualDatabaseSubType()); - } - if (model.wasPropertyExplicitlySet("databaseId")) { - this.databaseId(model.getDatabaseId()); - } - if (model.wasPropertyExplicitlySet("connectDescriptor")) { - this.connectDescriptor(model.getConnectDescriptor()); - } - if (model.wasPropertyExplicitlySet("certificateTdn")) { - this.certificateTdn(model.getCertificateTdn()); - } - if (model.wasPropertyExplicitlySet("tlsWallet")) { - this.tlsWallet(model.getTlsWallet()); - } - if (model.wasPropertyExplicitlySet("tlsKeystore")) { - this.tlsKeystore(model.getTlsKeystore()); - } - if (model.wasPropertyExplicitlySet("sshDetails")) { - this.sshDetails(model.getSshDetails()); - } - if (model.wasPropertyExplicitlySet("adminCredentials")) { - this.adminCredentials(model.getAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("replicationCredentials")) { - this.replicationCredentials(model.getReplicationCredentials()); - } - if (model.wasPropertyExplicitlySet("privateEndpoint")) { - this.privateEndpoint(model.getPrivateEndpoint()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - /** - * OCID of the compartment - * - * @return the value + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. */ - public String getCompartmentId() { - return compartmentId; - } - - /** Database Connection display name identifier. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Database Connection display name identifier. + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ @@ -455,187 +96,174 @@ public String getDisplayName() { return displayName; } - /** Database connection type. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseType") - private final DatabaseConnectionTypes databaseType; - - /** - * Database connection type. - * - * @return the value - */ - public DatabaseConnectionTypes getDatabaseType() { - return databaseType; - } - /** - * Database manual connection subtype. This value can only be specified for manual connections. + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. */ - @com.fasterxml.jackson.annotation.JsonProperty("manualDatabaseSubType") - private final DatabaseManualConnectionSubTypes manualDatabaseSubType; + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * Database manual connection subtype. This value can only be specified for manual connections. + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public DatabaseManualConnectionSubTypes getManualDatabaseSubType() { - return manualDatabaseSubType; + public String getDescription() { + return description; } - /** The OCID of the cloud database. Required if the database connection type is Autonomous. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private final String databaseId; + /** The OCID of the compartment. */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; /** - * The OCID of the cloud database. Required if the database connection type is Autonomous. + * The OCID of the compartment. * * @return the value */ - public String getDatabaseId() { - return databaseId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private final CreateConnectDescriptor connectDescriptor; - - public CreateConnectDescriptor getConnectDescriptor() { - return connectDescriptor; + public String getCompartmentId() { + return compartmentId; } /** - * This name is the distinguished name used while creating the certificate on target database. - * Requires a TLS wallet to be specified. Not required for source container database - * connections. + * 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. Example: {"Department": + * "Finance"} */ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private final String certificateTdn; + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; /** - * This name is the distinguished name used while creating the certificate on target database. - * Requires a TLS wallet to be specified. Not required for source container database - * connections. + * 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. Example: {"Department": + * "Finance"} * * @return the value */ - public String getCertificateTdn() { - return certificateTdn; + public java.util.Map getFreeformTags() { + return freeformTags; } /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsWallet") - private final String tlsWallet; + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} * * @return the value */ - public String getTlsWallet() { - return tlsWallet; + public java.util.Map> getDefinedTags() { + return definedTags; } - /** - * keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not - * required for source container database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsKeystore") - private final String tlsKeystore; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; /** - * keystore.jks file contents; base64 encoded String. Requires a TLS wallet to be specified. Not - * required for source container database connections. + * OCI resource ID. * * @return the value */ - public String getTlsKeystore() { - return tlsKeystore; + public String getVaultId() { + return vaultId; } - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private final CreateSshDetails sshDetails; + /** The OCID of the key used in cryptographic operations. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; - public CreateSshDetails getSshDetails() { - return sshDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private final CreateAdminCredentials adminCredentials; - - public CreateAdminCredentials getAdminCredentials() { - return adminCredentials; + /** + * The OCID of the key used in cryptographic operations. + * + * @return the value + */ + public String getKeyId() { + return keyId; } - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private final CreateAdminCredentials replicationCredentials; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; - public CreateAdminCredentials getReplicationCredentials() { - return replicationCredentials; + /** + * OCI resource ID. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; } - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private final CreatePrivateEndpoint privateEndpoint; + /** An array of Network Security Group OCIDs used to define network access for Connections. */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; - public CreatePrivateEndpoint getPrivateEndpoint() { - return privateEndpoint; + /** + * An array of Network Security Group OCIDs used to define network access for Connections. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; } - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final CreateVaultDetails vaultDetails; - - public CreateVaultDetails getVaultDetails() { - return vaultDetails; - } + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * The username (credential) used when creating or updating this resource. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + public String getUsername() { + return username; + } + + /** The password (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * The password (credential) used when creating or updating this resource. * * @return the value */ - public java.util.Map getFreeformTags() { - return freeformTags; + public String getPassword() { + return password; } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private final String replicationUsername; /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * The username (credential) used when creating or updating this resource. * * @return the value */ - public java.util.Map> getDefinedTags() { - return definedTags; + public String getReplicationUsername() { + return replicationUsername; } - /** An array of Network Security Group OCIDs used to define network access for Connections. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + /** The password (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private final String replicationPassword; /** - * An array of Network Security Group OCIDs used to define network access for Connections. + * The password (credential) used when creating or updating this resource. * * @return the value */ - public java.util.List getNsgIds() { - return nsgIds; + public String getReplicationPassword() { + return replicationPassword; } @Override @@ -653,23 +281,19 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateConnectionDetails("); sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", databaseType=").append(String.valueOf(this.databaseType)); - sb.append(", manualDatabaseSubType=").append(String.valueOf(this.manualDatabaseSubType)); - sb.append(", databaseId=").append(String.valueOf(this.databaseId)); - sb.append(", connectDescriptor=").append(String.valueOf(this.connectDescriptor)); - sb.append(", certificateTdn=").append(String.valueOf(this.certificateTdn)); - sb.append(", tlsWallet=").append(String.valueOf(this.tlsWallet)); - sb.append(", tlsKeystore=").append(String.valueOf(this.tlsKeystore)); - sb.append(", sshDetails=").append(String.valueOf(this.sshDetails)); - sb.append(", adminCredentials=").append(String.valueOf(this.adminCredentials)); - sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials)); - sb.append(", privateEndpoint=").append(String.valueOf(this.privateEndpoint)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", password=").append(""); + sb.append(", replicationUsername=").append(String.valueOf(this.replicationUsername)); + sb.append(", replicationPassword=").append(""); sb.append(")"); return sb.toString(); } @@ -684,24 +308,19 @@ public boolean equals(Object o) { } CreateConnectionDetails other = (CreateConnectionDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.databaseType, other.databaseType) - && java.util.Objects.equals(this.manualDatabaseSubType, other.manualDatabaseSubType) - && java.util.Objects.equals(this.databaseId, other.databaseId) - && java.util.Objects.equals(this.connectDescriptor, other.connectDescriptor) - && java.util.Objects.equals(this.certificateTdn, other.certificateTdn) - && java.util.Objects.equals(this.tlsWallet, other.tlsWallet) - && java.util.Objects.equals(this.tlsKeystore, other.tlsKeystore) - && java.util.Objects.equals(this.sshDetails, other.sshDetails) - && java.util.Objects.equals(this.adminCredentials, other.adminCredentials) - && java.util.Objects.equals( - this.replicationCredentials, other.replicationCredentials) - && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.replicationUsername, other.replicationUsername) + && java.util.Objects.equals(this.replicationPassword, other.replicationPassword) && super.equals(other); } @@ -709,41 +328,29 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.databaseType == null ? 43 : this.databaseType.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.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); result = (result * PRIME) - + (this.manualDatabaseSubType == null + + (this.replicationUsername == null ? 43 - : this.manualDatabaseSubType.hashCode()); - result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); - result = - (result * PRIME) - + (this.connectDescriptor == null ? 43 : this.connectDescriptor.hashCode()); + : this.replicationUsername.hashCode()); result = (result * PRIME) - + (this.certificateTdn == null ? 43 : this.certificateTdn.hashCode()); - result = (result * PRIME) + (this.tlsWallet == null ? 43 : this.tlsWallet.hashCode()); - result = (result * PRIME) + (this.tlsKeystore == null ? 43 : this.tlsKeystore.hashCode()); - result = (result * PRIME) + (this.sshDetails == null ? 43 : this.sshDetails.hashCode()); - result = - (result * PRIME) - + (this.adminCredentials == null ? 43 : this.adminCredentials.hashCode()); - result = - (result * PRIME) - + (this.replicationCredentials == null + + (this.replicationPassword == null ? 43 - : this.replicationCredentials.hashCode()); - result = - (result * PRIME) - + (this.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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.nsgIds == null ? 43 : this.nsgIds.hashCode()); + : this.replicationPassword.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateCurlTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateCurlTransferDetails.java index 66b834b76e5..a869ccd585e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateCurlTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateCurlTransferDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateCurlTransferDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpParameters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpParameters.java index 2c7d8acee73..fa7cf9b4139 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpParameters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpParameters.java @@ -5,10 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional parameters for Data Pump Export and Import. Refer to [Configuring Optional Initial Load - * Advanced - * Settings](https://docs.us.oracle.com/en/cloud/paas/database-migration/dmsus/working-migration-resources.html#GUID-24BD3054-FDF8-48FF-8492-636C1D4B71ED) - *
+ * Optional parameters for Data Pump Export and Import.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -18,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDataPumpParameters.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataTransferMediumDetails.java deleted file mode 100644 index f710d2d3df3..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataTransferMediumDetails.java +++ /dev/null @@ -1,187 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Data Transfer Medium details for the Migration. If not specified, it will default to Database - * Link. Only one type of data transfer medium can be specified, except for the case of Amazon RDS - * Oracle as source, where Object Storage Details along with AwsS3Details are required.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDataTransferMediumDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateDataTransferMediumDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "databaseLinkDetails", - "objectStorageDetails", - "awsS3Details" - }) - public CreateDataTransferMediumDetails( - CreateDatabaseLinkDetails databaseLinkDetails, - CreateObjectStoreBucket objectStorageDetails, - CreateAwsS3Details awsS3Details) { - super(); - this.databaseLinkDetails = databaseLinkDetails; - this.objectStorageDetails = objectStorageDetails; - this.awsS3Details = awsS3Details; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("databaseLinkDetails") - private CreateDatabaseLinkDetails databaseLinkDetails; - - public Builder databaseLinkDetails(CreateDatabaseLinkDetails databaseLinkDetails) { - this.databaseLinkDetails = databaseLinkDetails; - this.__explicitlySet__.add("databaseLinkDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("objectStorageDetails") - private CreateObjectStoreBucket objectStorageDetails; - - public Builder objectStorageDetails(CreateObjectStoreBucket objectStorageDetails) { - this.objectStorageDetails = objectStorageDetails; - this.__explicitlySet__.add("objectStorageDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("awsS3Details") - private CreateAwsS3Details awsS3Details; - - public Builder awsS3Details(CreateAwsS3Details awsS3Details) { - this.awsS3Details = awsS3Details; - this.__explicitlySet__.add("awsS3Details"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateDataTransferMediumDetails build() { - CreateDataTransferMediumDetails model = - new CreateDataTransferMediumDetails( - this.databaseLinkDetails, this.objectStorageDetails, this.awsS3Details); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDataTransferMediumDetails model) { - if (model.wasPropertyExplicitlySet("databaseLinkDetails")) { - this.databaseLinkDetails(model.getDatabaseLinkDetails()); - } - if (model.wasPropertyExplicitlySet("objectStorageDetails")) { - this.objectStorageDetails(model.getObjectStorageDetails()); - } - if (model.wasPropertyExplicitlySet("awsS3Details")) { - this.awsS3Details(model.getAwsS3Details()); - } - 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("databaseLinkDetails") - private final CreateDatabaseLinkDetails databaseLinkDetails; - - public CreateDatabaseLinkDetails getDatabaseLinkDetails() { - return databaseLinkDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("objectStorageDetails") - private final CreateObjectStoreBucket objectStorageDetails; - - public CreateObjectStoreBucket getObjectStorageDetails() { - return objectStorageDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("awsS3Details") - private final CreateAwsS3Details awsS3Details; - - public CreateAwsS3Details getAwsS3Details() { - return awsS3Details; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDataTransferMediumDetails("); - sb.append("super=").append(super.toString()); - sb.append("databaseLinkDetails=").append(String.valueOf(this.databaseLinkDetails)); - sb.append(", objectStorageDetails=").append(String.valueOf(this.objectStorageDetails)); - sb.append(", awsS3Details=").append(String.valueOf(this.awsS3Details)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateDataTransferMediumDetails)) { - return false; - } - - CreateDataTransferMediumDetails other = (CreateDataTransferMediumDetails) o; - return java.util.Objects.equals(this.databaseLinkDetails, other.databaseLinkDetails) - && java.util.Objects.equals(this.objectStorageDetails, other.objectStorageDetails) - && java.util.Objects.equals(this.awsS3Details, other.awsS3Details) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.databaseLinkDetails == null - ? 43 - : this.databaseLinkDetails.hashCode()); - result = - (result * PRIME) - + (this.objectStorageDetails == null - ? 43 - : this.objectStorageDetails.hashCode()); - result = (result * PRIME) + (this.awsS3Details == null ? 43 : this.awsS3Details.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDirectoryObject.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDirectoryObject.java index 044ca0b0cb5..260918030c4 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDirectoryObject.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDirectoryObject.java @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateDirectoryObject.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateExtract.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateExtract.java index 69a8c351146..bdb2f07202b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateExtract.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateExtract.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CreateExtract.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateDetails.java deleted file mode 100644 index 48b092d48c1..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateDetails.java +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate Microservices. Required for online logical migration.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateGoldenGateDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateGoldenGateDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"hub", "settings"}) - public CreateGoldenGateDetails(CreateGoldenGateHub hub, CreateGoldenGateSettings settings) { - super(); - this.hub = hub; - this.settings = settings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("hub") - private CreateGoldenGateHub hub; - - public Builder hub(CreateGoldenGateHub hub) { - this.hub = hub; - this.__explicitlySet__.add("hub"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private CreateGoldenGateSettings settings; - - public Builder settings(CreateGoldenGateSettings settings) { - this.settings = settings; - this.__explicitlySet__.add("settings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateGoldenGateDetails build() { - CreateGoldenGateDetails model = new CreateGoldenGateDetails(this.hub, this.settings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateGoldenGateDetails model) { - if (model.wasPropertyExplicitlySet("hub")) { - this.hub(model.getHub()); - } - if (model.wasPropertyExplicitlySet("settings")) { - this.settings(model.getSettings()); - } - 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("hub") - private final CreateGoldenGateHub hub; - - public CreateGoldenGateHub getHub() { - return hub; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final CreateGoldenGateSettings settings; - - public CreateGoldenGateSettings getSettings() { - return settings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateGoldenGateDetails("); - sb.append("super=").append(super.toString()); - sb.append("hub=").append(String.valueOf(this.hub)); - sb.append(", settings=").append(String.valueOf(this.settings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateGoldenGateDetails)) { - return false; - } - - CreateGoldenGateDetails other = (CreateGoldenGateDetails) o; - return java.util.Objects.equals(this.hub, other.hub) - && java.util.Objects.equals(this.settings, other.settings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.hub == null ? 43 : this.hub.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHub.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHub.java deleted file mode 100644 index a7d80c5e403..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHub.java +++ /dev/null @@ -1,406 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate Microservices. Required for online logical migration.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateGoldenGateHub.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateGoldenGateHub - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "restAdminCredentials", - "sourceDbAdminCredentials", - "sourceContainerDbAdminCredentials", - "targetDbAdminCredentials", - "url", - "sourceMicroservicesDeploymentName", - "targetMicroservicesDeploymentName", - "computeId" - }) - public CreateGoldenGateHub( - CreateAdminCredentials restAdminCredentials, - CreateAdminCredentials sourceDbAdminCredentials, - CreateAdminCredentials sourceContainerDbAdminCredentials, - CreateAdminCredentials targetDbAdminCredentials, - String url, - String sourceMicroservicesDeploymentName, - String targetMicroservicesDeploymentName, - String computeId) { - super(); - this.restAdminCredentials = restAdminCredentials; - this.sourceDbAdminCredentials = sourceDbAdminCredentials; - this.sourceContainerDbAdminCredentials = sourceContainerDbAdminCredentials; - this.targetDbAdminCredentials = targetDbAdminCredentials; - this.url = url; - this.sourceMicroservicesDeploymentName = sourceMicroservicesDeploymentName; - this.targetMicroservicesDeploymentName = targetMicroservicesDeploymentName; - this.computeId = computeId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("restAdminCredentials") - private CreateAdminCredentials restAdminCredentials; - - public Builder restAdminCredentials(CreateAdminCredentials restAdminCredentials) { - this.restAdminCredentials = restAdminCredentials; - this.__explicitlySet__.add("restAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbAdminCredentials") - private CreateAdminCredentials sourceDbAdminCredentials; - - public Builder sourceDbAdminCredentials(CreateAdminCredentials sourceDbAdminCredentials) { - this.sourceDbAdminCredentials = sourceDbAdminCredentials; - this.__explicitlySet__.add("sourceDbAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbAdminCredentials") - private CreateAdminCredentials sourceContainerDbAdminCredentials; - - public Builder sourceContainerDbAdminCredentials( - CreateAdminCredentials sourceContainerDbAdminCredentials) { - this.sourceContainerDbAdminCredentials = sourceContainerDbAdminCredentials; - this.__explicitlySet__.add("sourceContainerDbAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbAdminCredentials") - private CreateAdminCredentials targetDbAdminCredentials; - - public Builder targetDbAdminCredentials(CreateAdminCredentials targetDbAdminCredentials) { - this.targetDbAdminCredentials = targetDbAdminCredentials; - this.__explicitlySet__.add("targetDbAdminCredentials"); - return this; - } - /** - * Oracle GoldenGate Microservices hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - */ - @com.fasterxml.jackson.annotation.JsonProperty("url") - private String url; - - /** - * Oracle GoldenGate Microservices hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - * - * @param url the value to set - * @return this builder - */ - public Builder url(String url) { - this.url = url; - this.__explicitlySet__.add("url"); - return this; - } - /** Name of GoldenGate Microservices deployment to operate on source database */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceMicroservicesDeploymentName") - private String sourceMicroservicesDeploymentName; - - /** - * Name of GoldenGate Microservices deployment to operate on source database - * - * @param sourceMicroservicesDeploymentName the value to set - * @return this builder - */ - public Builder sourceMicroservicesDeploymentName(String sourceMicroservicesDeploymentName) { - this.sourceMicroservicesDeploymentName = sourceMicroservicesDeploymentName; - this.__explicitlySet__.add("sourceMicroservicesDeploymentName"); - return this; - } - /** Name of GoldenGate Microservices deployment to operate on target database */ - @com.fasterxml.jackson.annotation.JsonProperty("targetMicroservicesDeploymentName") - private String targetMicroservicesDeploymentName; - - /** - * Name of GoldenGate Microservices deployment to operate on target database - * - * @param targetMicroservicesDeploymentName the value to set - * @return this builder - */ - public Builder targetMicroservicesDeploymentName(String targetMicroservicesDeploymentName) { - this.targetMicroservicesDeploymentName = targetMicroservicesDeploymentName; - this.__explicitlySet__.add("targetMicroservicesDeploymentName"); - return this; - } - /** OCID of GoldenGate Microservices compute instance. */ - @com.fasterxml.jackson.annotation.JsonProperty("computeId") - private String computeId; - - /** - * OCID of GoldenGate Microservices compute instance. - * - * @param computeId the value to set - * @return this builder - */ - public Builder computeId(String computeId) { - this.computeId = computeId; - this.__explicitlySet__.add("computeId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateGoldenGateHub build() { - CreateGoldenGateHub model = - new CreateGoldenGateHub( - this.restAdminCredentials, - this.sourceDbAdminCredentials, - this.sourceContainerDbAdminCredentials, - this.targetDbAdminCredentials, - this.url, - this.sourceMicroservicesDeploymentName, - this.targetMicroservicesDeploymentName, - this.computeId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateGoldenGateHub model) { - if (model.wasPropertyExplicitlySet("restAdminCredentials")) { - this.restAdminCredentials(model.getRestAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceDbAdminCredentials")) { - this.sourceDbAdminCredentials(model.getSourceDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDbAdminCredentials")) { - this.sourceContainerDbAdminCredentials( - model.getSourceContainerDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("targetDbAdminCredentials")) { - this.targetDbAdminCredentials(model.getTargetDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("url")) { - this.url(model.getUrl()); - } - if (model.wasPropertyExplicitlySet("sourceMicroservicesDeploymentName")) { - this.sourceMicroservicesDeploymentName( - model.getSourceMicroservicesDeploymentName()); - } - if (model.wasPropertyExplicitlySet("targetMicroservicesDeploymentName")) { - this.targetMicroservicesDeploymentName( - model.getTargetMicroservicesDeploymentName()); - } - if (model.wasPropertyExplicitlySet("computeId")) { - this.computeId(model.getComputeId()); - } - 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("restAdminCredentials") - private final CreateAdminCredentials restAdminCredentials; - - public CreateAdminCredentials getRestAdminCredentials() { - return restAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbAdminCredentials") - private final CreateAdminCredentials sourceDbAdminCredentials; - - public CreateAdminCredentials getSourceDbAdminCredentials() { - return sourceDbAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbAdminCredentials") - private final CreateAdminCredentials sourceContainerDbAdminCredentials; - - public CreateAdminCredentials getSourceContainerDbAdminCredentials() { - return sourceContainerDbAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbAdminCredentials") - private final CreateAdminCredentials targetDbAdminCredentials; - - public CreateAdminCredentials getTargetDbAdminCredentials() { - return targetDbAdminCredentials; - } - - /** - * Oracle GoldenGate Microservices hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - */ - @com.fasterxml.jackson.annotation.JsonProperty("url") - private final String url; - - /** - * Oracle GoldenGate Microservices hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - * - * @return the value - */ - public String getUrl() { - return url; - } - - /** Name of GoldenGate Microservices deployment to operate on source database */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceMicroservicesDeploymentName") - private final String sourceMicroservicesDeploymentName; - - /** - * Name of GoldenGate Microservices deployment to operate on source database - * - * @return the value - */ - public String getSourceMicroservicesDeploymentName() { - return sourceMicroservicesDeploymentName; - } - - /** Name of GoldenGate Microservices deployment to operate on target database */ - @com.fasterxml.jackson.annotation.JsonProperty("targetMicroservicesDeploymentName") - private final String targetMicroservicesDeploymentName; - - /** - * Name of GoldenGate Microservices deployment to operate on target database - * - * @return the value - */ - public String getTargetMicroservicesDeploymentName() { - return targetMicroservicesDeploymentName; - } - - /** OCID of GoldenGate Microservices compute instance. */ - @com.fasterxml.jackson.annotation.JsonProperty("computeId") - private final String computeId; - - /** - * OCID of GoldenGate Microservices compute instance. - * - * @return the value - */ - public String getComputeId() { - return computeId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateGoldenGateHub("); - sb.append("super=").append(super.toString()); - sb.append("restAdminCredentials=").append(String.valueOf(this.restAdminCredentials)); - sb.append(", sourceDbAdminCredentials=") - .append(String.valueOf(this.sourceDbAdminCredentials)); - sb.append(", sourceContainerDbAdminCredentials=") - .append(String.valueOf(this.sourceContainerDbAdminCredentials)); - sb.append(", targetDbAdminCredentials=") - .append(String.valueOf(this.targetDbAdminCredentials)); - sb.append(", url=").append(String.valueOf(this.url)); - sb.append(", sourceMicroservicesDeploymentName=") - .append(String.valueOf(this.sourceMicroservicesDeploymentName)); - sb.append(", targetMicroservicesDeploymentName=") - .append(String.valueOf(this.targetMicroservicesDeploymentName)); - sb.append(", computeId=").append(String.valueOf(this.computeId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateGoldenGateHub)) { - return false; - } - - CreateGoldenGateHub other = (CreateGoldenGateHub) o; - return java.util.Objects.equals(this.restAdminCredentials, other.restAdminCredentials) - && java.util.Objects.equals( - this.sourceDbAdminCredentials, other.sourceDbAdminCredentials) - && java.util.Objects.equals( - this.sourceContainerDbAdminCredentials, - other.sourceContainerDbAdminCredentials) - && java.util.Objects.equals( - this.targetDbAdminCredentials, other.targetDbAdminCredentials) - && java.util.Objects.equals(this.url, other.url) - && java.util.Objects.equals( - this.sourceMicroservicesDeploymentName, - other.sourceMicroservicesDeploymentName) - && java.util.Objects.equals( - this.targetMicroservicesDeploymentName, - other.targetMicroservicesDeploymentName) - && java.util.Objects.equals(this.computeId, other.computeId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.restAdminCredentials == null - ? 43 - : this.restAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceDbAdminCredentials == null - ? 43 - : this.sourceDbAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDbAdminCredentials == null - ? 43 - : this.sourceContainerDbAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.targetDbAdminCredentials == null - ? 43 - : this.targetDbAdminCredentials.hashCode()); - result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); - result = - (result * PRIME) - + (this.sourceMicroservicesDeploymentName == null - ? 43 - : this.sourceMicroservicesDeploymentName.hashCode()); - result = - (result * PRIME) - + (this.targetMicroservicesDeploymentName == null - ? 43 - : this.targetMicroservicesDeploymentName.hashCode()); - result = (result * PRIME) + (this.computeId == null ? 43 : this.computeId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHubDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHubDetails.java new file mode 100644 index 00000000000..0b1a6417986 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateHubDetails.java @@ -0,0 +1,383 @@ +/** + * 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.databasemigration.model; + +/** + * Details about Oracle GoldenGate Microservices.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateGoldenGateHubDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateGoldenGateHubDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "restAdminCredentials", + "url", + "computeId", + "vaultId", + "keyId", + "extract", + "replicat", + "acceptableLag" + }) + public CreateGoldenGateHubDetails( + CreateAdminCredentials restAdminCredentials, + String url, + String computeId, + String vaultId, + String keyId, + CreateExtract extract, + CreateReplicat replicat, + Integer acceptableLag) { + super(); + this.restAdminCredentials = restAdminCredentials; + this.url = url; + this.computeId = computeId; + this.vaultId = vaultId; + this.keyId = keyId; + this.extract = extract; + this.replicat = replicat; + this.acceptableLag = acceptableLag; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("restAdminCredentials") + private CreateAdminCredentials restAdminCredentials; + + public Builder restAdminCredentials(CreateAdminCredentials restAdminCredentials) { + this.restAdminCredentials = restAdminCredentials; + this.__explicitlySet__.add("restAdminCredentials"); + return this; + } + /** Endpoint URL. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Endpoint URL. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeId") + private String computeId; + + /** + * The OCID of the resource being referenced. + * + * @param computeId the value to set + * @return this builder + */ + public Builder computeId(String computeId) { + this.computeId = computeId; + this.__explicitlySet__.add("computeId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The OCID of the resource being referenced. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + /** + * The OCID of the resource being referenced. + * + * @param keyId the value to set + * @return this builder + */ + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private CreateExtract extract; + + public Builder extract(CreateExtract extract) { + this.extract = extract; + this.__explicitlySet__.add("extract"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private CreateReplicat replicat; + + public Builder replicat(CreateReplicat replicat) { + this.replicat = replicat; + this.__explicitlySet__.add("replicat"); + return this; + } + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @param acceptableLag the value to set + * @return this builder + */ + public Builder acceptableLag(Integer acceptableLag) { + this.acceptableLag = acceptableLag; + this.__explicitlySet__.add("acceptableLag"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateGoldenGateHubDetails build() { + CreateGoldenGateHubDetails model = + new CreateGoldenGateHubDetails( + this.restAdminCredentials, + this.url, + this.computeId, + this.vaultId, + this.keyId, + this.extract, + this.replicat, + this.acceptableLag); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateGoldenGateHubDetails model) { + if (model.wasPropertyExplicitlySet("restAdminCredentials")) { + this.restAdminCredentials(model.getRestAdminCredentials()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("computeId")) { + this.computeId(model.getComputeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("extract")) { + this.extract(model.getExtract()); + } + if (model.wasPropertyExplicitlySet("replicat")) { + this.replicat(model.getReplicat()); + } + if (model.wasPropertyExplicitlySet("acceptableLag")) { + this.acceptableLag(model.getAcceptableLag()); + } + 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("restAdminCredentials") + private final CreateAdminCredentials restAdminCredentials; + + public CreateAdminCredentials getRestAdminCredentials() { + return restAdminCredentials; + } + + /** Endpoint URL. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Endpoint URL. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeId") + private final String computeId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getComputeId() { + return computeId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getKeyId() { + return keyId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private final CreateExtract extract; + + public CreateExtract getExtract() { + return extract; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private final CreateReplicat replicat; + + public CreateReplicat getReplicat() { + return replicat; + } + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private final Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @return the value + */ + public Integer getAcceptableLag() { + return acceptableLag; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateGoldenGateHubDetails("); + sb.append("super=").append(super.toString()); + sb.append("restAdminCredentials=").append(String.valueOf(this.restAdminCredentials)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", computeId=").append(String.valueOf(this.computeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", extract=").append(String.valueOf(this.extract)); + sb.append(", replicat=").append(String.valueOf(this.replicat)); + sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateGoldenGateHubDetails)) { + return false; + } + + CreateGoldenGateHubDetails other = (CreateGoldenGateHubDetails) o; + return java.util.Objects.equals(this.restAdminCredentials, other.restAdminCredentials) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.computeId, other.computeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.extract, other.extract) + && java.util.Objects.equals(this.replicat, other.replicat) + && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.restAdminCredentials == null + ? 43 + : this.restAdminCredentials.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.computeId == null ? 43 : this.computeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.extract == null ? 43 : this.extract.hashCode()); + result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); + result = + (result * PRIME) + + (this.acceptableLag == null ? 43 : this.acceptableLag.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateServiceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateServiceDetails.java deleted file mode 100644 index 6df2390dc06..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateServiceDetails.java +++ /dev/null @@ -1,220 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate GGS Deployment.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateGoldenGateServiceDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateGoldenGateServiceDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "sourceDbCredentials", - "sourceContainerDbCredentials", - "targetDbCredentials", - "settings" - }) - public CreateGoldenGateServiceDetails( - DatabaseCredentials sourceDbCredentials, - DatabaseCredentials sourceContainerDbCredentials, - DatabaseCredentials targetDbCredentials, - CreateGoldenGateSettings settings) { - super(); - this.sourceDbCredentials = sourceDbCredentials; - this.sourceContainerDbCredentials = sourceContainerDbCredentials; - this.targetDbCredentials = targetDbCredentials; - this.settings = settings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbCredentials") - private DatabaseCredentials sourceDbCredentials; - - public Builder sourceDbCredentials(DatabaseCredentials sourceDbCredentials) { - this.sourceDbCredentials = sourceDbCredentials; - this.__explicitlySet__.add("sourceDbCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbCredentials") - private DatabaseCredentials sourceContainerDbCredentials; - - public Builder sourceContainerDbCredentials( - DatabaseCredentials sourceContainerDbCredentials) { - this.sourceContainerDbCredentials = sourceContainerDbCredentials; - this.__explicitlySet__.add("sourceContainerDbCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbCredentials") - private DatabaseCredentials targetDbCredentials; - - public Builder targetDbCredentials(DatabaseCredentials targetDbCredentials) { - this.targetDbCredentials = targetDbCredentials; - this.__explicitlySet__.add("targetDbCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private CreateGoldenGateSettings settings; - - public Builder settings(CreateGoldenGateSettings settings) { - this.settings = settings; - this.__explicitlySet__.add("settings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateGoldenGateServiceDetails build() { - CreateGoldenGateServiceDetails model = - new CreateGoldenGateServiceDetails( - this.sourceDbCredentials, - this.sourceContainerDbCredentials, - this.targetDbCredentials, - this.settings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateGoldenGateServiceDetails model) { - if (model.wasPropertyExplicitlySet("sourceDbCredentials")) { - this.sourceDbCredentials(model.getSourceDbCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDbCredentials")) { - this.sourceContainerDbCredentials(model.getSourceContainerDbCredentials()); - } - if (model.wasPropertyExplicitlySet("targetDbCredentials")) { - this.targetDbCredentials(model.getTargetDbCredentials()); - } - if (model.wasPropertyExplicitlySet("settings")) { - this.settings(model.getSettings()); - } - 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("sourceDbCredentials") - private final DatabaseCredentials sourceDbCredentials; - - public DatabaseCredentials getSourceDbCredentials() { - return sourceDbCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbCredentials") - private final DatabaseCredentials sourceContainerDbCredentials; - - public DatabaseCredentials getSourceContainerDbCredentials() { - return sourceContainerDbCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbCredentials") - private final DatabaseCredentials targetDbCredentials; - - public DatabaseCredentials getTargetDbCredentials() { - return targetDbCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final CreateGoldenGateSettings settings; - - public CreateGoldenGateSettings getSettings() { - return settings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateGoldenGateServiceDetails("); - sb.append("super=").append(super.toString()); - sb.append("sourceDbCredentials=").append(String.valueOf(this.sourceDbCredentials)); - sb.append(", sourceContainerDbCredentials=") - .append(String.valueOf(this.sourceContainerDbCredentials)); - sb.append(", targetDbCredentials=").append(String.valueOf(this.targetDbCredentials)); - sb.append(", settings=").append(String.valueOf(this.settings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateGoldenGateServiceDetails)) { - return false; - } - - CreateGoldenGateServiceDetails other = (CreateGoldenGateServiceDetails) o; - return java.util.Objects.equals(this.sourceDbCredentials, other.sourceDbCredentials) - && java.util.Objects.equals( - this.sourceContainerDbCredentials, other.sourceContainerDbCredentials) - && java.util.Objects.equals(this.targetDbCredentials, other.targetDbCredentials) - && java.util.Objects.equals(this.settings, other.settings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.sourceDbCredentials == null - ? 43 - : this.sourceDbCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDbCredentials == null - ? 43 - : this.sourceContainerDbCredentials.hashCode()); - result = - (result * PRIME) - + (this.targetDbCredentials == null - ? 43 - : this.targetDbCredentials.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateHostDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateHostDumpTransferDetails.java index 72750071ed4..07b1369410f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateHostDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateHostDumpTransferDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer in source or target host. Default kind is CURL + * Optional additional properties for dump transfer in source or target host. Default kind is CURL. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, @@ -100,7 +100,7 @@ public int hashCode() { } /** - * Type of dump transfer to use during migration in source or target host. Default kind is CURL + * Type of dump transfer to use during migration in source or target host. Default kind is CURL. */ public enum Kind implements com.oracle.bmc.http.internal.BmcEnum { Curl("CURL"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMigrationDetails.java index b95a2b7ab78..9a7daa48a42 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMigrationDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Create Migration resource parameters.
+ * Common Migration details.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,504 +15,78 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateMigrationDetails.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = CreateMigrationDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateMySqlMigrationDetails.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleMigrationDetails.class, + name = "ORACLE") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateMigrationDetails +public class CreateMigrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "description", + "compartmentId", "type", "displayName", - "compartmentId", - "agentId", "sourceDatabaseConnectionId", - "sourceContainerDatabaseConnectionId", "targetDatabaseConnectionId", - "dataTransferMediumDetailsV2", - "dataTransferMediumDetails", - "dumpTransferDetails", - "datapumpSettings", - "advisorSettings", - "excludeObjects", - "includeObjects", - "csvText", - "goldenGateDetails", - "goldenGateServiceDetails", - "vaultDetails", "freeformTags", "definedTags" }) - public CreateMigrationDetails( + protected CreateMigrationDetails( + String description, + String compartmentId, MigrationTypes type, String displayName, - String compartmentId, - String agentId, String sourceDatabaseConnectionId, - String sourceContainerDatabaseConnectionId, String targetDatabaseConnectionId, - DataTransferMediumDetailsV2 dataTransferMediumDetailsV2, - CreateDataTransferMediumDetails dataTransferMediumDetails, - CreateDumpTransferDetails dumpTransferDetails, - CreateDataPumpSettings datapumpSettings, - CreateAdvisorSettings advisorSettings, - java.util.List excludeObjects, - java.util.List includeObjects, - String csvText, - CreateGoldenGateDetails goldenGateDetails, - CreateGoldenGateServiceDetails goldenGateServiceDetails, - CreateVaultDetails vaultDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.description = description; + this.compartmentId = compartmentId; this.type = type; this.displayName = displayName; - this.compartmentId = compartmentId; - this.agentId = agentId; this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.dataTransferMediumDetailsV2 = dataTransferMediumDetailsV2; - this.dataTransferMediumDetails = dataTransferMediumDetails; - this.dumpTransferDetails = dumpTransferDetails; - this.datapumpSettings = datapumpSettings; - this.advisorSettings = advisorSettings; - this.excludeObjects = excludeObjects; - this.includeObjects = includeObjects; - this.csvText = csvText; - this.goldenGateDetails = goldenGateDetails; - this.goldenGateServiceDetails = goldenGateServiceDetails; - this.vaultDetails = vaultDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Migration type. */ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private MigrationTypes type; - - /** - * Migration type. - * - * @param type the value to set - * @return this builder - */ - public Builder type(MigrationTypes type) { - this.type = type; - this.__explicitlySet__.add("type"); - return this; - } - /** Migration Display Name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Migration Display Name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** The OCID of the registered ODMS Agent. Only valid for Offline Logical Migrations. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private String agentId; - - /** - * The OCID of the registered ODMS Agent. Only valid for Offline Logical Migrations. - * - * @param agentId the value to set - * @return this builder - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - this.__explicitlySet__.add("agentId"); - return this; - } - /** The OCID of the Source Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private String sourceDatabaseConnectionId; - - /** - * The OCID of the Source Database Connection. - * - * @param sourceDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { - this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.__explicitlySet__.add("sourceDatabaseConnectionId"); - return this; - } - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. - * Only Connections of type Non-Autonomous can be used as source container databases. - */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. - * Only Connections of type Non-Autonomous can be used as source container databases. - * - * @param sourceContainerDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceContainerDatabaseConnectionId( - String sourceContainerDatabaseConnectionId) { - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; - this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); - return this; - } - /** The OCID of the Target Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") - private String targetDatabaseConnectionId; - - /** - * The OCID of the Target Database Connection. - * - * @param targetDatabaseConnectionId the value to set - * @return this builder - */ - public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { - this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.__explicitlySet__.add("targetDatabaseConnectionId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetailsV2") - private DataTransferMediumDetailsV2 dataTransferMediumDetailsV2; - - public Builder dataTransferMediumDetailsV2( - DataTransferMediumDetailsV2 dataTransferMediumDetailsV2) { - this.dataTransferMediumDetailsV2 = dataTransferMediumDetailsV2; - this.__explicitlySet__.add("dataTransferMediumDetailsV2"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") - private CreateDataTransferMediumDetails dataTransferMediumDetails; - - public Builder dataTransferMediumDetails( - CreateDataTransferMediumDetails dataTransferMediumDetails) { - this.dataTransferMediumDetails = dataTransferMediumDetails; - this.__explicitlySet__.add("dataTransferMediumDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dumpTransferDetails") - private CreateDumpTransferDetails dumpTransferDetails; - - public Builder dumpTransferDetails(CreateDumpTransferDetails dumpTransferDetails) { - this.dumpTransferDetails = dumpTransferDetails; - this.__explicitlySet__.add("dumpTransferDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("datapumpSettings") - private CreateDataPumpSettings datapumpSettings; - - public Builder datapumpSettings(CreateDataPumpSettings datapumpSettings) { - this.datapumpSettings = datapumpSettings; - this.__explicitlySet__.add("datapumpSettings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") - private CreateAdvisorSettings advisorSettings; - - public Builder advisorSettings(CreateAdvisorSettings advisorSettings) { - this.advisorSettings = advisorSettings; - this.__explicitlySet__.add("advisorSettings"); - return this; - } - /** - * Database objects to exclude from migration, cannot be specified alongside - * 'includeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private java.util.List excludeObjects; - - /** - * Database objects to exclude from migration, cannot be specified alongside - * 'includeObjects' - * - * @param excludeObjects the value to set - * @return this builder - */ - public Builder excludeObjects(java.util.List excludeObjects) { - this.excludeObjects = excludeObjects; - this.__explicitlySet__.add("excludeObjects"); - return this; - } - /** - * Database objects to include from migration, cannot be specified alongside - * 'excludeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private java.util.List includeObjects; - - /** - * Database objects to include from migration, cannot be specified alongside - * 'excludeObjects' - * - * @param includeObjects the value to set - * @return this builder - */ - public Builder includeObjects(java.util.List includeObjects) { - this.includeObjects = includeObjects; - this.__explicitlySet__.add("includeObjects"); - return this; - } - /** - * Database objects to exclude/include from migration in CSV format. The excludeObjects and - * includeObjects fields will be ignored if this field is not null. - */ - @com.fasterxml.jackson.annotation.JsonProperty("csvText") - private String csvText; - - /** - * Database objects to exclude/include from migration in CSV format. The excludeObjects and - * includeObjects fields will be ignored if this field is not null. - * - * @param csvText the value to set - * @return this builder - */ - public Builder csvText(String csvText) { - this.csvText = csvText; - this.__explicitlySet__.add("csvText"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateDetails") - private CreateGoldenGateDetails goldenGateDetails; - - public Builder goldenGateDetails(CreateGoldenGateDetails goldenGateDetails) { - this.goldenGateDetails = goldenGateDetails; - this.__explicitlySet__.add("goldenGateDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateServiceDetails") - private CreateGoldenGateServiceDetails goldenGateServiceDetails; - - public Builder goldenGateServiceDetails( - CreateGoldenGateServiceDetails goldenGateServiceDetails) { - this.goldenGateServiceDetails = goldenGateServiceDetails; - this.__explicitlySet__.add("goldenGateServiceDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private CreateVaultDetails vaultDetails; - - public Builder vaultDetails(CreateVaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateMigrationDetails build() { - CreateMigrationDetails model = - new CreateMigrationDetails( - this.type, - this.displayName, - this.compartmentId, - this.agentId, - this.sourceDatabaseConnectionId, - this.sourceContainerDatabaseConnectionId, - this.targetDatabaseConnectionId, - this.dataTransferMediumDetailsV2, - this.dataTransferMediumDetails, - this.dumpTransferDetails, - this.datapumpSettings, - this.advisorSettings, - this.excludeObjects, - this.includeObjects, - this.csvText, - this.goldenGateDetails, - this.goldenGateServiceDetails, - this.vaultDetails, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateMigrationDetails model) { - if (model.wasPropertyExplicitlySet("type")) { - this.type(model.getType()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("agentId")) { - this.agentId(model.getAgentId()); - } - if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { - this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { - this.sourceContainerDatabaseConnectionId( - model.getSourceContainerDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { - this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("dataTransferMediumDetailsV2")) { - this.dataTransferMediumDetailsV2(model.getDataTransferMediumDetailsV2()); - } - if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { - this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); - } - if (model.wasPropertyExplicitlySet("dumpTransferDetails")) { - this.dumpTransferDetails(model.getDumpTransferDetails()); - } - if (model.wasPropertyExplicitlySet("datapumpSettings")) { - this.datapumpSettings(model.getDatapumpSettings()); - } - if (model.wasPropertyExplicitlySet("advisorSettings")) { - this.advisorSettings(model.getAdvisorSettings()); - } - if (model.wasPropertyExplicitlySet("excludeObjects")) { - this.excludeObjects(model.getExcludeObjects()); - } - if (model.wasPropertyExplicitlySet("includeObjects")) { - this.includeObjects(model.getIncludeObjects()); - } - if (model.wasPropertyExplicitlySet("csvText")) { - this.csvText(model.getCsvText()); - } - if (model.wasPropertyExplicitlySet("goldenGateDetails")) { - this.goldenGateDetails(model.getGoldenGateDetails()); - } - if (model.wasPropertyExplicitlySet("goldenGateServiceDetails")) { - this.goldenGateServiceDetails(model.getGoldenGateServiceDetails()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - 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); - } - - /** Migration type. */ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private final MigrationTypes type; - /** - * Migration type. - * - * @return the value + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. */ - public MigrationTypes getType() { - return type; - } - - /** Migration Display Name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * Migration Display Name + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public String getDisplayName() { - return displayName; + public String getDescription() { + return description; } - /** OCID of the compartment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * OCID of the compartment + * The OCID of the resource being referenced. * * @return the value */ @@ -520,175 +94,78 @@ public String getCompartmentId() { return compartmentId; } - /** The OCID of the registered ODMS Agent. Only valid for Offline Logical Migrations. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private final String agentId; - - /** - * The OCID of the registered ODMS Agent. Only valid for Offline Logical Migrations. - * - * @return the value - */ - public String getAgentId() { - return agentId; - } - - /** The OCID of the Source Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private final String sourceDatabaseConnectionId; - - /** - * The OCID of the Source Database Connection. - * - * @return the value - */ - public String getSourceDatabaseConnectionId() { - return sourceDatabaseConnectionId; - } - - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. Only - * Connections of type Non-Autonomous can be used as source container databases. - */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private final String sourceContainerDatabaseConnectionId; - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. Only - * Connections of type Non-Autonomous can be used as source container databases. - * - * @return the value + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. */ - public String getSourceContainerDatabaseConnectionId() { - return sourceContainerDatabaseConnectionId; - } - - /** The OCID of the Target Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") - private final String targetDatabaseConnectionId; + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final MigrationTypes type; /** - * The OCID of the Target Database Connection. + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. * * @return the value */ - public String getTargetDatabaseConnectionId() { - return targetDatabaseConnectionId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetailsV2") - private final DataTransferMediumDetailsV2 dataTransferMediumDetailsV2; - - public DataTransferMediumDetailsV2 getDataTransferMediumDetailsV2() { - return dataTransferMediumDetailsV2; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") - private final CreateDataTransferMediumDetails dataTransferMediumDetails; - - public CreateDataTransferMediumDetails getDataTransferMediumDetails() { - return dataTransferMediumDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dumpTransferDetails") - private final CreateDumpTransferDetails dumpTransferDetails; - - public CreateDumpTransferDetails getDumpTransferDetails() { - return dumpTransferDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("datapumpSettings") - private final CreateDataPumpSettings datapumpSettings; - - public CreateDataPumpSettings getDatapumpSettings() { - return datapumpSettings; - } - - @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") - private final CreateAdvisorSettings advisorSettings; - - public CreateAdvisorSettings getAdvisorSettings() { - return advisorSettings; + public MigrationTypes getType() { + return type; } /** - * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private final java.util.List excludeObjects; + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; /** - * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public java.util.List getExcludeObjects() { - return excludeObjects; + public String getDisplayName() { + return displayName; } - /** - * Database objects to include from migration, cannot be specified alongside 'excludeObjects' - */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private final java.util.List includeObjects; + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private final String sourceDatabaseConnectionId; /** - * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * The OCID of the resource being referenced. * * @return the value */ - public java.util.List getIncludeObjects() { - return includeObjects; + public String getSourceDatabaseConnectionId() { + return sourceDatabaseConnectionId; } - /** - * Database objects to exclude/include from migration in CSV format. The excludeObjects and - * includeObjects fields will be ignored if this field is not null. - */ - @com.fasterxml.jackson.annotation.JsonProperty("csvText") - private final String csvText; + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private final String targetDatabaseConnectionId; /** - * Database objects to exclude/include from migration in CSV format. The excludeObjects and - * includeObjects fields will be ignored if this field is not null. + * The OCID of the resource being referenced. * * @return the value */ - public String getCsvText() { - return csvText; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateDetails") - private final CreateGoldenGateDetails goldenGateDetails; - - public CreateGoldenGateDetails getGoldenGateDetails() { - return goldenGateDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateServiceDetails") - private final CreateGoldenGateServiceDetails goldenGateServiceDetails; - - public CreateGoldenGateServiceDetails getGoldenGateServiceDetails() { - return goldenGateServiceDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final CreateVaultDetails vaultDetails; - - public CreateVaultDetails getVaultDetails() { - return vaultDetails; + public String getTargetDatabaseConnectionId() { + return targetDatabaseConnectionId; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ @@ -728,30 +205,14 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CreateMigrationDetails("); sb.append("super=").append(super.toString()); - sb.append("type=").append(String.valueOf(this.type)); - sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append("description=").append(String.valueOf(this.description)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", agentId=").append(String.valueOf(this.agentId)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", sourceDatabaseConnectionId=") .append(String.valueOf(this.sourceDatabaseConnectionId)); - sb.append(", sourceContainerDatabaseConnectionId=") - .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", targetDatabaseConnectionId=") .append(String.valueOf(this.targetDatabaseConnectionId)); - sb.append(", dataTransferMediumDetailsV2=") - .append(String.valueOf(this.dataTransferMediumDetailsV2)); - sb.append(", dataTransferMediumDetails=") - .append(String.valueOf(this.dataTransferMediumDetails)); - sb.append(", dumpTransferDetails=").append(String.valueOf(this.dumpTransferDetails)); - sb.append(", datapumpSettings=").append(String.valueOf(this.datapumpSettings)); - sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); - sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); - sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); - sb.append(", csvText=").append(String.valueOf(this.csvText)); - sb.append(", goldenGateDetails=").append(String.valueOf(this.goldenGateDetails)); - sb.append(", goldenGateServiceDetails=") - .append(String.valueOf(this.goldenGateServiceDetails)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -768,31 +229,14 @@ public boolean equals(Object o) { } CreateMigrationDetails other = (CreateMigrationDetails) o; - return java.util.Objects.equals(this.type, other.type) - && java.util.Objects.equals(this.displayName, other.displayName) + return java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.agentId, other.agentId) + && java.util.Objects.equals(this.type, other.type) + && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals( this.sourceDatabaseConnectionId, other.sourceDatabaseConnectionId) - && java.util.Objects.equals( - this.sourceContainerDatabaseConnectionId, - other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( this.targetDatabaseConnectionId, other.targetDatabaseConnectionId) - && java.util.Objects.equals( - this.dataTransferMediumDetailsV2, other.dataTransferMediumDetailsV2) - && java.util.Objects.equals( - this.dataTransferMediumDetails, other.dataTransferMediumDetails) - && java.util.Objects.equals(this.dumpTransferDetails, other.dumpTransferDetails) - && java.util.Objects.equals(this.datapumpSettings, other.datapumpSettings) - && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) - && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) - && java.util.Objects.equals(this.includeObjects, other.includeObjects) - && java.util.Objects.equals(this.csvText, other.csvText) - && java.util.Objects.equals(this.goldenGateDetails, other.goldenGateDetails) - && java.util.Objects.equals( - this.goldenGateServiceDetails, other.goldenGateServiceDetails) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -802,64 +246,22 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.sourceDatabaseConnectionId == null ? 43 : this.sourceDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDatabaseConnectionId == null - ? 43 - : this.sourceContainerDatabaseConnectionId.hashCode()); result = (result * PRIME) + (this.targetDatabaseConnectionId == null ? 43 : this.targetDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.dataTransferMediumDetailsV2 == null - ? 43 - : this.dataTransferMediumDetailsV2.hashCode()); - result = - (result * PRIME) - + (this.dataTransferMediumDetails == null - ? 43 - : this.dataTransferMediumDetails.hashCode()); - result = - (result * PRIME) - + (this.dumpTransferDetails == null - ? 43 - : this.dumpTransferDetails.hashCode()); - result = - (result * PRIME) - + (this.datapumpSettings == null ? 43 : this.datapumpSettings.hashCode()); - result = - (result * PRIME) - + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); - result = - (result * PRIME) - + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); - result = - (result * PRIME) - + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); - result = (result * PRIME) + (this.csvText == null ? 43 : this.csvText.hashCode()); - result = - (result * PRIME) - + (this.goldenGateDetails == null ? 43 : this.goldenGateDetails.hashCode()); - result = - (result * PRIME) - + (this.goldenGateServiceDetails == null - ? 43 - : this.goldenGateServiceDetails.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAdvisorSettings.java similarity index 89% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAdvisorSettings.java index e95599238e0..41bcfee3a7d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AdvisorSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlAdvisorSettings.java @@ -15,15 +15,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AdvisorSettings.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMySqlAdvisorSettings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AdvisorSettings +public final class CreateMySqlAdvisorSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) - public AdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + public CreateMySqlAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { super(); this.isSkipAdvisor = isSkipAdvisor; this.isIgnoreErrors = isIgnoreErrors; @@ -69,8 +70,9 @@ public Builder isIgnoreErrors(Boolean isIgnoreErrors) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AdvisorSettings build() { - AdvisorSettings model = new AdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + public CreateMySqlAdvisorSettings build() { + CreateMySqlAdvisorSettings model = + new CreateMySqlAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -78,7 +80,7 @@ public AdvisorSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AdvisorSettings model) { + public Builder copy(CreateMySqlAdvisorSettings model) { if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { this.isSkipAdvisor(model.getIsSkipAdvisor()); } @@ -141,7 +143,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AdvisorSettings("); + sb.append("CreateMySqlAdvisorSettings("); sb.append("super=").append(super.toString()); sb.append("isSkipAdvisor=").append(String.valueOf(this.isSkipAdvisor)); sb.append(", isIgnoreErrors=").append(String.valueOf(this.isIgnoreErrors)); @@ -154,11 +156,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AdvisorSettings)) { + if (!(o instanceof CreateMySqlAdvisorSettings)) { return false; } - AdvisorSettings other = (AdvisorSettings) o; + CreateMySqlAdvisorSettings other = (CreateMySqlAdvisorSettings) o; return java.util.Objects.equals(this.isSkipAdvisor, other.isSkipAdvisor) && java.util.Objects.equals(this.isIgnoreErrors, other.isIgnoreErrors) && super.equals(other); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlDataTransferMediumDetails.java new file mode 100644 index 00000000000..6bc2507d725 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlDataTransferMediumDetails.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.databasemigration.model; + +/** + * Optional additional properties for data transfer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateMySqlDataTransferMediumDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateMySqlObjectStorageDataTransferMediumDetails.class, + name = "OBJECT_STORAGE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateMySqlDataTransferMediumDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateMySqlDataTransferMediumDetails() { + 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("CreateMySqlDataTransferMediumDetails("); + 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 CreateMySqlDataTransferMediumDetails)) { + return false; + } + + CreateMySqlDataTransferMediumDetails other = (CreateMySqlDataTransferMediumDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the data transfer medium to use. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorage("OBJECT_STORAGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlGgsDeploymentDetails.java similarity index 52% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageSummary.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlGgsDeploymentDetails.java index 57be5f9655e..3d7e9db261b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentImageSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlGgsDeploymentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Available ODMS Agent Images.
+ * Optional settings for Oracle GoldenGate processes
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,59 +15,58 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AgentImageSummary.Builder.class) + builder = CreateMySqlGgsDeploymentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AgentImageSummary +public final class CreateMySqlGgsDeploymentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"version", "downloadUrl"}) - public AgentImageSummary(String version, String downloadUrl) { + @java.beans.ConstructorProperties({"replicat", "acceptableLag"}) + public CreateMySqlGgsDeploymentDetails(CreateReplicat replicat, Integer acceptableLag) { super(); - this.version = version; - this.downloadUrl = downloadUrl; + this.replicat = replicat; + this.acceptableLag = acceptableLag; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** ODMS Agent Image version. */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - /** - * ODMS Agent Image version. - * - * @param version the value to set - * @return this builder - */ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private CreateReplicat replicat; + + public Builder replicat(CreateReplicat replicat) { + this.replicat = replicat; + this.__explicitlySet__.add("replicat"); return this; } - /** URL to download Agent Image of the ODMS Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("downloadUrl") - private String downloadUrl; + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private Integer acceptableLag; /** - * URL to download Agent Image of the ODMS Agent. + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. * - * @param downloadUrl the value to set + * @param acceptableLag the value to set * @return this builder */ - public Builder downloadUrl(String downloadUrl) { - this.downloadUrl = downloadUrl; - this.__explicitlySet__.add("downloadUrl"); + public Builder acceptableLag(Integer acceptableLag) { + this.acceptableLag = acceptableLag; + this.__explicitlySet__.add("acceptableLag"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AgentImageSummary build() { - AgentImageSummary model = new AgentImageSummary(this.version, this.downloadUrl); + public CreateMySqlGgsDeploymentDetails build() { + CreateMySqlGgsDeploymentDetails model = + new CreateMySqlGgsDeploymentDetails(this.replicat, this.acceptableLag); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -75,12 +74,12 @@ public AgentImageSummary build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentImageSummary model) { - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); + public Builder copy(CreateMySqlGgsDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("replicat")) { + this.replicat(model.getReplicat()); } - if (model.wasPropertyExplicitlySet("downloadUrl")) { - this.downloadUrl(model.getDownloadUrl()); + if (model.wasPropertyExplicitlySet("acceptableLag")) { + this.acceptableLag(model.getAcceptableLag()); } return this; } @@ -95,30 +94,28 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** ODMS Agent Image version. */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private final CreateReplicat replicat; - /** - * ODMS Agent Image version. - * - * @return the value - */ - public String getVersion() { - return version; + public CreateReplicat getReplicat() { + return replicat; } - /** URL to download Agent Image of the ODMS Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("downloadUrl") - private final String downloadUrl; + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private final Integer acceptableLag; /** - * URL to download Agent Image of the ODMS Agent. + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. * * @return the value */ - public String getDownloadUrl() { - return downloadUrl; + public Integer getAcceptableLag() { + return acceptableLag; } @Override @@ -134,10 +131,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentImageSummary("); + sb.append("CreateMySqlGgsDeploymentDetails("); sb.append("super=").append(super.toString()); - sb.append("version=").append(String.valueOf(this.version)); - sb.append(", downloadUrl=").append(String.valueOf(this.downloadUrl)); + sb.append("replicat=").append(String.valueOf(this.replicat)); + sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); sb.append(")"); return sb.toString(); } @@ -147,13 +144,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AgentImageSummary)) { + if (!(o instanceof CreateMySqlGgsDeploymentDetails)) { return false; } - AgentImageSummary other = (AgentImageSummary) o; - return java.util.Objects.equals(this.version, other.version) - && java.util.Objects.equals(this.downloadUrl, other.downloadUrl) + CreateMySqlGgsDeploymentDetails other = (CreateMySqlGgsDeploymentDetails) o; + return java.util.Objects.equals(this.replicat, other.replicat) + && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) && super.equals(other); } @@ -161,8 +158,10 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.version == null ? 43 : this.version.hashCode()); - result = (result * PRIME) + (this.downloadUrl == null ? 43 : this.downloadUrl.hashCode()); + result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); + result = + (result * PRIME) + + (this.acceptableLag == null ? 43 : this.acceptableLag.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlInitialLoadSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlInitialLoadSettings.java new file mode 100644 index 00000000000..3a2c5ee20c7 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlInitialLoadSettings.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.databasemigration.model; + +/** + * Optional dump settings
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMySqlInitialLoadSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateMySqlInitialLoadSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isConsistent", + "isTzUtc", + "compatibility", + "primaryKeyCompatibility", + "isIgnoreExistingObjects", + "handleGrantErrors", + "jobMode" + }) + public CreateMySqlInitialLoadSettings( + Boolean isConsistent, + Boolean isTzUtc, + java.util.List compatibility, + PrimaryKeyCompatibility primaryKeyCompatibility, + Boolean isIgnoreExistingObjects, + HandleGrantErrors handleGrantErrors, + JobModeMySql jobMode) { + super(); + this.isConsistent = isConsistent; + this.isTzUtc = isTzUtc; + this.compatibility = compatibility; + this.primaryKeyCompatibility = primaryKeyCompatibility; + this.isIgnoreExistingObjects = isIgnoreExistingObjects; + this.handleGrantErrors = handleGrantErrors; + this.jobMode = jobMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isConsistent") + private Boolean isConsistent; + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + * + * @param isConsistent the value to set + * @return this builder + */ + public Builder isConsistent(Boolean isConsistent) { + this.isConsistent = isConsistent; + this.__explicitlySet__.add("isConsistent"); + return this; + } + /** Include a statement at the start of the dump to set the time zone to UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("isTzUtc") + private Boolean isTzUtc; + + /** + * Include a statement at the start of the dump to set the time zone to UTC. + * + * @param isTzUtc the value to set + * @return this builder + */ + public Builder isTzUtc(Boolean isTzUtc) { + this.isTzUtc = isTzUtc; + this.__explicitlySet__.add("isTzUtc"); + return this; + } + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all + * tables in the dump output, altering the dump files as necessary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compatibility") + private java.util.List compatibility; + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all + * tables in the dump output, altering the dump files as necessary. + * + * @param compatibility the value to set + * @return this builder + */ + public Builder compatibility(java.util.List compatibility) { + this.compatibility = compatibility; + this.__explicitlySet__.add("compatibility"); + return this; + } + /** Primary key compatibility option */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryKeyCompatibility") + private PrimaryKeyCompatibility primaryKeyCompatibility; + + /** + * Primary key compatibility option + * + * @param primaryKeyCompatibility the value to set + * @return this builder + */ + public Builder primaryKeyCompatibility(PrimaryKeyCompatibility primaryKeyCompatibility) { + this.primaryKeyCompatibility = primaryKeyCompatibility; + this.__explicitlySet__.add("primaryKeyCompatibility"); + return this; + } + /** + * Import the dump even if it contains objects that already exist in the target schema in + * the MySQL instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreExistingObjects") + private Boolean isIgnoreExistingObjects; + + /** + * Import the dump even if it contains objects that already exist in the target schema in + * the MySQL instance. + * + * @param isIgnoreExistingObjects the value to set + * @return this builder + */ + public Builder isIgnoreExistingObjects(Boolean isIgnoreExistingObjects) { + this.isIgnoreExistingObjects = isIgnoreExistingObjects; + this.__explicitlySet__.add("isIgnoreExistingObjects"); + return this; + } + /** The action taken in the event of errors related to GRANT or REVOKE errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("handleGrantErrors") + private HandleGrantErrors handleGrantErrors; + + /** + * The action taken in the event of errors related to GRANT or REVOKE errors. + * + * @param handleGrantErrors the value to set + * @return this builder + */ + public Builder handleGrantErrors(HandleGrantErrors handleGrantErrors) { + this.handleGrantErrors = handleGrantErrors; + this.__explicitlySet__.add("handleGrantErrors"); + return this; + } + /** MySql Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private JobModeMySql jobMode; + + /** + * MySql Job Mode + * + * @param jobMode the value to set + * @return this builder + */ + public Builder jobMode(JobModeMySql jobMode) { + this.jobMode = jobMode; + this.__explicitlySet__.add("jobMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateMySqlInitialLoadSettings build() { + CreateMySqlInitialLoadSettings model = + new CreateMySqlInitialLoadSettings( + this.isConsistent, + this.isTzUtc, + this.compatibility, + this.primaryKeyCompatibility, + this.isIgnoreExistingObjects, + this.handleGrantErrors, + this.jobMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMySqlInitialLoadSettings model) { + if (model.wasPropertyExplicitlySet("isConsistent")) { + this.isConsistent(model.getIsConsistent()); + } + if (model.wasPropertyExplicitlySet("isTzUtc")) { + this.isTzUtc(model.getIsTzUtc()); + } + if (model.wasPropertyExplicitlySet("compatibility")) { + this.compatibility(model.getCompatibility()); + } + if (model.wasPropertyExplicitlySet("primaryKeyCompatibility")) { + this.primaryKeyCompatibility(model.getPrimaryKeyCompatibility()); + } + if (model.wasPropertyExplicitlySet("isIgnoreExistingObjects")) { + this.isIgnoreExistingObjects(model.getIsIgnoreExistingObjects()); + } + if (model.wasPropertyExplicitlySet("handleGrantErrors")) { + this.handleGrantErrors(model.getHandleGrantErrors()); + } + if (model.wasPropertyExplicitlySet("jobMode")) { + this.jobMode(model.getJobMode()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isConsistent") + private final Boolean isConsistent; + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + * + * @return the value + */ + public Boolean getIsConsistent() { + return isConsistent; + } + + /** Include a statement at the start of the dump to set the time zone to UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("isTzUtc") + private final Boolean isTzUtc; + + /** + * Include a statement at the start of the dump to set the time zone to UTC. + * + * @return the value + */ + public Boolean getIsTzUtc() { + return isTzUtc; + } + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all tables + * in the dump output, altering the dump files as necessary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compatibility") + private final java.util.List compatibility; + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all tables + * in the dump output, altering the dump files as necessary. + * + * @return the value + */ + public java.util.List getCompatibility() { + return compatibility; + } + + /** Primary key compatibility option */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryKeyCompatibility") + private final PrimaryKeyCompatibility primaryKeyCompatibility; + + /** + * Primary key compatibility option + * + * @return the value + */ + public PrimaryKeyCompatibility getPrimaryKeyCompatibility() { + return primaryKeyCompatibility; + } + + /** + * Import the dump even if it contains objects that already exist in the target schema in the + * MySQL instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreExistingObjects") + private final Boolean isIgnoreExistingObjects; + + /** + * Import the dump even if it contains objects that already exist in the target schema in the + * MySQL instance. + * + * @return the value + */ + public Boolean getIsIgnoreExistingObjects() { + return isIgnoreExistingObjects; + } + + /** The action taken in the event of errors related to GRANT or REVOKE errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("handleGrantErrors") + private final HandleGrantErrors handleGrantErrors; + + /** + * The action taken in the event of errors related to GRANT or REVOKE errors. + * + * @return the value + */ + public HandleGrantErrors getHandleGrantErrors() { + return handleGrantErrors; + } + + /** MySql Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private final JobModeMySql jobMode; + + /** + * MySql Job Mode + * + * @return the value + */ + public JobModeMySql getJobMode() { + return jobMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMySqlInitialLoadSettings("); + sb.append("super=").append(super.toString()); + sb.append("isConsistent=").append(String.valueOf(this.isConsistent)); + sb.append(", isTzUtc=").append(String.valueOf(this.isTzUtc)); + sb.append(", compatibility=").append(String.valueOf(this.compatibility)); + sb.append(", primaryKeyCompatibility=") + .append(String.valueOf(this.primaryKeyCompatibility)); + sb.append(", isIgnoreExistingObjects=") + .append(String.valueOf(this.isIgnoreExistingObjects)); + sb.append(", handleGrantErrors=").append(String.valueOf(this.handleGrantErrors)); + sb.append(", jobMode=").append(String.valueOf(this.jobMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMySqlInitialLoadSettings)) { + return false; + } + + CreateMySqlInitialLoadSettings other = (CreateMySqlInitialLoadSettings) o; + return java.util.Objects.equals(this.isConsistent, other.isConsistent) + && java.util.Objects.equals(this.isTzUtc, other.isTzUtc) + && java.util.Objects.equals(this.compatibility, other.compatibility) + && java.util.Objects.equals( + this.primaryKeyCompatibility, other.primaryKeyCompatibility) + && java.util.Objects.equals( + this.isIgnoreExistingObjects, other.isIgnoreExistingObjects) + && java.util.Objects.equals(this.handleGrantErrors, other.handleGrantErrors) + && java.util.Objects.equals(this.jobMode, other.jobMode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isConsistent == null ? 43 : this.isConsistent.hashCode()); + result = (result * PRIME) + (this.isTzUtc == null ? 43 : this.isTzUtc.hashCode()); + result = + (result * PRIME) + + (this.compatibility == null ? 43 : this.compatibility.hashCode()); + result = + (result * PRIME) + + (this.primaryKeyCompatibility == null + ? 43 + : this.primaryKeyCompatibility.hashCode()); + result = + (result * PRIME) + + (this.isIgnoreExistingObjects == null + ? 43 + : this.isIgnoreExistingObjects.hashCode()); + result = + (result * PRIME) + + (this.handleGrantErrors == null ? 43 : this.handleGrantErrors.hashCode()); + result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlMigrationDetails.java new file mode 100644 index 00000000000..21a3001960a --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlMigrationDetails.java @@ -0,0 +1,503 @@ +/** + * 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.databasemigration.model; + +/** + * Create Migration resource parameters.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMySqlMigrationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateMySqlMigrationDetails extends CreateMigrationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateMySqlDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateMySqlDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateMySqlInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateMySqlInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateMySqlAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateMySqlAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + */ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + * + * @param includeObjects the value to set + * @return this builder + */ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private CreateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(CreateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private CreateMySqlGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(CreateMySqlGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateMySqlMigrationDetails build() { + CreateMySqlMigrationDetails model = + new CreateMySqlMigrationDetails( + this.description, + this.compartmentId, + this.type, + this.displayName, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.freeformTags, + this.definedTags, + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData, + this.hubDetails, + this.ggsDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMySqlMigrationDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateMySqlMigrationDetails( + String description, + String compartmentId, + MigrationTypes type, + String displayName, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + java.util.Map freeformTags, + java.util.Map> definedTags, + CreateMySqlDataTransferMediumDetails dataTransferMediumDetails, + CreateMySqlInitialLoadSettings initialLoadSettings, + CreateMySqlAdvisorSettings advisorSettings, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData, + CreateGoldenGateHubDetails hubDetails, + CreateMySqlGgsDeploymentDetails ggsDetails) { + super( + description, + compartmentId, + type, + displayName, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + freeformTags, + definedTags); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateMySqlDataTransferMediumDetails dataTransferMediumDetails; + + public CreateMySqlDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateMySqlInitialLoadSettings initialLoadSettings; + + public CreateMySqlInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateMySqlAdvisorSettings advisorSettings; + + public CreateMySqlAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + */ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * + * @return the value + */ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final CreateGoldenGateHubDetails hubDetails; + + public CreateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final CreateMySqlGgsDeploymentDetails ggsDetails; + + public CreateMySqlGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMySqlMigrationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMySqlMigrationDetails)) { + return false; + } + + CreateMySqlMigrationDetails other = (CreateMySqlMigrationDetails) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NfsDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlObjectStorageDataTransferMediumDetails.java similarity index 75% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NfsDataTransferMediumDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlObjectStorageDataTransferMediumDetails.java index 75efc063a37..3f5b01a1632 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NfsDataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMySqlObjectStorageDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
+ * OCI Object Storage bucket will be used to store dump files for the migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,23 +15,24 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = NfsDataTransferMediumDetails.Builder.class) + builder = CreateMySqlObjectStorageDataTransferMediumDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class NfsDataTransferMediumDetails extends DataTransferMediumDetailsV2 { +public final class CreateMySqlObjectStorageDataTransferMediumDetails + extends CreateMySqlDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") - private ObjectStoreBucket objectStorageBucket; + private CreateObjectStoreBucket objectStorageBucket; - public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { + public Builder objectStorageBucket(CreateObjectStoreBucket objectStorageBucket) { this.objectStorageBucket = objectStorageBucket; this.__explicitlySet__.add("objectStorageBucket"); return this; @@ -40,9 +41,9 @@ public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public NfsDataTransferMediumDetails build() { - NfsDataTransferMediumDetails model = - new NfsDataTransferMediumDetails(this.objectStorageBucket); + public CreateMySqlObjectStorageDataTransferMediumDetails build() { + CreateMySqlObjectStorageDataTransferMediumDetails model = + new CreateMySqlObjectStorageDataTransferMediumDetails(this.objectStorageBucket); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -50,7 +51,7 @@ public NfsDataTransferMediumDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(NfsDataTransferMediumDetails model) { + public Builder copy(CreateMySqlObjectStorageDataTransferMediumDetails model) { if (model.wasPropertyExplicitlySet("objectStorageBucket")) { this.objectStorageBucket(model.getObjectStorageBucket()); } @@ -68,15 +69,16 @@ public Builder toBuilder() { } @Deprecated - public NfsDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket) { + public CreateMySqlObjectStorageDataTransferMediumDetails( + CreateObjectStoreBucket objectStorageBucket) { super(); this.objectStorageBucket = objectStorageBucket; } @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") - private final ObjectStoreBucket objectStorageBucket; + private final CreateObjectStoreBucket objectStorageBucket; - public ObjectStoreBucket getObjectStorageBucket() { + public CreateObjectStoreBucket getObjectStorageBucket() { return objectStorageBucket; } @@ -93,7 +95,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("NfsDataTransferMediumDetails("); + sb.append("CreateMySqlObjectStorageDataTransferMediumDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); sb.append(")"); @@ -105,11 +107,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof NfsDataTransferMediumDetails)) { + if (!(o instanceof CreateMySqlObjectStorageDataTransferMediumDetails)) { return false; } - NfsDataTransferMediumDetails other = (NfsDataTransferMediumDetails) o; + CreateMySqlObjectStorageDataTransferMediumDetails other = + (CreateMySqlObjectStorageDataTransferMediumDetails) o; return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) && super.equals(other); } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMysqlConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMysqlConnectionDetails.java new file mode 100644 index 00000000000..99c21eee6c5 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateMysqlConnectionDetails.java @@ -0,0 +1,784 @@ +/** + * 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.databasemigration.model; + +/** + * The information about a new MySQL Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateMysqlConnectionDetails.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 CreateMysqlConnectionDetails extends CreateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private String replicationUsername; + + public Builder replicationUsername(String replicationUsername) { + this.replicationUsername = replicationUsername; + this.__explicitlySet__.add("replicationUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private String replicationPassword; + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = replicationPassword; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private MysqlConnection.TechnologyType technologyType; + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + * + * @param technologyType the value to set + * @return this builder + */ + public Builder technologyType(MysqlConnection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The IP Address of the host. + * + * @param host the value to set + * @return this builder + */ + public Builder host(String host) { + this.host = host; + this.__explicitlySet__.add("host"); + return this; + } + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port to be used for the connection. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database being referenced. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** Security Type for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private MysqlConnection.SecurityProtocol securityProtocol; + + /** + * Security Type for MySQL. + * + * @param securityProtocol the value to set + * @return this builder + */ + public Builder securityProtocol(MysqlConnection.SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + /** SSL modes for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private MysqlConnection.SslMode sslMode; + + /** + * SSL modes for MySQL. + * + * @param sslMode the value to set + * @return this builder + */ + public Builder sslMode(MysqlConnection.SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") + private String sslCa; + + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + * + * @param sslCa the value to set + * @return this builder + */ + public Builder sslCa(String sslCa) { + this.sslCa = sslCa; + this.__explicitlySet__.add("sslCa"); + return this; + } + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on + * this list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable + * if TLS/MTLS option is selected. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") + private String sslCrl; + + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on + * this list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable + * if TLS/MTLS option is selected. + * + * @param sslCrl the value to set + * @return this builder + */ + public Builder sslCrl(String sslCrl) { + this.sslCrl = sslCrl; + this.__explicitlySet__.add("sslCrl"); + return this; + } + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the + * client public key (for 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") + private String sslCert; + + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the + * client public key (for 2-way SSL). + * + * @param sslCert the value to set + * @return this builder + */ + public Builder sslCert(String sslCert) { + this.sslCert = sslCert; + this.__explicitlySet__.add("sslCert"); + return this; + } + /** Client Key - The client-key.pem containing the client private key (for 2-way SSL). */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + private String sslKey; + + /** + * Client Key - The client-key.pem containing the client private key (for 2-way SSL). + * + * @param sslKey the value to set + * @return this builder + */ + public Builder sslKey(String sslKey) { + this.sslKey = sslKey; + this.__explicitlySet__.add("sslKey"); + return this; + } + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @param additionalAttributes the value to set + * @return this builder + */ + public Builder additionalAttributes(java.util.List additionalAttributes) { + this.additionalAttributes = additionalAttributes; + this.__explicitlySet__.add("additionalAttributes"); + return this; + } + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateMysqlConnectionDetails build() { + CreateMysqlConnectionDetails model = + new CreateMysqlConnectionDetails( + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.vaultId, + this.keyId, + this.subnetId, + this.nsgIds, + this.username, + this.password, + this.replicationUsername, + this.replicationPassword, + this.technologyType, + this.host, + this.port, + this.databaseName, + this.securityProtocol, + this.sslMode, + this.sslCa, + this.sslCrl, + this.sslCert, + this.sslKey, + this.additionalAttributes, + this.dbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateMysqlConnectionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("replicationUsername")) { + this.replicationUsername(model.getReplicationUsername()); + } + if (model.wasPropertyExplicitlySet("replicationPassword")) { + this.replicationPassword(model.getReplicationPassword()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("sslCa")) { + this.sslCa(model.getSslCa()); + } + if (model.wasPropertyExplicitlySet("sslCrl")) { + this.sslCrl(model.getSslCrl()); + } + if (model.wasPropertyExplicitlySet("sslCert")) { + this.sslCert(model.getSslCert()); + } + if (model.wasPropertyExplicitlySet("sslKey")) { + this.sslKey(model.getSslKey()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateMysqlConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + MysqlConnection.TechnologyType technologyType, + String host, + Integer port, + String databaseName, + MysqlConnection.SecurityProtocol securityProtocol, + MysqlConnection.SslMode sslMode, + String sslCa, + String sslCrl, + String sslCert, + String sslKey, + java.util.List additionalAttributes, + String dbSystemId) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + vaultId, + keyId, + subnetId, + nsgIds, + username, + password, + replicationUsername, + replicationPassword); + this.technologyType = technologyType; + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final MysqlConnection.TechnologyType technologyType; + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + * + * @return the value + */ + public MysqlConnection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The IP Address of the host. + * + * @return the value + */ + public String getHost() { + return host; + } + + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port to be used for the connection. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database being referenced. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** Security Type for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final MysqlConnection.SecurityProtocol securityProtocol; + + /** + * Security Type for MySQL. + * + * @return the value + */ + public MysqlConnection.SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + /** SSL modes for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final MysqlConnection.SslMode sslMode; + + /** + * SSL modes for MySQL. + * + * @return the value + */ + public MysqlConnection.SslMode getSslMode() { + return sslMode; + } + + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") + private final String sslCa; + + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + * + * @return the value + */ + public String getSslCa() { + return sslCa; + } + + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on this + * list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable if + * TLS/MTLS option is selected. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") + private final String sslCrl; + + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on this + * list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable if + * TLS/MTLS option is selected. + * + * @return the value + */ + public String getSslCrl() { + return sslCrl; + } + + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the client + * public key (for 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") + private final String sslCert; + + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the client + * public key (for 2-way SSL). + * + * @return the value + */ + public String getSslCert() { + return sslCert; + } + + /** Client Key - The client-key.pem containing the client private key (for 2-way SSL). */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + private final String sslKey; + + /** + * Client Key - The client-key.pem containing the client private key (for 2-way SSL). + * + * @return the value + */ + public String getSslKey() { + return sslKey; + } + + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @return the value + */ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateMysqlConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", sslCa=").append(String.valueOf(this.sslCa)); + sb.append(", sslCrl=").append(String.valueOf(this.sslCrl)); + sb.append(", sslCert=").append(String.valueOf(this.sslCert)); + sb.append(", sslKey=").append(String.valueOf(this.sslKey)); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateMysqlConnectionDetails)) { + return false; + } + + CreateMysqlConnectionDetails other = (CreateMysqlConnectionDetails) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.sslCa, other.sslCa) + && java.util.Objects.equals(this.sslCrl, other.sslCrl) + && java.util.Objects.equals(this.sslCert, other.sslCert) + && java.util.Objects.equals(this.sslKey, other.sslKey) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = (result * PRIME) + (this.sslCa == null ? 43 : this.sslCa.hashCode()); + result = (result * PRIME) + (this.sslCrl == null ? 43 : this.sslCrl.hashCode()); + result = (result * PRIME) + (this.sslCert == null ? 43 : this.sslCert.hashCode()); + result = (result * PRIME) + (this.sslKey == null ? 43 : this.sslKey.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBAutoCreateTablespaceDetails.java index ae0f12c33e7..94f046405f9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBAutoCreateTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateNonADBAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBRemapTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBRemapTablespaceDetails.java index 897452a7c8a..21a8b3318c9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBRemapTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateNonADBRemapTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateNonADBRemapTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateObjectStoreBucket.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateObjectStoreBucket.java index f34e9f538ef..75d0263a84f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateObjectStoreBucket.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateObjectStoreBucket.java @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateObjectStoreBucket.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOciCliDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOciCliDumpTransferDetails.java index e1f0372512d..d2deccbf961 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOciCliDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOciCliDumpTransferDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CreateOciCliDumpTransferDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAdvisorSettings.java new file mode 100644 index 00000000000..a3e09dbec84 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAdvisorSettings.java @@ -0,0 +1,182 @@ +/** + * 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.databasemigration.model; + +/** + * Optional Pre-Migration advisor settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleAdvisorSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOracleAdvisorSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) + public CreateOracleAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + super(); + this.isSkipAdvisor = isSkipAdvisor; + this.isIgnoreErrors = isIgnoreErrors; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** True to skip the Pre-Migration Advisor execution. Default is false. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipAdvisor") + private Boolean isSkipAdvisor; + + /** + * True to skip the Pre-Migration Advisor execution. Default is false. + * + * @param isSkipAdvisor the value to set + * @return this builder + */ + public Builder isSkipAdvisor(Boolean isSkipAdvisor) { + this.isSkipAdvisor = isSkipAdvisor; + this.__explicitlySet__.add("isSkipAdvisor"); + return this; + } + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreErrors") + private Boolean isIgnoreErrors; + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + * + * @param isIgnoreErrors the value to set + * @return this builder + */ + public Builder isIgnoreErrors(Boolean isIgnoreErrors) { + this.isIgnoreErrors = isIgnoreErrors; + this.__explicitlySet__.add("isIgnoreErrors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleAdvisorSettings build() { + CreateOracleAdvisorSettings model = + new CreateOracleAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleAdvisorSettings model) { + if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { + this.isSkipAdvisor(model.getIsSkipAdvisor()); + } + if (model.wasPropertyExplicitlySet("isIgnoreErrors")) { + this.isIgnoreErrors(model.getIsIgnoreErrors()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** True to skip the Pre-Migration Advisor execution. Default is false. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipAdvisor") + private final Boolean isSkipAdvisor; + + /** + * True to skip the Pre-Migration Advisor execution. Default is false. + * + * @return the value + */ + public Boolean getIsSkipAdvisor() { + return isSkipAdvisor; + } + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreErrors") + private final Boolean isIgnoreErrors; + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + * + * @return the value + */ + public Boolean getIsIgnoreErrors() { + return isIgnoreErrors; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleAdvisorSettings("); + sb.append("super=").append(super.toString()); + sb.append("isSkipAdvisor=").append(String.valueOf(this.isSkipAdvisor)); + sb.append(", isIgnoreErrors=").append(String.valueOf(this.isIgnoreErrors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleAdvisorSettings)) { + return false; + } + + CreateOracleAdvisorSettings other = (CreateOracleAdvisorSettings) o; + return java.util.Objects.equals(this.isSkipAdvisor, other.isSkipAdvisor) + && java.util.Objects.equals(this.isIgnoreErrors, other.isIgnoreErrors) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isSkipAdvisor == null ? 43 : this.isSkipAdvisor.hashCode()); + result = + (result * PRIME) + + (this.isIgnoreErrors == null ? 43 : this.isIgnoreErrors.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAwsS3Details.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java similarity index 77% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAwsS3Details.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java index 5aff70b2f07..eccbf2032dd 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAwsS3Details.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleAwsS3DataTransferMediumDetails.java @@ -16,24 +16,17 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAwsS3Details.Builder.class) + builder = CreateOracleAwsS3DataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateAwsS3Details - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "region", "accessKeyId", "secretAccessKey"}) - public CreateAwsS3Details( - String name, String region, String accessKeyId, String secretAccessKey) { - super(); - this.name = name; - this.region = region; - this.accessKeyId = accessKeyId; - this.secretAccessKey = secretAccessKey; - } - +public final class CreateOracleAwsS3DataTransferMediumDetails + extends CreateOracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** S3 bucket name. */ @@ -111,13 +104,26 @@ public Builder secretAccessKey(String secretAccessKey) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private ObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateAwsS3Details build() { - CreateAwsS3Details model = - new CreateAwsS3Details( - this.name, this.region, this.accessKeyId, this.secretAccessKey); + public CreateOracleAwsS3DataTransferMediumDetails build() { + CreateOracleAwsS3DataTransferMediumDetails model = + new CreateOracleAwsS3DataTransferMediumDetails( + this.name, + this.region, + this.accessKeyId, + this.secretAccessKey, + this.objectStorageBucket); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -125,7 +131,7 @@ public CreateAwsS3Details build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAwsS3Details model) { + public Builder copy(CreateOracleAwsS3DataTransferMediumDetails model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -138,6 +144,9 @@ public Builder copy(CreateAwsS3Details model) { if (model.wasPropertyExplicitlySet("secretAccessKey")) { this.secretAccessKey(model.getSecretAccessKey()); } + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } return this; } } @@ -151,6 +160,21 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public CreateOracleAwsS3DataTransferMediumDetails( + String name, + String region, + String accessKeyId, + String secretAccessKey, + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; + this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey; + this.objectStorageBucket = objectStorageBucket; + } + /** S3 bucket name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -217,6 +241,13 @@ public String getSecretAccessKey() { return secretAccessKey; } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final ObjectStoreBucket objectStorageBucket; + + public ObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + @Override public String toString() { return this.toString(true); @@ -230,12 +261,13 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAwsS3Details("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); + sb.append("CreateOracleAwsS3DataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", accessKeyId=").append(""); sb.append(", secretAccessKey=").append(""); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); sb.append(")"); return sb.toString(); } @@ -245,29 +277,35 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateAwsS3Details)) { + if (!(o instanceof CreateOracleAwsS3DataTransferMediumDetails)) { return false; } - CreateAwsS3Details other = (CreateAwsS3Details) o; + CreateOracleAwsS3DataTransferMediumDetails other = + (CreateOracleAwsS3DataTransferMediumDetails) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) && java.util.Objects.equals(this.secretAccessKey, other.secretAccessKey) + && java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.accessKeyId == null ? 43 : this.accessKeyId.hashCode()); result = (result * PRIME) + (this.secretAccessKey == null ? 43 : this.secretAccessKey.hashCode()); - result = (result * PRIME) + super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleConnectionDetails.java new file mode 100644 index 00000000000..6d9076fa415 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleConnectionDetails.java @@ -0,0 +1,606 @@ +/** + * 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.databasemigration.model; + +/** + * The information about a new Oracle Database Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleConnectionDetails.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 CreateOracleConnectionDetails extends CreateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private String replicationUsername; + + public Builder replicationUsername(String replicationUsername) { + this.replicationUsername = replicationUsername; + this.__explicitlySet__.add("replicationUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private String replicationPassword; + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = replicationPassword; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** The Oracle technology type. */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private OracleConnection.TechnologyType technologyType; + + /** + * The Oracle technology type. + * + * @param technologyType the value to set + * @return this builder + */ + public Builder technologyType(OracleConnection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @param connectionString the value to set + * @return this builder + */ + public Builder connectionString(String connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + /** + * The wallet contents used to make connections to a database. This attribute is expected to + * be base64 encoded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + private String wallet; + + /** + * The wallet contents used to make connections to a database. This attribute is expected to + * be base64 encoded. + * + * @param wallet the value to set + * @return this builder + */ + public Builder wallet(String wallet) { + this.wallet = wallet; + this.__explicitlySet__.add("wallet"); + return this; + } + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The OCID of the database being referenced. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** Name of the host the SSH key is valid for. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshHost") + private String sshHost; + + /** + * Name of the host the SSH key is valid for. + * + * @param sshHost the value to set + * @return this builder + */ + public Builder sshHost(String sshHost) { + this.sshHost = sshHost; + this.__explicitlySet__.add("sshHost"); + return this; + } + /** Private SSH key string. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshKey") + private String sshKey; + + /** + * Private SSH key string. + * + * @param sshKey the value to set + * @return this builder + */ + public Builder sshKey(String sshKey) { + this.sshKey = sshKey; + this.__explicitlySet__.add("sshKey"); + return this; + } + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshUser") + private String sshUser; + + /** + * The username (credential) used when creating or updating this resource. + * + * @param sshUser the value to set + * @return this builder + */ + public Builder sshUser(String sshUser) { + this.sshUser = sshUser; + this.__explicitlySet__.add("sshUser"); + return this; + } + /** Sudo location */ + @com.fasterxml.jackson.annotation.JsonProperty("sshSudoLocation") + private String sshSudoLocation; + + /** + * Sudo location + * + * @param sshSudoLocation the value to set + * @return this builder + */ + public Builder sshSudoLocation(String sshSudoLocation) { + this.sshSudoLocation = sshSudoLocation; + this.__explicitlySet__.add("sshSudoLocation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleConnectionDetails build() { + CreateOracleConnectionDetails model = + new CreateOracleConnectionDetails( + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.vaultId, + this.keyId, + this.subnetId, + this.nsgIds, + this.username, + this.password, + this.replicationUsername, + this.replicationPassword, + this.technologyType, + this.connectionString, + this.wallet, + this.databaseId, + this.sshHost, + this.sshKey, + this.sshUser, + this.sshSudoLocation); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleConnectionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("replicationUsername")) { + this.replicationUsername(model.getReplicationUsername()); + } + if (model.wasPropertyExplicitlySet("replicationPassword")) { + this.replicationPassword(model.getReplicationPassword()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("connectionString")) { + this.connectionString(model.getConnectionString()); + } + if (model.wasPropertyExplicitlySet("wallet")) { + this.wallet(model.getWallet()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("sshHost")) { + this.sshHost(model.getSshHost()); + } + if (model.wasPropertyExplicitlySet("sshKey")) { + this.sshKey(model.getSshKey()); + } + if (model.wasPropertyExplicitlySet("sshUser")) { + this.sshUser(model.getSshUser()); + } + if (model.wasPropertyExplicitlySet("sshSudoLocation")) { + this.sshSudoLocation(model.getSshSudoLocation()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleConnectionDetails( + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + OracleConnection.TechnologyType technologyType, + String connectionString, + String wallet, + String databaseId, + String sshHost, + String sshKey, + String sshUser, + String sshSudoLocation) { + super( + displayName, + description, + compartmentId, + freeformTags, + definedTags, + vaultId, + keyId, + subnetId, + nsgIds, + username, + password, + replicationUsername, + replicationPassword); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.wallet = wallet; + this.databaseId = databaseId; + this.sshHost = sshHost; + this.sshKey = sshKey; + this.sshUser = sshUser; + this.sshSudoLocation = sshSudoLocation; + } + + /** The Oracle technology type. */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final OracleConnection.TechnologyType technologyType; + + /** + * The Oracle technology type. + * + * @return the value + */ + public OracleConnection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private final String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @return the value + */ + public String getConnectionString() { + return connectionString; + } + + /** + * The wallet contents used to make connections to a database. This attribute is expected to be + * base64 encoded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + private final String wallet; + + /** + * The wallet contents used to make connections to a database. This attribute is expected to be + * base64 encoded. + * + * @return the value + */ + public String getWallet() { + return wallet; + } + + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The OCID of the database being referenced. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** Name of the host the SSH key is valid for. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshHost") + private final String sshHost; + + /** + * Name of the host the SSH key is valid for. + * + * @return the value + */ + public String getSshHost() { + return sshHost; + } + + /** Private SSH key string. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshKey") + private final String sshKey; + + /** + * Private SSH key string. + * + * @return the value + */ + public String getSshKey() { + return sshKey; + } + + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshUser") + private final String sshUser; + + /** + * The username (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getSshUser() { + return sshUser; + } + + /** Sudo location */ + @com.fasterxml.jackson.annotation.JsonProperty("sshSudoLocation") + private final String sshSudoLocation; + + /** + * Sudo location + * + * @return the value + */ + public String getSshSudoLocation() { + return sshSudoLocation; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", wallet=").append(String.valueOf(this.wallet)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", sshHost=").append(String.valueOf(this.sshHost)); + sb.append(", sshKey=").append(String.valueOf(this.sshKey)); + sb.append(", sshUser=").append(String.valueOf(this.sshUser)); + sb.append(", sshSudoLocation=").append(String.valueOf(this.sshSudoLocation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleConnectionDetails)) { + return false; + } + + CreateOracleConnectionDetails other = (CreateOracleConnectionDetails) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.wallet, other.wallet) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.sshHost, other.sshHost) + && java.util.Objects.equals(this.sshKey, other.sshKey) + && java.util.Objects.equals(this.sshUser, other.sshUser) + && java.util.Objects.equals(this.sshSudoLocation, other.sshSudoLocation) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = + (result * PRIME) + + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = (result * PRIME) + (this.wallet == null ? 43 : this.wallet.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.sshHost == null ? 43 : this.sshHost.hashCode()); + result = (result * PRIME) + (this.sshKey == null ? 43 : this.sshKey.hashCode()); + result = (result * PRIME) + (this.sshUser == null ? 43 : this.sshUser.hashCode()); + result = + (result * PRIME) + + (this.sshSudoLocation == null ? 43 : this.sshSudoLocation.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDataTransferMediumDetails.java new file mode 100644 index 00000000000..c7dd3e0d6f7 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDataTransferMediumDetails.java @@ -0,0 +1,123 @@ +/** + * 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.databasemigration.model; + +/** + * Optional additional properties for data transfer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = CreateOracleDataTransferMediumDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleDbLinkDataTransferMediumDetails.class, + name = "DBLINK"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleNfsDataTransferMediumDetails.class, + name = "NFS"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleObjectStorageDataTransferMediumDetails.class, + name = "OBJECT_STORAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = CreateOracleAwsS3DataTransferMediumDetails.class, + name = "AWS_S3") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class CreateOracleDataTransferMediumDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected CreateOracleDataTransferMediumDetails() { + 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("CreateOracleDataTransferMediumDetails("); + 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 CreateOracleDataTransferMediumDetails)) { + return false; + } + + CreateOracleDataTransferMediumDetails other = (CreateOracleDataTransferMediumDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the data transfer medium to use. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Dblink("DBLINK"), + ObjectStorage("OBJECT_STORAGE"), + AwsS3("AWS_S3"), + Nfs("NFS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDatabaseLinkDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDbLinkDataTransferMediumDetails.java similarity index 62% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDatabaseLinkDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDbLinkDataTransferMediumDetails.java index 733abb4fd3a..218b1b5a320 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDatabaseLinkDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleDbLinkDataTransferMediumDetails.java @@ -16,23 +16,28 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDatabaseLinkDetails.Builder.class) + builder = CreateOracleDbLinkDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateDatabaseLinkDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "walletBucket"}) - public CreateDatabaseLinkDetails(String name, CreateObjectStoreBucket walletBucket) { - super(); - this.name = name; - this.walletBucket = walletBucket; - } - +public final class CreateOracleDbLinkDataTransferMediumDetails + extends CreateOracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private CreateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(CreateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } /** * Name of database link from OCI database to on-premise database. ODMS will create link, if * the link does not already exist. @@ -53,21 +58,13 @@ public Builder name(String name) { return this; } - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private CreateObjectStoreBucket walletBucket; - - public Builder walletBucket(CreateObjectStoreBucket walletBucket) { - this.walletBucket = walletBucket; - this.__explicitlySet__.add("walletBucket"); - return this; - } - @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateDatabaseLinkDetails build() { - CreateDatabaseLinkDetails model = - new CreateDatabaseLinkDetails(this.name, this.walletBucket); + public CreateOracleDbLinkDataTransferMediumDetails build() { + CreateOracleDbLinkDataTransferMediumDetails model = + new CreateOracleDbLinkDataTransferMediumDetails( + this.objectStorageBucket, this.name); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -75,13 +72,13 @@ public CreateDatabaseLinkDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDatabaseLinkDetails model) { + public Builder copy(CreateOracleDbLinkDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } - if (model.wasPropertyExplicitlySet("walletBucket")) { - this.walletBucket(model.getWalletBucket()); - } return this; } } @@ -95,6 +92,21 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public CreateOracleDbLinkDataTransferMediumDetails( + CreateObjectStoreBucket objectStorageBucket, String name) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.name = name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final CreateObjectStoreBucket objectStorageBucket; + + public CreateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + /** * Name of database link from OCI database to on-premise database. ODMS will create link, if the * link does not already exist. @@ -112,13 +124,6 @@ public String getName() { return name; } - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private final CreateObjectStoreBucket walletBucket; - - public CreateObjectStoreBucket getWalletBucket() { - return walletBucket; - } - @Override public String toString() { return this.toString(true); @@ -132,10 +137,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDatabaseLinkDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", walletBucket=").append(String.valueOf(this.walletBucket)); + sb.append("CreateOracleDbLinkDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", name=").append(String.valueOf(this.name)); sb.append(")"); return sb.toString(); } @@ -145,23 +150,27 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDatabaseLinkDetails)) { + if (!(o instanceof CreateOracleDbLinkDataTransferMediumDetails)) { return false; } - CreateDatabaseLinkDetails other = (CreateDatabaseLinkDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.walletBucket, other.walletBucket) + CreateOracleDbLinkDataTransferMediumDetails other = + (CreateOracleDbLinkDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.name, other.name) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.walletBucket == null ? 43 : this.walletBucket.hashCode()); - result = (result * PRIME) + super.hashCode(); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleGgsDeploymentDetails.java similarity index 89% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleGgsDeploymentDetails.java index 6cb3b24079a..9987b447ed7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateGoldenGateSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleGgsDeploymentDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional settings for GoldenGate Microservices processes
+ * Optional settings for Oracle GoldenGate processes
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,16 +15,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateGoldenGateSettings.Builder.class) + builder = CreateOracleGgsDeploymentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateGoldenGateSettings +public final class CreateOracleGgsDeploymentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"extract", "replicat", "acceptableLag"}) - public CreateGoldenGateSettings( + public CreateOracleGgsDeploymentDetails( CreateExtract extract, CreateReplicat replicat, Integer acceptableLag) { super(); this.extract = extract; @@ -75,9 +75,10 @@ public Builder acceptableLag(Integer acceptableLag) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateGoldenGateSettings build() { - CreateGoldenGateSettings model = - new CreateGoldenGateSettings(this.extract, this.replicat, this.acceptableLag); + public CreateOracleGgsDeploymentDetails build() { + CreateOracleGgsDeploymentDetails model = + new CreateOracleGgsDeploymentDetails( + this.extract, this.replicat, this.acceptableLag); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -85,7 +86,7 @@ public CreateGoldenGateSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateGoldenGateSettings model) { + public Builder copy(CreateOracleGgsDeploymentDetails model) { if (model.wasPropertyExplicitlySet("extract")) { this.extract(model.getExtract()); } @@ -152,7 +153,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateGoldenGateSettings("); + sb.append("CreateOracleGgsDeploymentDetails("); sb.append("super=").append(super.toString()); sb.append("extract=").append(String.valueOf(this.extract)); sb.append(", replicat=").append(String.valueOf(this.replicat)); @@ -166,11 +167,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateGoldenGateSettings)) { + if (!(o instanceof CreateOracleGgsDeploymentDetails)) { return false; } - CreateGoldenGateSettings other = (CreateGoldenGateSettings) o; + CreateOracleGgsDeploymentDetails other = (CreateOracleGgsDeploymentDetails) o; return java.util.Objects.equals(this.extract, other.extract) && java.util.Objects.equals(this.replicat, other.replicat) && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleInitialLoadSettings.java similarity index 77% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleInitialLoadSettings.java index 71d09926e3c..a38eda3696d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDataPumpSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleInitialLoadSettings.java @@ -15,59 +15,40 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDataPumpSettings.Builder.class) + builder = CreateOracleInitialLoadSettings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateDataPumpSettings +public final class CreateOracleInitialLoadSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ - "jobMode", "dataPumpParameters", - "metadataRemaps", "tablespaceDetails", "exportDirectoryObject", - "importDirectoryObject" + "importDirectoryObject", + "jobMode", + "metadataRemaps" }) - public CreateDataPumpSettings( - DataPumpJobMode jobMode, + public CreateOracleInitialLoadSettings( CreateDataPumpParameters dataPumpParameters, - java.util.List metadataRemaps, CreateTargetTypeTablespaceDetails tablespaceDetails, CreateDirectoryObject exportDirectoryObject, - CreateDirectoryObject importDirectoryObject) { + CreateDirectoryObject importDirectoryObject, + JobModeOracle jobMode, + java.util.List metadataRemaps) { super(); - this.jobMode = jobMode; this.dataPumpParameters = dataPumpParameters; - this.metadataRemaps = metadataRemaps; this.tablespaceDetails = tablespaceDetails; this.exportDirectoryObject = exportDirectoryObject; this.importDirectoryObject = importDirectoryObject; + this.jobMode = jobMode; + this.metadataRemaps = metadataRemaps; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** - * Data Pump job mode. Refer to [link - * text](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - */ - @com.fasterxml.jackson.annotation.JsonProperty("jobMode") - private DataPumpJobMode jobMode; - - /** - * Data Pump job mode. Refer to [link - * text](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - * - * @param jobMode the value to set - * @return this builder - */ - public Builder jobMode(DataPumpJobMode jobMode) { - this.jobMode = jobMode; - this.__explicitlySet__.add("jobMode"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("dataPumpParameters") private CreateDataPumpParameters dataPumpParameters; @@ -77,25 +58,6 @@ public Builder dataPumpParameters(CreateDataPumpParameters dataPumpParameters) { this.__explicitlySet__.add("dataPumpParameters"); return this; } - /** - * Defines remapping to be applied to objects as they are processed. Refer to - * [DATA_REMAP](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-E75AAE6F-4EA6-4737-A752-6B62F5E9D460) - */ - @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") - private java.util.List metadataRemaps; - - /** - * Defines remapping to be applied to objects as they are processed. Refer to - * [DATA_REMAP](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-E75AAE6F-4EA6-4737-A752-6B62F5E9D460) - * - * @param metadataRemaps the value to set - * @return this builder - */ - public Builder metadataRemaps(java.util.List metadataRemaps) { - this.metadataRemaps = metadataRemaps; - this.__explicitlySet__.add("metadataRemaps"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("tablespaceDetails") private CreateTargetTypeTablespaceDetails tablespaceDetails; @@ -123,19 +85,49 @@ public Builder importDirectoryObject(CreateDirectoryObject importDirectoryObject this.__explicitlySet__.add("importDirectoryObject"); return this; } + /** Oracle Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private JobModeOracle jobMode; + + /** + * Oracle Job Mode + * + * @param jobMode the value to set + * @return this builder + */ + public Builder jobMode(JobModeOracle jobMode) { + this.jobMode = jobMode; + this.__explicitlySet__.add("jobMode"); + return this; + } + /** Defines remapping to be applied to objects as they are processed. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") + private java.util.List metadataRemaps; + + /** + * Defines remapping to be applied to objects as they are processed. + * + * @param metadataRemaps the value to set + * @return this builder + */ + public Builder metadataRemaps(java.util.List metadataRemaps) { + this.metadataRemaps = metadataRemaps; + this.__explicitlySet__.add("metadataRemaps"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateDataPumpSettings build() { - CreateDataPumpSettings model = - new CreateDataPumpSettings( - this.jobMode, + public CreateOracleInitialLoadSettings build() { + CreateOracleInitialLoadSettings model = + new CreateOracleInitialLoadSettings( this.dataPumpParameters, - this.metadataRemaps, this.tablespaceDetails, this.exportDirectoryObject, - this.importDirectoryObject); + this.importDirectoryObject, + this.jobMode, + this.metadataRemaps); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -143,16 +135,10 @@ public CreateDataPumpSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDataPumpSettings model) { - if (model.wasPropertyExplicitlySet("jobMode")) { - this.jobMode(model.getJobMode()); - } + public Builder copy(CreateOracleInitialLoadSettings model) { if (model.wasPropertyExplicitlySet("dataPumpParameters")) { this.dataPumpParameters(model.getDataPumpParameters()); } - if (model.wasPropertyExplicitlySet("metadataRemaps")) { - this.metadataRemaps(model.getMetadataRemaps()); - } if (model.wasPropertyExplicitlySet("tablespaceDetails")) { this.tablespaceDetails(model.getTablespaceDetails()); } @@ -162,6 +148,12 @@ public Builder copy(CreateDataPumpSettings model) { if (model.wasPropertyExplicitlySet("importDirectoryObject")) { this.importDirectoryObject(model.getImportDirectoryObject()); } + if (model.wasPropertyExplicitlySet("jobMode")) { + this.jobMode(model.getJobMode()); + } + if (model.wasPropertyExplicitlySet("metadataRemaps")) { + this.metadataRemaps(model.getMetadataRemaps()); + } return this; } } @@ -175,23 +167,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * Data Pump job mode. Refer to [link - * text](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - */ - @com.fasterxml.jackson.annotation.JsonProperty("jobMode") - private final DataPumpJobMode jobMode; - - /** - * Data Pump job mode. Refer to [link - * text](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - * - * @return the value - */ - public DataPumpJobMode getJobMode() { - return jobMode; - } - @com.fasterxml.jackson.annotation.JsonProperty("dataPumpParameters") private final CreateDataPumpParameters dataPumpParameters; @@ -199,23 +174,6 @@ public CreateDataPumpParameters getDataPumpParameters() { return dataPumpParameters; } - /** - * Defines remapping to be applied to objects as they are processed. Refer to - * [DATA_REMAP](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-E75AAE6F-4EA6-4737-A752-6B62F5E9D460) - */ - @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") - private final java.util.List metadataRemaps; - - /** - * Defines remapping to be applied to objects as they are processed. Refer to - * [DATA_REMAP](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-E75AAE6F-4EA6-4737-A752-6B62F5E9D460) - * - * @return the value - */ - public java.util.List getMetadataRemaps() { - return metadataRemaps; - } - @com.fasterxml.jackson.annotation.JsonProperty("tablespaceDetails") private final CreateTargetTypeTablespaceDetails tablespaceDetails; @@ -237,6 +195,32 @@ public CreateDirectoryObject getImportDirectoryObject() { return importDirectoryObject; } + /** Oracle Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private final JobModeOracle jobMode; + + /** + * Oracle Job Mode + * + * @return the value + */ + public JobModeOracle getJobMode() { + return jobMode; + } + + /** Defines remapping to be applied to objects as they are processed. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") + private final java.util.List metadataRemaps; + + /** + * Defines remapping to be applied to objects as they are processed. + * + * @return the value + */ + public java.util.List getMetadataRemaps() { + return metadataRemaps; + } + @Override public String toString() { return this.toString(true); @@ -250,14 +234,14 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDataPumpSettings("); + sb.append("CreateOracleInitialLoadSettings("); sb.append("super=").append(super.toString()); - sb.append("jobMode=").append(String.valueOf(this.jobMode)); - sb.append(", dataPumpParameters=").append(String.valueOf(this.dataPumpParameters)); - sb.append(", metadataRemaps=").append(String.valueOf(this.metadataRemaps)); + sb.append("dataPumpParameters=").append(String.valueOf(this.dataPumpParameters)); sb.append(", tablespaceDetails=").append(String.valueOf(this.tablespaceDetails)); sb.append(", exportDirectoryObject=").append(String.valueOf(this.exportDirectoryObject)); sb.append(", importDirectoryObject=").append(String.valueOf(this.importDirectoryObject)); + sb.append(", jobMode=").append(String.valueOf(this.jobMode)); + sb.append(", metadataRemaps=").append(String.valueOf(this.metadataRemaps)); sb.append(")"); return sb.toString(); } @@ -267,17 +251,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDataPumpSettings)) { + if (!(o instanceof CreateOracleInitialLoadSettings)) { return false; } - CreateDataPumpSettings other = (CreateDataPumpSettings) o; - return java.util.Objects.equals(this.jobMode, other.jobMode) - && java.util.Objects.equals(this.dataPumpParameters, other.dataPumpParameters) - && java.util.Objects.equals(this.metadataRemaps, other.metadataRemaps) + CreateOracleInitialLoadSettings other = (CreateOracleInitialLoadSettings) o; + return java.util.Objects.equals(this.dataPumpParameters, other.dataPumpParameters) && java.util.Objects.equals(this.tablespaceDetails, other.tablespaceDetails) && java.util.Objects.equals(this.exportDirectoryObject, other.exportDirectoryObject) && java.util.Objects.equals(this.importDirectoryObject, other.importDirectoryObject) + && java.util.Objects.equals(this.jobMode, other.jobMode) + && java.util.Objects.equals(this.metadataRemaps, other.metadataRemaps) && super.equals(other); } @@ -285,15 +269,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); result = (result * PRIME) + (this.dataPumpParameters == null ? 43 : this.dataPumpParameters.hashCode()); - result = - (result * PRIME) - + (this.metadataRemaps == null ? 43 : this.metadataRemaps.hashCode()); result = (result * PRIME) + (this.tablespaceDetails == null ? 43 : this.tablespaceDetails.hashCode()); @@ -307,6 +287,10 @@ public int hashCode() { + (this.importDirectoryObject == null ? 43 : this.importDirectoryObject.hashCode()); + result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); + result = + (result * PRIME) + + (this.metadataRemaps == null ? 43 : this.metadataRemaps.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java new file mode 100644 index 00000000000..ef7a4e5494e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleMigrationDetails.java @@ -0,0 +1,549 @@ +/** + * 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.databasemigration.model; + +/** + * Create Migration resource parameters.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleMigrationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOracleMigrationDetails extends CreateMigrationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + CreateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private CreateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(CreateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private CreateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(CreateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private CreateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(CreateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private CreateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(CreateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside + * 'includeObjects' + * + * @param excludeObjects the value to set + * @return this builder + */ + public Builder excludeObjects(java.util.List excludeObjects) { + this.excludeObjects = excludeObjects; + this.__explicitlySet__.add("excludeObjects"); + return this; + } + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside + * 'excludeObjects' + * + * @param includeObjects the value to set + * @return this builder + */ + public Builder includeObjects(java.util.List includeObjects) { + this.includeObjects = includeObjects; + this.__explicitlySet__.add("includeObjects"); + return this; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleMigrationDetails build() { + CreateOracleMigrationDetails model = + new CreateOracleMigrationDetails( + this.description, + this.compartmentId, + this.type, + this.displayName, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.freeformTags, + this.definedTags, + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId, + this.excludeObjects, + this.includeObjects, + this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleMigrationDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("excludeObjects")) { + this.excludeObjects(model.getExcludeObjects()); + } + if (model.wasPropertyExplicitlySet("includeObjects")) { + this.includeObjects(model.getIncludeObjects()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleMigrationDetails( + String description, + String compartmentId, + MigrationTypes type, + String displayName, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + java.util.Map freeformTags, + java.util.Map> definedTags, + CreateOracleDataTransferMediumDetails dataTransferMediumDetails, + CreateOracleInitialLoadSettings initialLoadSettings, + CreateOracleAdvisorSettings advisorSettings, + CreateGoldenGateHubDetails hubDetails, + CreateOracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId, + java.util.List excludeObjects, + java.util.List includeObjects, + String bulkIncludeExcludeData) { + super( + description, + compartmentId, + type, + displayName, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + freeformTags, + definedTags); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.excludeObjects = excludeObjects; + this.includeObjects = includeObjects; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final CreateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public CreateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final CreateOracleInitialLoadSettings initialLoadSettings; + + public CreateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final CreateOracleAdvisorSettings advisorSettings; + + public CreateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final CreateGoldenGateHubDetails hubDetails; + + public CreateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final CreateOracleGgsDeploymentDetails ggsDetails; + + public CreateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") + private final java.util.List excludeObjects; + + /** + * Database objects to exclude from migration, cannot be specified alongside 'includeObjects' + * + * @return the value + */ + public java.util.List getExcludeObjects() { + return excludeObjects; + } + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + */ + @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") + private final java.util.List includeObjects; + + /** + * Database objects to include from migration, cannot be specified alongside 'excludeObjects' + * + * @return the value + */ + public java.util.List getIncludeObjects() { + return includeObjects; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleMigrationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); + sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleMigrationDetails)) { + return false; + } + + CreateOracleMigrationDetails other = (CreateOracleMigrationDetails) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) + && java.util.Objects.equals(this.includeObjects, other.includeObjects) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + result = + (result * PRIME) + + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); + result = + (result * PRIME) + + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleNfsDataTransferMediumDetails.java similarity index 63% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDumpTransferDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleNfsDataTransferMediumDetails.java index bbbeceec0ab..b87411a8216 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleNfsDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer.
+ * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,41 +15,42 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDumpTransferDetails.Builder.class) + builder = CreateOracleNfsDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateDumpTransferDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"source", "target", "sharedStorageMountTargetId"}) - public UpdateDumpTransferDetails( - UpdateHostDumpTransferDetails source, - UpdateHostDumpTransferDetails target, - String sharedStorageMountTargetId) { - super(); - this.source = source; - this.target = target; - this.sharedStorageMountTargetId = sharedStorageMountTargetId; - } - +public final class CreateOracleNfsDataTransferMediumDetails + extends CreateOracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private CreateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(CreateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("source") - private UpdateHostDumpTransferDetails source; + private HostDumpTransferDetails source; - public Builder source(UpdateHostDumpTransferDetails source) { + public Builder source(HostDumpTransferDetails source) { this.source = source; this.__explicitlySet__.add("source"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("target") - private UpdateHostDumpTransferDetails target; + private HostDumpTransferDetails target; - public Builder target(UpdateHostDumpTransferDetails target) { + public Builder target(HostDumpTransferDetails target) { this.target = target; this.__explicitlySet__.add("target"); return this; @@ -73,10 +74,13 @@ public Builder sharedStorageMountTargetId(String sharedStorageMountTargetId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateDumpTransferDetails build() { - UpdateDumpTransferDetails model = - new UpdateDumpTransferDetails( - this.source, this.target, this.sharedStorageMountTargetId); + public CreateOracleNfsDataTransferMediumDetails build() { + CreateOracleNfsDataTransferMediumDetails model = + new CreateOracleNfsDataTransferMediumDetails( + this.objectStorageBucket, + this.source, + this.target, + this.sharedStorageMountTargetId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -84,7 +88,10 @@ public UpdateDumpTransferDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDumpTransferDetails model) { + public Builder copy(CreateOracleNfsDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } @@ -107,17 +114,37 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public CreateOracleNfsDataTransferMediumDetails( + CreateObjectStoreBucket objectStorageBucket, + HostDumpTransferDetails source, + HostDumpTransferDetails target, + String sharedStorageMountTargetId) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.source = source; + this.target = target; + this.sharedStorageMountTargetId = sharedStorageMountTargetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final CreateObjectStoreBucket objectStorageBucket; + + public CreateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + @com.fasterxml.jackson.annotation.JsonProperty("source") - private final UpdateHostDumpTransferDetails source; + private final HostDumpTransferDetails source; - public UpdateHostDumpTransferDetails getSource() { + public HostDumpTransferDetails getSource() { return source; } @com.fasterxml.jackson.annotation.JsonProperty("target") - private final UpdateHostDumpTransferDetails target; + private final HostDumpTransferDetails target; - public UpdateHostDumpTransferDetails getTarget() { + public HostDumpTransferDetails getTarget() { return target; } @@ -147,9 +174,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDumpTransferDetails("); - sb.append("super=").append(super.toString()); - sb.append("source=").append(String.valueOf(this.source)); + sb.append("CreateOracleNfsDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", source=").append(String.valueOf(this.source)); sb.append(", target=").append(String.valueOf(this.target)); sb.append(", sharedStorageMountTargetId=") .append(String.valueOf(this.sharedStorageMountTargetId)); @@ -162,12 +190,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDumpTransferDetails)) { + if (!(o instanceof CreateOracleNfsDataTransferMediumDetails)) { return false; } - UpdateDumpTransferDetails other = (UpdateDumpTransferDetails) o; - return java.util.Objects.equals(this.source, other.source) + CreateOracleNfsDataTransferMediumDetails other = + (CreateOracleNfsDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.source, other.source) && java.util.Objects.equals(this.target, other.target) && java.util.Objects.equals( this.sharedStorageMountTargetId, other.sharedStorageMountTargetId) @@ -177,7 +207,12 @@ public boolean equals(Object o) { @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); result = @@ -185,7 +220,6 @@ public int hashCode() { + (this.sharedStorageMountTargetId == null ? 43 : this.sharedStorageMountTargetId.hashCode()); - result = (result * PRIME) + super.hashCode(); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleObjectStorageDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleObjectStorageDataTransferMediumDetails.java new file mode 100644 index 00000000000..30881a75c05 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateOracleObjectStorageDataTransferMediumDetails.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.databasemigration.model; + +/** + * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CreateOracleObjectStorageDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CreateOracleObjectStorageDataTransferMediumDetails + extends CreateOracleDataTransferMediumDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private CreateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(CreateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private HostDumpTransferDetails source; + + public Builder source(HostDumpTransferDetails source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("target") + private HostDumpTransferDetails target; + + public Builder target(HostDumpTransferDetails target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CreateOracleObjectStorageDataTransferMediumDetails build() { + CreateOracleObjectStorageDataTransferMediumDetails model = + new CreateOracleObjectStorageDataTransferMediumDetails( + this.objectStorageBucket, this.source, this.target); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CreateOracleObjectStorageDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public CreateOracleObjectStorageDataTransferMediumDetails( + CreateObjectStoreBucket objectStorageBucket, + HostDumpTransferDetails source, + HostDumpTransferDetails target) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.source = source; + this.target = target; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final CreateObjectStoreBucket objectStorageBucket; + + public CreateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final HostDumpTransferDetails source; + + public HostDumpTransferDetails getSource() { + return source; + } + + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final HostDumpTransferDetails target; + + public HostDumpTransferDetails getTarget() { + return target; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CreateOracleObjectStorageDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CreateOracleObjectStorageDataTransferMediumDetails)) { + return false; + } + + CreateOracleObjectStorageDataTransferMediumDetails other = + (CreateOracleObjectStorageDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.target, other.target) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreatePrivateEndpoint.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreatePrivateEndpoint.java deleted file mode 100644 index 9d78af846df..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreatePrivateEndpoint.java +++ /dev/null @@ -1,232 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * OCI Private Endpoint configuration details. Not required for source container database - * connections, it will default to the specified Source Database Connection Private Endpoint.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreatePrivateEndpoint.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreatePrivateEndpoint - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "vcnId", "subnetId"}) - public CreatePrivateEndpoint(String compartmentId, String vcnId, String subnetId) { - super(); - this.compartmentId = compartmentId; - this.vcnId = vcnId; - this.subnetId = subnetId; - } - - @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 - * compartment to contain the private endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * VCN where the Private Endpoint will be bound to. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * VCN where the Private Endpoint will be bound to. - * - * @param vcnId the value to set - * @return this builder - */ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - */ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - * - * @param subnetId the value to set - * @return this builder - */ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreatePrivateEndpoint build() { - CreatePrivateEndpoint model = - new CreatePrivateEndpoint(this.compartmentId, this.vcnId, this.subnetId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreatePrivateEndpoint model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN - * where the Private Endpoint will be bound to. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private final String vcnId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN - * where the Private Endpoint will be bound to. - * - * @return the value - */ - public String getVcnId() { - return vcnId; - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - */ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - * - * @return the value - */ - public String getSubnetId() { - return subnetId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreatePrivateEndpoint("); - sb.append("super=").append(super.toString()); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreatePrivateEndpoint)) { - return false; - } - - CreatePrivateEndpoint other = (CreatePrivateEndpoint) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.vcnId, other.vcnId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.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) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateReplicat.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateReplicat.java index 0e6275a16bb..e2e9ab29fac 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateReplicat.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateReplicat.java @@ -15,29 +15,17 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CreateReplicat.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CreateReplicat extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({ - "performanceProfile", - "mapParallelism", - "minApplyParallelism", - "maxApplyParallelism" - }) - public CreateReplicat( - ReplicatPerformanceProfile performanceProfile, - Integer mapParallelism, - Integer minApplyParallelism, - Integer maxApplyParallelism) { + @java.beans.ConstructorProperties({"performanceProfile"}) + public CreateReplicat(ReplicatPerformanceProfile performanceProfile) { super(); this.performanceProfile = performanceProfile; - this.mapParallelism = mapParallelism; - this.minApplyParallelism = minApplyParallelism; - this.maxApplyParallelism = maxApplyParallelism; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -57,70 +45,12 @@ public Builder performanceProfile(ReplicatPerformanceProfile performanceProfile) this.__explicitlySet__.add("performanceProfile"); return this; } - /** Number of threads used to read trail files (valid for Parallel Replicat) */ - @com.fasterxml.jackson.annotation.JsonProperty("mapParallelism") - private Integer mapParallelism; - - /** - * Number of threads used to read trail files (valid for Parallel Replicat) - * - * @param mapParallelism the value to set - * @return this builder - */ - public Builder mapParallelism(Integer mapParallelism) { - this.mapParallelism = mapParallelism; - this.__explicitlySet__.add("mapParallelism"); - return this; - } - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism - * (valid for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("minApplyParallelism") - private Integer minApplyParallelism; - - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism - * (valid for Parallel Replicat) - * - * @param minApplyParallelism the value to set - * @return this builder - */ - public Builder minApplyParallelism(Integer minApplyParallelism) { - this.minApplyParallelism = minApplyParallelism; - this.__explicitlySet__.add("minApplyParallelism"); - return this; - } - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism - * (valid for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("maxApplyParallelism") - private Integer maxApplyParallelism; - - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism - * (valid for Parallel Replicat) - * - * @param maxApplyParallelism the value to set - * @return this builder - */ - public Builder maxApplyParallelism(Integer maxApplyParallelism) { - this.maxApplyParallelism = maxApplyParallelism; - this.__explicitlySet__.add("maxApplyParallelism"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CreateReplicat build() { - CreateReplicat model = - new CreateReplicat( - this.performanceProfile, - this.mapParallelism, - this.minApplyParallelism, - this.maxApplyParallelism); + CreateReplicat model = new CreateReplicat(this.performanceProfile); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -132,15 +62,6 @@ public Builder copy(CreateReplicat model) { if (model.wasPropertyExplicitlySet("performanceProfile")) { this.performanceProfile(model.getPerformanceProfile()); } - if (model.wasPropertyExplicitlySet("mapParallelism")) { - this.mapParallelism(model.getMapParallelism()); - } - if (model.wasPropertyExplicitlySet("minApplyParallelism")) { - this.minApplyParallelism(model.getMinApplyParallelism()); - } - if (model.wasPropertyExplicitlySet("maxApplyParallelism")) { - this.maxApplyParallelism(model.getMaxApplyParallelism()); - } return this; } } @@ -167,53 +88,6 @@ public ReplicatPerformanceProfile getPerformanceProfile() { return performanceProfile; } - /** Number of threads used to read trail files (valid for Parallel Replicat) */ - @com.fasterxml.jackson.annotation.JsonProperty("mapParallelism") - private final Integer mapParallelism; - - /** - * Number of threads used to read trail files (valid for Parallel Replicat) - * - * @return the value - */ - public Integer getMapParallelism() { - return mapParallelism; - } - - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("minApplyParallelism") - private final Integer minApplyParallelism; - - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - * - * @return the value - */ - public Integer getMinApplyParallelism() { - return minApplyParallelism; - } - - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("maxApplyParallelism") - private final Integer maxApplyParallelism; - - /** - * Defines the range in which the Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - * - * @return the value - */ - public Integer getMaxApplyParallelism() { - return maxApplyParallelism; - } - @Override public String toString() { return this.toString(true); @@ -230,9 +104,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("CreateReplicat("); sb.append("super=").append(super.toString()); sb.append("performanceProfile=").append(String.valueOf(this.performanceProfile)); - sb.append(", mapParallelism=").append(String.valueOf(this.mapParallelism)); - sb.append(", minApplyParallelism=").append(String.valueOf(this.minApplyParallelism)); - sb.append(", maxApplyParallelism=").append(String.valueOf(this.maxApplyParallelism)); sb.append(")"); return sb.toString(); } @@ -248,9 +119,6 @@ public boolean equals(Object o) { CreateReplicat other = (CreateReplicat) o; return java.util.Objects.equals(this.performanceProfile, other.performanceProfile) - && java.util.Objects.equals(this.mapParallelism, other.mapParallelism) - && java.util.Objects.equals(this.minApplyParallelism, other.minApplyParallelism) - && java.util.Objects.equals(this.maxApplyParallelism, other.maxApplyParallelism) && super.equals(other); } @@ -263,19 +131,6 @@ public int hashCode() { + (this.performanceProfile == null ? 43 : this.performanceProfile.hashCode()); - result = - (result * PRIME) - + (this.mapParallelism == null ? 43 : this.mapParallelism.hashCode()); - result = - (result * PRIME) - + (this.minApplyParallelism == null - ? 43 - : this.minApplyParallelism.hashCode()); - result = - (result * PRIME) - + (this.maxApplyParallelism == null - ? 43 - : this.maxApplyParallelism.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateSshDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateSshDetails.java deleted file mode 100644 index 91c2cf1d615..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateSshDetails.java +++ /dev/null @@ -1,240 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details of the SSH key that will be used. Required for source database Manual and UserManagerOci - * connection types. Not required for source container database connections.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = CreateSshDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateSshDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"host", "sshkey", "user", "sudoLocation"}) - public CreateSshDetails(String host, String sshkey, String user, String sudoLocation) { - super(); - this.host = host; - this.sshkey = sshkey; - this.user = user; - this.sudoLocation = sudoLocation; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Name of the host the SSH key is valid for. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private String host; - - /** - * Name of the host the SSH key is valid for. - * - * @param host the value to set - * @return this builder - */ - public Builder host(String host) { - this.host = host; - this.__explicitlySet__.add("host"); - return this; - } - /** Private SSH key string. */ - @com.fasterxml.jackson.annotation.JsonProperty("sshkey") - private String sshkey; - - /** - * Private SSH key string. - * - * @param sshkey the value to set - * @return this builder - */ - public Builder sshkey(String sshkey) { - this.sshkey = sshkey; - this.__explicitlySet__.add("sshkey"); - return this; - } - /** SSH user */ - @com.fasterxml.jackson.annotation.JsonProperty("user") - private String user; - - /** - * SSH user - * - * @param user the value to set - * @return this builder - */ - public Builder user(String user) { - this.user = user; - this.__explicitlySet__.add("user"); - return this; - } - /** Sudo location */ - @com.fasterxml.jackson.annotation.JsonProperty("sudoLocation") - private String sudoLocation; - - /** - * Sudo location - * - * @param sudoLocation the value to set - * @return this builder - */ - public Builder sudoLocation(String sudoLocation) { - this.sudoLocation = sudoLocation; - this.__explicitlySet__.add("sudoLocation"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateSshDetails build() { - CreateSshDetails model = - new CreateSshDetails(this.host, this.sshkey, this.user, this.sudoLocation); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateSshDetails model) { - if (model.wasPropertyExplicitlySet("host")) { - this.host(model.getHost()); - } - if (model.wasPropertyExplicitlySet("sshkey")) { - this.sshkey(model.getSshkey()); - } - if (model.wasPropertyExplicitlySet("user")) { - this.user(model.getUser()); - } - if (model.wasPropertyExplicitlySet("sudoLocation")) { - this.sudoLocation(model.getSudoLocation()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Name of the host the SSH key is valid for. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private final String host; - - /** - * Name of the host the SSH key is valid for. - * - * @return the value - */ - public String getHost() { - return host; - } - - /** Private SSH key string. */ - @com.fasterxml.jackson.annotation.JsonProperty("sshkey") - private final String sshkey; - - /** - * Private SSH key string. - * - * @return the value - */ - public String getSshkey() { - return sshkey; - } - - /** SSH user */ - @com.fasterxml.jackson.annotation.JsonProperty("user") - private final String user; - - /** - * SSH user - * - * @return the value - */ - public String getUser() { - return user; - } - - /** Sudo location */ - @com.fasterxml.jackson.annotation.JsonProperty("sudoLocation") - private final String sudoLocation; - - /** - * Sudo location - * - * @return the value - */ - public String getSudoLocation() { - return sudoLocation; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateSshDetails("); - sb.append("super=").append(super.toString()); - sb.append("host=").append(String.valueOf(this.host)); - sb.append(", sshkey=").append(String.valueOf(this.sshkey)); - sb.append(", user=").append(String.valueOf(this.user)); - sb.append(", sudoLocation=").append(String.valueOf(this.sudoLocation)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateSshDetails)) { - return false; - } - - CreateSshDetails other = (CreateSshDetails) o; - return java.util.Objects.equals(this.host, other.host) - && java.util.Objects.equals(this.sshkey, other.sshkey) - && java.util.Objects.equals(this.user, other.user) - && java.util.Objects.equals(this.sudoLocation, other.sudoLocation) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); - result = (result * PRIME) + (this.sshkey == null ? 43 : this.sshkey.hashCode()); - result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); - result = (result * PRIME) + (this.sudoLocation == null ? 43 : this.sudoLocation.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateTargetTypeTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateTargetTypeTablespaceDetails.java index fd9f1afb45e..ebaac0ab575 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateTargetTypeTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateTargetTypeTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateVaultDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateVaultDetails.java deleted file mode 100644 index 100328ad550..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateVaultDetails.java +++ /dev/null @@ -1,207 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * OCI Vault details to store migration and connection credentials secrets
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateVaultDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateVaultDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "vaultId", "keyId"}) - public CreateVaultDetails(String compartmentId, String vaultId, String keyId) { - super(); - this.compartmentId = compartmentId; - this.vaultId = vaultId; - this.keyId = keyId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** OCID of the compartment where the secret containing the credentials will be created. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment where the secret containing the credentials will 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; - } - /** OCID of the vault */ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * OCID of the vault - * - * @param vaultId the value to set - * @return this builder - */ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** OCID of the vault encryption key */ - @com.fasterxml.jackson.annotation.JsonProperty("keyId") - private String keyId; - - /** - * OCID of the vault encryption key - * - * @param keyId the value to set - * @return this builder - */ - public Builder keyId(String keyId) { - this.keyId = keyId; - this.__explicitlySet__.add("keyId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public CreateVaultDetails build() { - CreateVaultDetails model = - new CreateVaultDetails(this.compartmentId, this.vaultId, this.keyId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateVaultDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("keyId")) { - this.keyId(model.getKeyId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** OCID of the compartment where the secret containing the credentials will be created. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * OCID of the compartment where the secret containing the credentials will be created. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** OCID of the vault */ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * OCID of the vault - * - * @return the value - */ - public String getVaultId() { - return vaultId; - } - - /** OCID of the vault encryption key */ - @com.fasterxml.jackson.annotation.JsonProperty("keyId") - private final String keyId; - - /** - * OCID of the vault encryption key - * - * @return the value - */ - public String getKeyId() { - return keyId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateVaultDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", keyId=").append(String.valueOf(this.keyId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof CreateVaultDetails)) { - return false; - } - - CreateVaultDetails other = (CreateVaultDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.keyId, other.keyId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CurlTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CurlTransferDetails.java index 117ae37a252..e76327ff11f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CurlTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CurlTransferDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CurlTransferDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpEstimate.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpEstimate.java index db1aca868dc..a935ec4b98e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpEstimate.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpEstimate.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Estimate size of dumps that will be generated. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpEstimate implements com.oracle.bmc.http.internal.BmcEnum { Blocks("BLOCKS"), Statistics("STATISTICS"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpExcludeParameters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpExcludeParameters.java index 1836ad865f4..2b54ab25de4 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpExcludeParameters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpExcludeParameters.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Supported Import/Export exclude parameters */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpExcludeParameters implements com.oracle.bmc.http.internal.BmcEnum { Index("INDEX"), MaterializedView("MATERIALIZED_VIEW"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpParameters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpParameters.java index af6e3904326..657bbd1df27 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpParameters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpParameters.java @@ -5,10 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional parameters for Data Pump Export and Import. Refer to [Configuring Optional Initial Load - * Advanced - * Settings](https://docs.us.oracle.com/en/cloud/paas/database-migration/dmsus/working-migration-resources.html#GUID-24BD3054-FDF8-48FF-8492-636C1D4B71ED) - *
+ * Optional parameters for Data Pump Export and Import.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -18,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DataPumpParameters.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -52,12 +49,12 @@ public DataPumpParameters( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Set to false to force Data Pump worker processes to run on one instance. */ + /** Set to false to force Data Pump worker process to run on one instance. */ @com.fasterxml.jackson.annotation.JsonProperty("isCluster") private Boolean isCluster; /** - * Set to false to force Data Pump worker processes to run on one instance. + * Set to false to force Data Pump worker process to run on one instance. * * @param isCluster the value to set * @return this builder @@ -205,12 +202,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Set to false to force Data Pump worker processes to run on one instance. */ + /** Set to false to force Data Pump worker process to run on one instance. */ @com.fasterxml.jackson.annotation.JsonProperty("isCluster") private final Boolean isCluster; /** - * Set to false to force Data Pump worker processes to run on one instance. + * Set to false to force Data Pump worker process to run on one instance. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTableExistsAction.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTableExistsAction.java index 31479b76b13..455b6f70c45 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTableExistsAction.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTableExistsAction.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** IMPORT: Specifies the action to be performed when data is loaded into a preexisting table. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpTableExistsAction implements com.oracle.bmc.http.internal.BmcEnum { Truncate("TRUNCATE"), Replace("REPLACE"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTablespaceBlockSizesInKb.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTablespaceBlockSizesInKb.java index 37f081c3bdb..e0970371213 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTablespaceBlockSizesInKb.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpTablespaceBlockSizesInKb.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Size of Oracle database blocks in KB. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum DataPumpTablespaceBlockSizesInKb implements com.oracle.bmc.http.internal.BmcEnum { Size8K("SIZE_8K"), Size16K("SIZE_16K"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetails.java deleted file mode 100644 index 517fd31def2..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetails.java +++ /dev/null @@ -1,185 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Data Transfer Medium details for the Migration.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DataTransferMediumDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DataTransferMediumDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "databaseLinkDetails", - "objectStorageDetails", - "awsS3Details" - }) - public DataTransferMediumDetails( - DatabaseLinkDetails databaseLinkDetails, - ObjectStoreBucket objectStorageDetails, - AwsS3Details awsS3Details) { - super(); - this.databaseLinkDetails = databaseLinkDetails; - this.objectStorageDetails = objectStorageDetails; - this.awsS3Details = awsS3Details; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("databaseLinkDetails") - private DatabaseLinkDetails databaseLinkDetails; - - public Builder databaseLinkDetails(DatabaseLinkDetails databaseLinkDetails) { - this.databaseLinkDetails = databaseLinkDetails; - this.__explicitlySet__.add("databaseLinkDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("objectStorageDetails") - private ObjectStoreBucket objectStorageDetails; - - public Builder objectStorageDetails(ObjectStoreBucket objectStorageDetails) { - this.objectStorageDetails = objectStorageDetails; - this.__explicitlySet__.add("objectStorageDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("awsS3Details") - private AwsS3Details awsS3Details; - - public Builder awsS3Details(AwsS3Details awsS3Details) { - this.awsS3Details = awsS3Details; - this.__explicitlySet__.add("awsS3Details"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DataTransferMediumDetails build() { - DataTransferMediumDetails model = - new DataTransferMediumDetails( - this.databaseLinkDetails, this.objectStorageDetails, this.awsS3Details); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DataTransferMediumDetails model) { - if (model.wasPropertyExplicitlySet("databaseLinkDetails")) { - this.databaseLinkDetails(model.getDatabaseLinkDetails()); - } - if (model.wasPropertyExplicitlySet("objectStorageDetails")) { - this.objectStorageDetails(model.getObjectStorageDetails()); - } - if (model.wasPropertyExplicitlySet("awsS3Details")) { - this.awsS3Details(model.getAwsS3Details()); - } - 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("databaseLinkDetails") - private final DatabaseLinkDetails databaseLinkDetails; - - public DatabaseLinkDetails getDatabaseLinkDetails() { - return databaseLinkDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("objectStorageDetails") - private final ObjectStoreBucket objectStorageDetails; - - public ObjectStoreBucket getObjectStorageDetails() { - return objectStorageDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("awsS3Details") - private final AwsS3Details awsS3Details; - - public AwsS3Details getAwsS3Details() { - return awsS3Details; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DataTransferMediumDetails("); - sb.append("super=").append(super.toString()); - sb.append("databaseLinkDetails=").append(String.valueOf(this.databaseLinkDetails)); - sb.append(", objectStorageDetails=").append(String.valueOf(this.objectStorageDetails)); - sb.append(", awsS3Details=").append(String.valueOf(this.awsS3Details)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DataTransferMediumDetails)) { - return false; - } - - DataTransferMediumDetails other = (DataTransferMediumDetails) o; - return java.util.Objects.equals(this.databaseLinkDetails, other.databaseLinkDetails) - && java.util.Objects.equals(this.objectStorageDetails, other.objectStorageDetails) - && java.util.Objects.equals(this.awsS3Details, other.awsS3Details) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.databaseLinkDetails == null - ? 43 - : this.databaseLinkDetails.hashCode()); - result = - (result * PRIME) - + (this.objectStorageDetails == null - ? 43 - : this.objectStorageDetails.hashCode()); - result = (result * PRIME) + (this.awsS3Details == null ? 43 : this.awsS3Details.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseConnectionTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCombination.java similarity index 67% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseConnectionTypes.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCombination.java index 0f3a06217e7..f0641bff4b5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseConnectionTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCombination.java @@ -4,12 +4,11 @@ */ package com.oracle.bmc.databasemigration.model; -/** Supported database connection types */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public enum DatabaseConnectionTypes implements com.oracle.bmc.http.internal.BmcEnum { - Manual("MANUAL"), - Autonomous("AUTONOMOUS"), - UserManagedOci("USER_MANAGED_OCI"), +/** The database combination. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum DatabaseCombination implements com.oracle.bmc.http.internal.BmcEnum { + Mysql("MYSQL"), + Oracle("ORACLE"), /** * This value is used if a service returns a value for this enum that is not recognized by this @@ -18,21 +17,21 @@ public enum DatabaseConnectionTypes implements com.oracle.bmc.http.internal.BmcE UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DatabaseConnectionTypes.class); + org.slf4j.LoggerFactory.getLogger(DatabaseCombination.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DatabaseConnectionTypes v : DatabaseConnectionTypes.values()) { + for (DatabaseCombination v : DatabaseCombination.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DatabaseConnectionTypes(String value) { + DatabaseCombination(String value) { this.value = value; } @@ -42,12 +41,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DatabaseConnectionTypes create(String key) { + public static DatabaseCombination create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DatabaseConnectionTypes', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'DatabaseCombination', returning UnknownEnumValue", key); return UnknownEnumValue; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCredentials.java deleted file mode 100644 index b60602a9f2a..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseCredentials.java +++ /dev/null @@ -1,169 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Database Credentials details.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DatabaseCredentials.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DatabaseCredentials - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"username", "password"}) - public DatabaseCredentials(String username, String password) { - super(); - this.username = username; - this.password = password; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Database username */ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private String username; - - /** - * Database username - * - * @param username the value to set - * @return this builder - */ - public Builder username(String username) { - this.username = username; - this.__explicitlySet__.add("username"); - return this; - } - /** Database password */ - @com.fasterxml.jackson.annotation.JsonProperty("password") - private String password; - - /** - * Database password - * - * @param password the value to set - * @return this builder - */ - public Builder password(String password) { - this.password = password; - this.__explicitlySet__.add("password"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public DatabaseCredentials build() { - DatabaseCredentials model = new DatabaseCredentials(this.username, this.password); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DatabaseCredentials model) { - if (model.wasPropertyExplicitlySet("username")) { - this.username(model.getUsername()); - } - if (model.wasPropertyExplicitlySet("password")) { - this.password(model.getPassword()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Database username */ - @com.fasterxml.jackson.annotation.JsonProperty("username") - private final String username; - - /** - * Database username - * - * @return the value - */ - public String getUsername() { - return username; - } - - /** Database password */ - @com.fasterxml.jackson.annotation.JsonProperty("password") - private final String password; - - /** - * Database password - * - * @return the value - */ - public String getPassword() { - return password; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DatabaseCredentials("); - sb.append("super=").append(super.toString()); - sb.append("username=").append(String.valueOf(this.username)); - sb.append(", password=").append(""); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DatabaseCredentials)) { - return false; - } - - DatabaseCredentials other = (DatabaseCredentials) o; - return java.util.Objects.equals(this.username, other.username) - && java.util.Objects.equals(this.password, other.password) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); - result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DiagnosticsResult.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DiagnosticsResult.java index f47be84dc6c..d3574cb198c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DiagnosticsResult.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DiagnosticsResult.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = DiagnosticsResult.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DirectoryObject.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DirectoryObject.java index c0c72a3dea8..d5b44b7713a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DirectoryObject.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DirectoryObject.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DirectoryObject.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummary.java index fe4d7e8ad5b..dbc970c1ea7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ExcludedObjectSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummaryCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummaryCollection.java index d80b6e6b1d9..ae6761297e0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummaryCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExcludedObjectSummaryCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ExcludedObjectSummaryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Extract.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Extract.java index 5059de0684c..86c196ee7af 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Extract.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Extract.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Extract.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExtractPerformanceProfile.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExtractPerformanceProfile.java index e709438f3d7..0398ae382d7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExtractPerformanceProfile.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ExtractPerformanceProfile.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** GoldenGate Extract performance profile */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ExtractPerformanceProfile implements com.oracle.bmc.http.internal.BmcEnum { Low("LOW"), Medium("MEDIUM"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GgsDeployment.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GgsDeployment.java index afea70824a2..2cfa2f258ba 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GgsDeployment.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GgsDeployment.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GgsDeployment.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -30,12 +30,12 @@ public GgsDeployment(String deploymentId, String ggsAdminCredentialsSecretId) { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** OCID of a GoldenGate Deployment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("deploymentId") private String deploymentId; /** - * OCID of a GoldenGate Deployment + * The OCID of the resource being referenced. * * @param deploymentId the value to set * @return this builder @@ -45,12 +45,12 @@ public Builder deploymentId(String deploymentId) { this.__explicitlySet__.add("deploymentId"); return this; } - /** OCID of a VaultSecret containing the Admin Credentials for the GGS Deployment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("ggsAdminCredentialsSecretId") private String ggsAdminCredentialsSecretId; /** - * OCID of a VaultSecret containing the Admin Credentials for the GGS Deployment + * The OCID of the resource being referenced. * * @param ggsAdminCredentialsSecretId the value to set * @return this builder @@ -94,12 +94,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** OCID of a GoldenGate Deployment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("deploymentId") private final String deploymentId; /** - * OCID of a GoldenGate Deployment + * The OCID of the resource being referenced. * * @return the value */ @@ -107,12 +107,12 @@ public String getDeploymentId() { return deploymentId; } - /** OCID of a VaultSecret containing the Admin Credentials for the GGS Deployment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("ggsAdminCredentialsSecretId") private final String ggsAdminCredentialsSecretId; /** - * OCID of a VaultSecret containing the Admin Credentials for the GGS Deployment + * The OCID of the resource being referenced. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateDetails.java deleted file mode 100644 index 421a93cf556..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateDetails.java +++ /dev/null @@ -1,145 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate Microservices.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = GoldenGateDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class GoldenGateDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"hub", "settings"}) - public GoldenGateDetails(GoldenGateHub hub, GoldenGateSettings settings) { - super(); - this.hub = hub; - this.settings = settings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("hub") - private GoldenGateHub hub; - - public Builder hub(GoldenGateHub hub) { - this.hub = hub; - this.__explicitlySet__.add("hub"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private GoldenGateSettings settings; - - public Builder settings(GoldenGateSettings settings) { - this.settings = settings; - this.__explicitlySet__.add("settings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public GoldenGateDetails build() { - GoldenGateDetails model = new GoldenGateDetails(this.hub, this.settings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(GoldenGateDetails model) { - if (model.wasPropertyExplicitlySet("hub")) { - this.hub(model.getHub()); - } - if (model.wasPropertyExplicitlySet("settings")) { - this.settings(model.getSettings()); - } - 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("hub") - private final GoldenGateHub hub; - - public GoldenGateHub getHub() { - return hub; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final GoldenGateSettings settings; - - public GoldenGateSettings getSettings() { - return settings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("GoldenGateDetails("); - sb.append("super=").append(super.toString()); - sb.append("hub=").append(String.valueOf(this.hub)); - sb.append(", settings=").append(String.valueOf(this.settings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GoldenGateDetails)) { - return false; - } - - GoldenGateDetails other = (GoldenGateDetails) o; - return java.util.Objects.equals(this.hub, other.hub) - && java.util.Objects.equals(this.settings, other.settings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.hub == null ? 43 : this.hub.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHub.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHub.java deleted file mode 100644 index 31b1ef5f04b..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHub.java +++ /dev/null @@ -1,404 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate Microservices.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = GoldenGateHub.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class GoldenGateHub extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "restAdminCredentials", - "sourceDbAdminCredentials", - "sourceContainerDbAdminCredentials", - "targetDbAdminCredentials", - "url", - "sourceMicroservicesDeploymentName", - "targetMicroservicesDeploymentName", - "computeId" - }) - public GoldenGateHub( - AdminCredentials restAdminCredentials, - AdminCredentials sourceDbAdminCredentials, - AdminCredentials sourceContainerDbAdminCredentials, - AdminCredentials targetDbAdminCredentials, - String url, - String sourceMicroservicesDeploymentName, - String targetMicroservicesDeploymentName, - String computeId) { - super(); - this.restAdminCredentials = restAdminCredentials; - this.sourceDbAdminCredentials = sourceDbAdminCredentials; - this.sourceContainerDbAdminCredentials = sourceContainerDbAdminCredentials; - this.targetDbAdminCredentials = targetDbAdminCredentials; - this.url = url; - this.sourceMicroservicesDeploymentName = sourceMicroservicesDeploymentName; - this.targetMicroservicesDeploymentName = targetMicroservicesDeploymentName; - this.computeId = computeId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("restAdminCredentials") - private AdminCredentials restAdminCredentials; - - public Builder restAdminCredentials(AdminCredentials restAdminCredentials) { - this.restAdminCredentials = restAdminCredentials; - this.__explicitlySet__.add("restAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbAdminCredentials") - private AdminCredentials sourceDbAdminCredentials; - - public Builder sourceDbAdminCredentials(AdminCredentials sourceDbAdminCredentials) { - this.sourceDbAdminCredentials = sourceDbAdminCredentials; - this.__explicitlySet__.add("sourceDbAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbAdminCredentials") - private AdminCredentials sourceContainerDbAdminCredentials; - - public Builder sourceContainerDbAdminCredentials( - AdminCredentials sourceContainerDbAdminCredentials) { - this.sourceContainerDbAdminCredentials = sourceContainerDbAdminCredentials; - this.__explicitlySet__.add("sourceContainerDbAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbAdminCredentials") - private AdminCredentials targetDbAdminCredentials; - - public Builder targetDbAdminCredentials(AdminCredentials targetDbAdminCredentials) { - this.targetDbAdminCredentials = targetDbAdminCredentials; - this.__explicitlySet__.add("targetDbAdminCredentials"); - return this; - } - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - */ - @com.fasterxml.jackson.annotation.JsonProperty("url") - private String url; - - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - * - * @param url the value to set - * @return this builder - */ - public Builder url(String url) { - this.url = url; - this.__explicitlySet__.add("url"); - return this; - } - /** Name of GoldenGate deployment to operate on source database */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceMicroservicesDeploymentName") - private String sourceMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on source database - * - * @param sourceMicroservicesDeploymentName the value to set - * @return this builder - */ - public Builder sourceMicroservicesDeploymentName(String sourceMicroservicesDeploymentName) { - this.sourceMicroservicesDeploymentName = sourceMicroservicesDeploymentName; - this.__explicitlySet__.add("sourceMicroservicesDeploymentName"); - return this; - } - /** Name of GoldenGate deployment to operate on target database */ - @com.fasterxml.jackson.annotation.JsonProperty("targetMicroservicesDeploymentName") - private String targetMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on target database - * - * @param targetMicroservicesDeploymentName the value to set - * @return this builder - */ - public Builder targetMicroservicesDeploymentName(String targetMicroservicesDeploymentName) { - this.targetMicroservicesDeploymentName = targetMicroservicesDeploymentName; - this.__explicitlySet__.add("targetMicroservicesDeploymentName"); - return this; - } - /** OCID of GoldenGate compute instance. */ - @com.fasterxml.jackson.annotation.JsonProperty("computeId") - private String computeId; - - /** - * OCID of GoldenGate compute instance. - * - * @param computeId the value to set - * @return this builder - */ - public Builder computeId(String computeId) { - this.computeId = computeId; - this.__explicitlySet__.add("computeId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public GoldenGateHub build() { - GoldenGateHub model = - new GoldenGateHub( - this.restAdminCredentials, - this.sourceDbAdminCredentials, - this.sourceContainerDbAdminCredentials, - this.targetDbAdminCredentials, - this.url, - this.sourceMicroservicesDeploymentName, - this.targetMicroservicesDeploymentName, - this.computeId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(GoldenGateHub model) { - if (model.wasPropertyExplicitlySet("restAdminCredentials")) { - this.restAdminCredentials(model.getRestAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceDbAdminCredentials")) { - this.sourceDbAdminCredentials(model.getSourceDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDbAdminCredentials")) { - this.sourceContainerDbAdminCredentials( - model.getSourceContainerDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("targetDbAdminCredentials")) { - this.targetDbAdminCredentials(model.getTargetDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("url")) { - this.url(model.getUrl()); - } - if (model.wasPropertyExplicitlySet("sourceMicroservicesDeploymentName")) { - this.sourceMicroservicesDeploymentName( - model.getSourceMicroservicesDeploymentName()); - } - if (model.wasPropertyExplicitlySet("targetMicroservicesDeploymentName")) { - this.targetMicroservicesDeploymentName( - model.getTargetMicroservicesDeploymentName()); - } - if (model.wasPropertyExplicitlySet("computeId")) { - this.computeId(model.getComputeId()); - } - 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("restAdminCredentials") - private final AdminCredentials restAdminCredentials; - - public AdminCredentials getRestAdminCredentials() { - return restAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbAdminCredentials") - private final AdminCredentials sourceDbAdminCredentials; - - public AdminCredentials getSourceDbAdminCredentials() { - return sourceDbAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbAdminCredentials") - private final AdminCredentials sourceContainerDbAdminCredentials; - - public AdminCredentials getSourceContainerDbAdminCredentials() { - return sourceContainerDbAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbAdminCredentials") - private final AdminCredentials targetDbAdminCredentials; - - public AdminCredentials getTargetDbAdminCredentials() { - return targetDbAdminCredentials; - } - - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - */ - @com.fasterxml.jackson.annotation.JsonProperty("url") - private final String url; - - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - * - * @return the value - */ - public String getUrl() { - return url; - } - - /** Name of GoldenGate deployment to operate on source database */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceMicroservicesDeploymentName") - private final String sourceMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on source database - * - * @return the value - */ - public String getSourceMicroservicesDeploymentName() { - return sourceMicroservicesDeploymentName; - } - - /** Name of GoldenGate deployment to operate on target database */ - @com.fasterxml.jackson.annotation.JsonProperty("targetMicroservicesDeploymentName") - private final String targetMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on target database - * - * @return the value - */ - public String getTargetMicroservicesDeploymentName() { - return targetMicroservicesDeploymentName; - } - - /** OCID of GoldenGate compute instance. */ - @com.fasterxml.jackson.annotation.JsonProperty("computeId") - private final String computeId; - - /** - * OCID of GoldenGate compute instance. - * - * @return the value - */ - public String getComputeId() { - return computeId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("GoldenGateHub("); - sb.append("super=").append(super.toString()); - sb.append("restAdminCredentials=").append(String.valueOf(this.restAdminCredentials)); - sb.append(", sourceDbAdminCredentials=") - .append(String.valueOf(this.sourceDbAdminCredentials)); - sb.append(", sourceContainerDbAdminCredentials=") - .append(String.valueOf(this.sourceContainerDbAdminCredentials)); - sb.append(", targetDbAdminCredentials=") - .append(String.valueOf(this.targetDbAdminCredentials)); - sb.append(", url=").append(String.valueOf(this.url)); - sb.append(", sourceMicroservicesDeploymentName=") - .append(String.valueOf(this.sourceMicroservicesDeploymentName)); - sb.append(", targetMicroservicesDeploymentName=") - .append(String.valueOf(this.targetMicroservicesDeploymentName)); - sb.append(", computeId=").append(String.valueOf(this.computeId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GoldenGateHub)) { - return false; - } - - GoldenGateHub other = (GoldenGateHub) o; - return java.util.Objects.equals(this.restAdminCredentials, other.restAdminCredentials) - && java.util.Objects.equals( - this.sourceDbAdminCredentials, other.sourceDbAdminCredentials) - && java.util.Objects.equals( - this.sourceContainerDbAdminCredentials, - other.sourceContainerDbAdminCredentials) - && java.util.Objects.equals( - this.targetDbAdminCredentials, other.targetDbAdminCredentials) - && java.util.Objects.equals(this.url, other.url) - && java.util.Objects.equals( - this.sourceMicroservicesDeploymentName, - other.sourceMicroservicesDeploymentName) - && java.util.Objects.equals( - this.targetMicroservicesDeploymentName, - other.targetMicroservicesDeploymentName) - && java.util.Objects.equals(this.computeId, other.computeId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.restAdminCredentials == null - ? 43 - : this.restAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceDbAdminCredentials == null - ? 43 - : this.sourceDbAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDbAdminCredentials == null - ? 43 - : this.sourceContainerDbAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.targetDbAdminCredentials == null - ? 43 - : this.targetDbAdminCredentials.hashCode()); - result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); - result = - (result * PRIME) - + (this.sourceMicroservicesDeploymentName == null - ? 43 - : this.sourceMicroservicesDeploymentName.hashCode()); - result = - (result * PRIME) - + (this.targetMicroservicesDeploymentName == null - ? 43 - : this.targetMicroservicesDeploymentName.hashCode()); - result = (result * PRIME) + (this.computeId == null ? 43 : this.computeId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHubDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHubDetails.java new file mode 100644 index 00000000000..e8902f203a4 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateHubDetails.java @@ -0,0 +1,383 @@ +/** + * 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.databasemigration.model; + +/** + * Details about Oracle GoldenGate Microservices.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = GoldenGateHubDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class GoldenGateHubDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "restAdminCredentials", + "url", + "computeId", + "vaultId", + "keyId", + "extract", + "replicat", + "acceptableLag" + }) + public GoldenGateHubDetails( + AdminCredentials restAdminCredentials, + String url, + String computeId, + String vaultId, + String keyId, + Extract extract, + Replicat replicat, + Integer acceptableLag) { + super(); + this.restAdminCredentials = restAdminCredentials; + this.url = url; + this.computeId = computeId; + this.vaultId = vaultId; + this.keyId = keyId; + this.extract = extract; + this.replicat = replicat; + this.acceptableLag = acceptableLag; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("restAdminCredentials") + private AdminCredentials restAdminCredentials; + + public Builder restAdminCredentials(AdminCredentials restAdminCredentials) { + this.restAdminCredentials = restAdminCredentials; + this.__explicitlySet__.add("restAdminCredentials"); + return this; + } + /** Endpoint URL. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Endpoint URL. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeId") + private String computeId; + + /** + * The OCID of the resource being referenced. + * + * @param computeId the value to set + * @return this builder + */ + public Builder computeId(String computeId) { + this.computeId = computeId; + this.__explicitlySet__.add("computeId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The OCID of the resource being referenced. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + /** + * The OCID of the resource being referenced. + * + * @param keyId the value to set + * @return this builder + */ + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private Extract extract; + + public Builder extract(Extract extract) { + this.extract = extract; + this.__explicitlySet__.add("extract"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private Replicat replicat; + + public Builder replicat(Replicat replicat) { + this.replicat = replicat; + this.__explicitlySet__.add("replicat"); + return this; + } + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @param acceptableLag the value to set + * @return this builder + */ + public Builder acceptableLag(Integer acceptableLag) { + this.acceptableLag = acceptableLag; + this.__explicitlySet__.add("acceptableLag"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public GoldenGateHubDetails build() { + GoldenGateHubDetails model = + new GoldenGateHubDetails( + this.restAdminCredentials, + this.url, + this.computeId, + this.vaultId, + this.keyId, + this.extract, + this.replicat, + this.acceptableLag); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(GoldenGateHubDetails model) { + if (model.wasPropertyExplicitlySet("restAdminCredentials")) { + this.restAdminCredentials(model.getRestAdminCredentials()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("computeId")) { + this.computeId(model.getComputeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("extract")) { + this.extract(model.getExtract()); + } + if (model.wasPropertyExplicitlySet("replicat")) { + this.replicat(model.getReplicat()); + } + if (model.wasPropertyExplicitlySet("acceptableLag")) { + this.acceptableLag(model.getAcceptableLag()); + } + 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("restAdminCredentials") + private final AdminCredentials restAdminCredentials; + + public AdminCredentials getRestAdminCredentials() { + return restAdminCredentials; + } + + /** Endpoint URL. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Endpoint URL. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeId") + private final String computeId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getComputeId() { + return computeId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getKeyId() { + return keyId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private final Extract extract; + + public Extract getExtract() { + return extract; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private final Replicat replicat; + + public Replicat getReplicat() { + return replicat; + } + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private final Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @return the value + */ + public Integer getAcceptableLag() { + return acceptableLag; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("GoldenGateHubDetails("); + sb.append("super=").append(super.toString()); + sb.append("restAdminCredentials=").append(String.valueOf(this.restAdminCredentials)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", computeId=").append(String.valueOf(this.computeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", extract=").append(String.valueOf(this.extract)); + sb.append(", replicat=").append(String.valueOf(this.replicat)); + sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof GoldenGateHubDetails)) { + return false; + } + + GoldenGateHubDetails other = (GoldenGateHubDetails) o; + return java.util.Objects.equals(this.restAdminCredentials, other.restAdminCredentials) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.computeId, other.computeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.extract, other.extract) + && java.util.Objects.equals(this.replicat, other.replicat) + && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.restAdminCredentials == null + ? 43 + : this.restAdminCredentials.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.computeId == null ? 43 : this.computeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.extract == null ? 43 : this.extract.hashCode()); + result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); + result = + (result * PRIME) + + (this.acceptableLag == null ? 43 : this.acceptableLag.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateServiceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateServiceDetails.java deleted file mode 100644 index 7ecb2ef347c..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateServiceDetails.java +++ /dev/null @@ -1,148 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate GGS Deployment.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = GoldenGateServiceDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class GoldenGateServiceDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"ggsDeployment", "settings"}) - public GoldenGateServiceDetails(GgsDeployment ggsDeployment, GoldenGateSettings settings) { - super(); - this.ggsDeployment = ggsDeployment; - this.settings = settings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("ggsDeployment") - private GgsDeployment ggsDeployment; - - public Builder ggsDeployment(GgsDeployment ggsDeployment) { - this.ggsDeployment = ggsDeployment; - this.__explicitlySet__.add("ggsDeployment"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private GoldenGateSettings settings; - - public Builder settings(GoldenGateSettings settings) { - this.settings = settings; - this.__explicitlySet__.add("settings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public GoldenGateServiceDetails build() { - GoldenGateServiceDetails model = - new GoldenGateServiceDetails(this.ggsDeployment, this.settings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(GoldenGateServiceDetails model) { - if (model.wasPropertyExplicitlySet("ggsDeployment")) { - this.ggsDeployment(model.getGgsDeployment()); - } - if (model.wasPropertyExplicitlySet("settings")) { - this.settings(model.getSettings()); - } - 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("ggsDeployment") - private final GgsDeployment ggsDeployment; - - public GgsDeployment getGgsDeployment() { - return ggsDeployment; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final GoldenGateSettings settings; - - public GoldenGateSettings getSettings() { - return settings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("GoldenGateServiceDetails("); - sb.append("super=").append(super.toString()); - sb.append("ggsDeployment=").append(String.valueOf(this.ggsDeployment)); - sb.append(", settings=").append(String.valueOf(this.settings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GoldenGateServiceDetails)) { - return false; - } - - GoldenGateServiceDetails other = (GoldenGateServiceDetails) o; - return java.util.Objects.equals(this.ggsDeployment, other.ggsDeployment) - && java.util.Objects.equals(this.settings, other.settings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.ggsDeployment == null ? 43 : this.ggsDeployment.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HandleGrantErrors.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HandleGrantErrors.java new file mode 100644 index 00000000000..9313c998357 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HandleGrantErrors.java @@ -0,0 +1,58 @@ +/** + * 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.databasemigration.model; + +/** + * The action taken in the event of errors related to GRANT or REVOKE errors. ABORT - (default) + * stops the load process and displays an error. DROP_ACCOUNT - deletes the account and continues + * the load process. IGNORE - ignores the error and continues the load process. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum HandleGrantErrors implements com.oracle.bmc.http.internal.BmcEnum { + Abort("ABORT"), + DropAccount("DROP_ACCOUNT"), + Ignore("IGNORE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(HandleGrantErrors.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (HandleGrantErrors v : HandleGrantErrors.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + HandleGrantErrors(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static HandleGrantErrors create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'HandleGrantErrors', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HostDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HostDumpTransferDetails.java index dbbaa559c0a..62ce8479e98 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HostDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/HostDumpTransferDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer in source or target host. Default kind is CURL + * Optional additional properties for dump transfer in source or target host. Default kind is CURL. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/IngressIpDetails.java similarity index 64% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentCollection.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/IngressIpDetails.java index 6b6f71f01b0..ade086da41e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AgentCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/IngressIpDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Results of an Agent search. Contains AgentSummary items.
+ * Private Endpoint IP Addresses created in the customer's 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 @@ -15,42 +15,42 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AgentCollection.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = IngressIpDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AgentCollection +public final class IngressIpDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"items"}) - public AgentCollection(java.util.List items) { + @java.beans.ConstructorProperties({"ingressIp"}) + public IngressIpDetails(String ingressIp) { super(); - this.items = items; + this.ingressIp = ingressIp; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Items in collection. */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; + /** A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("ingressIp") + private String ingressIp; /** - * Items in collection. + * A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. * - * @param items the value to set + * @param ingressIp the value to set * @return this builder */ - public Builder items(java.util.List items) { - this.items = items; - this.__explicitlySet__.add("items"); + public Builder ingressIp(String ingressIp) { + this.ingressIp = ingressIp; + this.__explicitlySet__.add("ingressIp"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AgentCollection build() { - AgentCollection model = new AgentCollection(this.items); + public IngressIpDetails build() { + IngressIpDetails model = new IngressIpDetails(this.ingressIp); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -58,9 +58,9 @@ public AgentCollection build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AgentCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); + public Builder copy(IngressIpDetails model) { + if (model.wasPropertyExplicitlySet("ingressIp")) { + this.ingressIp(model.getIngressIp()); } return this; } @@ -75,17 +75,17 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Items in collection. */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; + /** A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. */ + @com.fasterxml.jackson.annotation.JsonProperty("ingressIp") + private final String ingressIp; /** - * Items in collection. + * A Private Endpoint IPv4 or IPv6 Address created in the customer's subnet. * * @return the value */ - public java.util.List getItems() { - return items; + public String getIngressIp() { + return ingressIp; } @Override @@ -101,9 +101,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AgentCollection("); + sb.append("IngressIpDetails("); sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); + sb.append("ingressIp=").append(String.valueOf(this.ingressIp)); sb.append(")"); return sb.toString(); } @@ -113,19 +113,19 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AgentCollection)) { + if (!(o instanceof IngressIpDetails)) { return false; } - AgentCollection other = (AgentCollection) o; - return java.util.Objects.equals(this.items, other.items) && super.equals(other); + IngressIpDetails other = (IngressIpDetails) o; + return java.util.Objects.equals(this.ingressIp, other.ingressIp) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = (result * PRIME) + (this.ingressIp == null ? 43 : this.ingressIp.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Job.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Job.java index 8b1e1ee68f6..a311d138461 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Job.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Job.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Job.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -218,15 +218,17 @@ public Builder lifecycleDetails(String lifecycleDetails) { return this; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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. Example: + * {"Department": "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: + * {"Department": "Finance"} * * @param freeformTags the value to set * @return this builder @@ -484,15 +486,17 @@ public String getLifecycleDetails() { } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobCollection.java index 5a909304024..72328c06d78 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobLifecycleStates.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobLifecycleStates.java index 68ca7c559fb..992fe1593f8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobLifecycleStates.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobLifecycleStates.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible lifecycle states. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum JobLifecycleStates implements com.oracle.bmc.http.internal.BmcEnum { Accepted("ACCEPTED"), InProgress("IN_PROGRESS"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeMySql.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeMySql.java new file mode 100644 index 00000000000..2656d9622cb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeMySql.java @@ -0,0 +1,53 @@ +/** + * 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.databasemigration.model; + +/** job mode. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum JobModeMySql implements com.oracle.bmc.http.internal.BmcEnum { + Full("FULL"), + Schema("SCHEMA"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(JobModeMySql.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (JobModeMySql v : JobModeMySql.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + JobModeMySql(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static JobModeMySql create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'JobModeMySql', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpJobMode.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeOracle.java similarity index 72% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpJobMode.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeOracle.java index 32d48df5998..700b609c88d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpJobMode.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobModeOracle.java @@ -4,9 +4,9 @@ */ package com.oracle.bmc.databasemigration.model; -/** Data Pump job modes */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public enum DataPumpJobMode implements com.oracle.bmc.http.internal.BmcEnum { +/** job mode. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum JobModeOracle implements com.oracle.bmc.http.internal.BmcEnum { Full("FULL"), Schema("SCHEMA"), Table("TABLE"), @@ -20,21 +20,21 @@ public enum DataPumpJobMode implements com.oracle.bmc.http.internal.BmcEnum { UnknownEnumValue(null); private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(DataPumpJobMode.class); + org.slf4j.LoggerFactory.getLogger(JobModeOracle.class); private final String value; - private static java.util.Map map; + private static java.util.Map map; static { map = new java.util.HashMap<>(); - for (DataPumpJobMode v : DataPumpJobMode.values()) { + for (JobModeOracle v : JobModeOracle.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } - DataPumpJobMode(String value) { + JobModeOracle(String value) { this.value = value; } @@ -44,12 +44,12 @@ public String getValue() { } @com.fasterxml.jackson.annotation.JsonCreator - public static DataPumpJobMode create(String key) { + public static JobModeOracle create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( - "Received unknown value '{}' for enum 'DataPumpJobMode', returning UnknownEnumValue", + "Received unknown value '{}' for enum 'JobModeOracle', returning UnknownEnumValue", key); return UnknownEnumValue; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummary.java index 22d7d26dd9e..82097ff4a38 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobOutputSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummaryCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummaryCollection.java index 2857f8a2d9c..ea3b707b60d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummaryCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobOutputSummaryCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = JobOutputSummaryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobPhaseStatus.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobPhaseStatus.java index 01ead641398..831827962d7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobPhaseStatus.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobPhaseStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Job Phase status. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum JobPhaseStatus implements com.oracle.bmc.http.internal.BmcEnum { Pending("PENDING"), Started("STARTED"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobSummary.java index ff79f4dd9fd..670122a7932 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = JobSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -199,15 +199,17 @@ public Builder lifecycleDetails(String lifecycleDetails) { return this; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * 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. Example: + * {"Department": "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: + * {"Department": "Finance"} * * @param freeformTags the value to set * @return this builder @@ -448,15 +450,17 @@ public String getLifecycleDetails() { } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobTypes.java index e61230c5469..581c8728a30 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/JobTypes.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Job type. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum JobTypes implements com.oracle.bmc.http.internal.BmcEnum { Evaluation("EVALUATION"), Migration("MIGRATION"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LifecycleStates.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LifecycleStates.java index 13e95626f6e..75a394cf2d8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LifecycleStates.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LifecycleStates.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible lifecycle states. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum LifecycleStates implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Updating("UPDATING"), @@ -14,15 +14,7 @@ public enum LifecycleStates implements com.oracle.bmc.http.internal.BmcEnum { Deleting("DELETING"), Deleted("DELETED"), Failed("FAILED"), - - /** - * This value is used if a service returns a value for this enum that is not recognized by this - * version of the SDK. - */ - UnknownEnumValue(null); - - private static final org.slf4j.Logger LOG = - org.slf4j.LoggerFactory.getLogger(LifecycleStates.class); + ; private final String value; private static java.util.Map map; @@ -30,9 +22,7 @@ public enum LifecycleStates implements com.oracle.bmc.http.internal.BmcEnum { static { map = new java.util.HashMap<>(); for (LifecycleStates v : LifecycleStates.values()) { - if (v != UnknownEnumValue) { - map.put(v.getValue(), v); - } + map.put(v.getValue(), v); } } @@ -50,9 +40,6 @@ public static LifecycleStates create(String key) { if (map.containsKey(key)) { return map.get(key); } - LOG.warn( - "Received unknown value '{}' for enum 'LifecycleStates', returning UnknownEnumValue", - key); - return UnknownEnumValue; + throw new IllegalArgumentException("Invalid LifecycleStates: " + key); } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LogLocationBucketDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LogLocationBucketDetails.java index e6fbcdbe965..4167c146da5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LogLocationBucketDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/LogLocationBucketDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = LogLocationBucketDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MetadataRemap.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MetadataRemap.java index 160a1124b45..6abea51d077 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MetadataRemap.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MetadataRemap.java @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MetadataRemap.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Migration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Migration.java index b5a58802ffc..0f55f7bcb48 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Migration.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Migration.java @@ -15,34 +15,34 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Migration.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = Migration.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleMigration.class, + name = "ORACLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlMigration.class, + name = "MYSQL") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class Migration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { +public class Migration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", + "description", "displayName", "compartmentId", "type", "waitAfter", - "agentId", - "credentialsSecretId", "sourceDatabaseConnectionId", - "sourceContainerDatabaseConnectionId", "targetDatabaseConnectionId", "executingJobId", - "dataTransferMediumDetailsV2", - "dataTransferMediumDetails", - "dumpTransferDetails", - "datapumpSettings", - "advisorSettings", - "excludeObjects", - "includeObjects", - "goldenGateServiceDetails", - "goldenGateDetails", - "vaultDetails", "timeCreated", "timeUpdated", "timeLastMigration", @@ -52,28 +52,16 @@ public final class Migration extends com.oracle.bmc.http.client.internal.Explici "definedTags", "systemTags" }) - public Migration( + protected Migration( String id, + String description, String displayName, String compartmentId, MigrationTypes type, OdmsJobPhases waitAfter, - String agentId, - String credentialsSecretId, String sourceDatabaseConnectionId, - String sourceContainerDatabaseConnectionId, String targetDatabaseConnectionId, String executingJobId, - DataTransferMediumDetailsV2 dataTransferMediumDetailsV2, - DataTransferMediumDetails dataTransferMediumDetails, - DumpTransferDetails dumpTransferDetails, - DataPumpSettings datapumpSettings, - AdvisorSettings advisorSettings, - java.util.List excludeObjects, - java.util.List includeObjects, - GoldenGateServiceDetails goldenGateServiceDetails, - GoldenGateDetails goldenGateDetails, - VaultDetails vaultDetails, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeLastMigration, @@ -84,26 +72,14 @@ public Migration( java.util.Map> systemTags) { super(); this.id = id; + this.description = description; this.displayName = displayName; this.compartmentId = compartmentId; this.type = type; this.waitAfter = waitAfter; - this.agentId = agentId; - this.credentialsSecretId = credentialsSecretId; this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.targetDatabaseConnectionId = targetDatabaseConnectionId; this.executingJobId = executingJobId; - this.dataTransferMediumDetailsV2 = dataTransferMediumDetailsV2; - this.dataTransferMediumDetails = dataTransferMediumDetails; - this.dumpTransferDetails = dumpTransferDetails; - this.datapumpSettings = datapumpSettings; - this.advisorSettings = advisorSettings; - this.excludeObjects = excludeObjects; - this.includeObjects = includeObjects; - this.goldenGateServiceDetails = goldenGateServiceDetails; - this.goldenGateDetails = goldenGateDetails; - this.vaultDetails = vaultDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeLastMigration = timeLastMigration; @@ -114,576 +90,12 @@ public Migration( this.systemTags = systemTags; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The OCID of the resource - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** Migration Display Name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Migration Display Name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** Migration type. */ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private MigrationTypes type; - - /** - * Migration type. - * - * @param type the value to set - * @return this builder - */ - public Builder type(MigrationTypes type) { - this.type = type; - this.__explicitlySet__.add("type"); - return this; - } - /** - * Name of a migration phase. The Job will wait after executing this phase until the Resume - * Job endpoint is called. - */ - @com.fasterxml.jackson.annotation.JsonProperty("waitAfter") - private OdmsJobPhases waitAfter; - - /** - * Name of a migration phase. The Job will wait after executing this phase until the Resume - * Job endpoint is called. - * - * @param waitAfter the value to set - * @return this builder - */ - public Builder waitAfter(OdmsJobPhases waitAfter) { - this.waitAfter = waitAfter; - this.__explicitlySet__.add("waitAfter"); - return this; - } - /** The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private String agentId; - - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. - * - * @param agentId the value to set - * @return this builder - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - this.__explicitlySet__.add("agentId"); - return this; - } - /** - * OCID of the Secret in the OCI vault containing the Migration credentials. Used to store - * GoldenGate administrator user credentials. - */ - @com.fasterxml.jackson.annotation.JsonProperty("credentialsSecretId") - private String credentialsSecretId; - - /** - * OCID of the Secret in the OCI vault containing the Migration credentials. Used to store - * GoldenGate administrator user credentials. - * - * @param credentialsSecretId the value to set - * @return this builder - */ - public Builder credentialsSecretId(String credentialsSecretId) { - this.credentialsSecretId = credentialsSecretId; - this.__explicitlySet__.add("credentialsSecretId"); - return this; - } - /** The OCID of the Source Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private String sourceDatabaseConnectionId; - - /** - * The OCID of the Source Database Connection. - * - * @param sourceDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { - this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.__explicitlySet__.add("sourceDatabaseConnectionId"); - return this; - } - /** The OCID of the Source Container Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. - * - * @param sourceContainerDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceContainerDatabaseConnectionId( - String sourceContainerDatabaseConnectionId) { - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; - this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); - return this; - } - /** The OCID of the Target Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") - private String targetDatabaseConnectionId; - - /** - * The OCID of the Target Database Connection. - * - * @param targetDatabaseConnectionId the value to set - * @return this builder - */ - public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { - this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.__explicitlySet__.add("targetDatabaseConnectionId"); - return this; - } - /** OCID of the current ODMS Job in execution for the Migration, if any. */ - @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") - private String executingJobId; - - /** - * OCID of the current ODMS Job in execution for the Migration, if any. - * - * @param executingJobId the value to set - * @return this builder - */ - public Builder executingJobId(String executingJobId) { - this.executingJobId = executingJobId; - this.__explicitlySet__.add("executingJobId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetailsV2") - private DataTransferMediumDetailsV2 dataTransferMediumDetailsV2; - - public Builder dataTransferMediumDetailsV2( - DataTransferMediumDetailsV2 dataTransferMediumDetailsV2) { - this.dataTransferMediumDetailsV2 = dataTransferMediumDetailsV2; - this.__explicitlySet__.add("dataTransferMediumDetailsV2"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") - private DataTransferMediumDetails dataTransferMediumDetails; - - public Builder dataTransferMediumDetails( - DataTransferMediumDetails dataTransferMediumDetails) { - this.dataTransferMediumDetails = dataTransferMediumDetails; - this.__explicitlySet__.add("dataTransferMediumDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dumpTransferDetails") - private DumpTransferDetails dumpTransferDetails; - - public Builder dumpTransferDetails(DumpTransferDetails dumpTransferDetails) { - this.dumpTransferDetails = dumpTransferDetails; - this.__explicitlySet__.add("dumpTransferDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("datapumpSettings") - private DataPumpSettings datapumpSettings; - - public Builder datapumpSettings(DataPumpSettings datapumpSettings) { - this.datapumpSettings = datapumpSettings; - this.__explicitlySet__.add("datapumpSettings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") - private AdvisorSettings advisorSettings; - - public Builder advisorSettings(AdvisorSettings advisorSettings) { - this.advisorSettings = advisorSettings; - this.__explicitlySet__.add("advisorSettings"); - return this; - } - /** - * Database objects to exclude from migration. If 'includeObjects' are specified, only - * exclude object types can be specified with general wildcards (.*) for owner and - * objectName. - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private java.util.List excludeObjects; - - /** - * Database objects to exclude from migration. If 'includeObjects' are specified, only - * exclude object types can be specified with general wildcards (.*) for owner and - * objectName. - * - * @param excludeObjects the value to set - * @return this builder - */ - public Builder excludeObjects(java.util.List excludeObjects) { - this.excludeObjects = excludeObjects; - this.__explicitlySet__.add("excludeObjects"); - return this; - } - /** Database objects to include from migration. */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private java.util.List includeObjects; - - /** - * Database objects to include from migration. - * - * @param includeObjects the value to set - * @return this builder - */ - public Builder includeObjects(java.util.List includeObjects) { - this.includeObjects = includeObjects; - this.__explicitlySet__.add("includeObjects"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateServiceDetails") - private GoldenGateServiceDetails goldenGateServiceDetails; - - public Builder goldenGateServiceDetails(GoldenGateServiceDetails goldenGateServiceDetails) { - this.goldenGateServiceDetails = goldenGateServiceDetails; - this.__explicitlySet__.add("goldenGateServiceDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateDetails") - private GoldenGateDetails goldenGateDetails; - - public Builder goldenGateDetails(GoldenGateDetails goldenGateDetails) { - this.goldenGateDetails = goldenGateDetails; - this.__explicitlySet__.add("goldenGateDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private VaultDetails vaultDetails; - - public Builder vaultDetails(VaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** The time the Migration was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Migration was created. An RFC3339 formatted datetime string. - * - * @param timeCreated the value to set - * @return this builder - */ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** The time of the last Migration details update. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time of the last Migration details update. An RFC3339 formatted datetime string. - * - * @param timeUpdated the value to set - * @return this builder - */ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** The time of last Migration. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") - private java.util.Date timeLastMigration; - - /** - * The time of last Migration. An RFC3339 formatted datetime string. - * - * @param timeLastMigration the value to set - * @return this builder - */ - public Builder timeLastMigration(java.util.Date timeLastMigration) { - this.timeLastMigration = timeLastMigration; - this.__explicitlySet__.add("timeLastMigration"); - return this; - } - /** The current state of the Migration resource. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private MigrationLifecycleStates lifecycleState; - - /** - * The current state of the Migration resource. - * - * @param lifecycleState the value to set - * @return this builder - */ - public Builder lifecycleState(MigrationLifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** Additional status related to the execution and current state of the Migration. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private MigrationStatus lifecycleDetails; - - /** - * Additional status related to the execution and current state of the Migration. - * - * @param lifecycleDetails the value to set - * @return this builder - */ - public Builder lifecycleDetails(MigrationStatus lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - */ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public Migration build() { - Migration model = - new Migration( - this.id, - this.displayName, - this.compartmentId, - this.type, - this.waitAfter, - this.agentId, - this.credentialsSecretId, - this.sourceDatabaseConnectionId, - this.sourceContainerDatabaseConnectionId, - this.targetDatabaseConnectionId, - this.executingJobId, - this.dataTransferMediumDetailsV2, - this.dataTransferMediumDetails, - this.dumpTransferDetails, - this.datapumpSettings, - this.advisorSettings, - this.excludeObjects, - this.includeObjects, - this.goldenGateServiceDetails, - this.goldenGateDetails, - this.vaultDetails, - this.timeCreated, - this.timeUpdated, - this.timeLastMigration, - this.lifecycleState, - this.lifecycleDetails, - this.freeformTags, - this.definedTags, - this.systemTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(Migration model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("type")) { - this.type(model.getType()); - } - if (model.wasPropertyExplicitlySet("waitAfter")) { - this.waitAfter(model.getWaitAfter()); - } - if (model.wasPropertyExplicitlySet("agentId")) { - this.agentId(model.getAgentId()); - } - if (model.wasPropertyExplicitlySet("credentialsSecretId")) { - this.credentialsSecretId(model.getCredentialsSecretId()); - } - if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { - this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { - this.sourceContainerDatabaseConnectionId( - model.getSourceContainerDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { - this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("executingJobId")) { - this.executingJobId(model.getExecutingJobId()); - } - if (model.wasPropertyExplicitlySet("dataTransferMediumDetailsV2")) { - this.dataTransferMediumDetailsV2(model.getDataTransferMediumDetailsV2()); - } - if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { - this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); - } - if (model.wasPropertyExplicitlySet("dumpTransferDetails")) { - this.dumpTransferDetails(model.getDumpTransferDetails()); - } - if (model.wasPropertyExplicitlySet("datapumpSettings")) { - this.datapumpSettings(model.getDatapumpSettings()); - } - if (model.wasPropertyExplicitlySet("advisorSettings")) { - this.advisorSettings(model.getAdvisorSettings()); - } - if (model.wasPropertyExplicitlySet("excludeObjects")) { - this.excludeObjects(model.getExcludeObjects()); - } - if (model.wasPropertyExplicitlySet("includeObjects")) { - this.includeObjects(model.getIncludeObjects()); - } - if (model.wasPropertyExplicitlySet("goldenGateServiceDetails")) { - this.goldenGateServiceDetails(model.getGoldenGateServiceDetails()); - } - if (model.wasPropertyExplicitlySet("goldenGateDetails")) { - this.goldenGateDetails(model.getGoldenGateDetails()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("timeLastMigration")) { - this.timeLastMigration(model.getTimeLastMigration()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The OCID of the resource */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the resource + * The OCID of the resource being referenced. * * @return the value */ @@ -691,12 +103,33 @@ public String getId() { return id; } - /** Migration Display Name */ + /** + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Migration Display Name + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ @@ -704,12 +137,12 @@ public String getDisplayName() { return displayName; } - /** OCID of the compartment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * OCID of the compartment + * The OCID of the resource being referenced. * * @return the value */ @@ -717,12 +150,16 @@ public String getCompartmentId() { return compartmentId; } - /** Migration type. */ + /** + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. + */ @com.fasterxml.jackson.annotation.JsonProperty("type") private final MigrationTypes type; /** - * Migration type. + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. * * @return the value */ @@ -731,15 +168,15 @@ public MigrationTypes getType() { } /** - * Name of a migration phase. The Job will wait after executing this phase until the Resume Job - * endpoint is called. + * You can optionally pause a migration after a job phase. This property allows you to + * optionally specify the phase after which you can pause the migration. */ @com.fasterxml.jackson.annotation.JsonProperty("waitAfter") private final OdmsJobPhases waitAfter; /** - * Name of a migration phase. The Job will wait after executing this phase until the Resume Job - * endpoint is called. + * You can optionally pause a migration after a job phase. This property allows you to + * optionally specify the phase after which you can pause the migration. * * @return the value */ @@ -747,42 +184,12 @@ public OdmsJobPhases getWaitAfter() { return waitAfter; } - /** The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private final String agentId; - - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. - * - * @return the value - */ - public String getAgentId() { - return agentId; - } - - /** - * OCID of the Secret in the OCI vault containing the Migration credentials. Used to store - * GoldenGate administrator user credentials. - */ - @com.fasterxml.jackson.annotation.JsonProperty("credentialsSecretId") - private final String credentialsSecretId; - - /** - * OCID of the Secret in the OCI vault containing the Migration credentials. Used to store - * GoldenGate administrator user credentials. - * - * @return the value - */ - public String getCredentialsSecretId() { - return credentialsSecretId; - } - - /** The OCID of the Source Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") private final String sourceDatabaseConnectionId; /** - * The OCID of the Source Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -790,25 +197,12 @@ public String getSourceDatabaseConnectionId() { return sourceDatabaseConnectionId; } - /** The OCID of the Source Container Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private final String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. - * - * @return the value - */ - public String getSourceContainerDatabaseConnectionId() { - return sourceContainerDatabaseConnectionId; - } - - /** The OCID of the Target Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") private final String targetDatabaseConnectionId; /** - * The OCID of the Target Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -816,12 +210,12 @@ public String getTargetDatabaseConnectionId() { return targetDatabaseConnectionId; } - /** OCID of the current ODMS Job in execution for the Migration, if any. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") private final String executingJobId; /** - * OCID of the current ODMS Job in execution for the Migration, if any. + * The OCID of the resource being referenced. * * @return the value */ @@ -829,98 +223,12 @@ public String getExecutingJobId() { return executingJobId; } - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetailsV2") - private final DataTransferMediumDetailsV2 dataTransferMediumDetailsV2; - - public DataTransferMediumDetailsV2 getDataTransferMediumDetailsV2() { - return dataTransferMediumDetailsV2; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") - private final DataTransferMediumDetails dataTransferMediumDetails; - - public DataTransferMediumDetails getDataTransferMediumDetails() { - return dataTransferMediumDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dumpTransferDetails") - private final DumpTransferDetails dumpTransferDetails; - - public DumpTransferDetails getDumpTransferDetails() { - return dumpTransferDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("datapumpSettings") - private final DataPumpSettings datapumpSettings; - - public DataPumpSettings getDatapumpSettings() { - return datapumpSettings; - } - - @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") - private final AdvisorSettings advisorSettings; - - public AdvisorSettings getAdvisorSettings() { - return advisorSettings; - } - - /** - * Database objects to exclude from migration. If 'includeObjects' are specified, only exclude - * object types can be specified with general wildcards (.*) for owner and objectName. - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private final java.util.List excludeObjects; - - /** - * Database objects to exclude from migration. If 'includeObjects' are specified, only exclude - * object types can be specified with general wildcards (.*) for owner and objectName. - * - * @return the value - */ - public java.util.List getExcludeObjects() { - return excludeObjects; - } - - /** Database objects to include from migration. */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private final java.util.List includeObjects; - - /** - * Database objects to include from migration. - * - * @return the value - */ - public java.util.List getIncludeObjects() { - return includeObjects; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateServiceDetails") - private final GoldenGateServiceDetails goldenGateServiceDetails; - - public GoldenGateServiceDetails getGoldenGateServiceDetails() { - return goldenGateServiceDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateDetails") - private final GoldenGateDetails goldenGateDetails; - - public GoldenGateDetails getGoldenGateDetails() { - return goldenGateDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final VaultDetails vaultDetails; - - public VaultDetails getVaultDetails() { - return vaultDetails; - } - - /** The time the Migration was created. An RFC3339 formatted datetime string. */ + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Migration was created. An RFC3339 formatted datetime string. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -928,12 +236,12 @@ public java.util.Date getTimeCreated() { return timeCreated; } - /** The time of the last Migration details update. An RFC3339 formatted datetime string. */ + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time of the last Migration details update. An RFC3339 formatted datetime string. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -941,12 +249,12 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** The time of last Migration. An RFC3339 formatted datetime string. */ + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") private final java.util.Date timeLastMigration; /** - * The time of last Migration. An RFC3339 formatted datetime string. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -981,15 +289,17 @@ public MigrationStatus getLifecycleDetails() { } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ @@ -1047,32 +357,16 @@ public String toString(boolean includeByteArrayContents) { sb.append("Migration("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); + sb.append(", description=").append(String.valueOf(this.description)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", type=").append(String.valueOf(this.type)); sb.append(", waitAfter=").append(String.valueOf(this.waitAfter)); - sb.append(", agentId=").append(String.valueOf(this.agentId)); - sb.append(", credentialsSecretId=").append(String.valueOf(this.credentialsSecretId)); sb.append(", sourceDatabaseConnectionId=") .append(String.valueOf(this.sourceDatabaseConnectionId)); - sb.append(", sourceContainerDatabaseConnectionId=") - .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", targetDatabaseConnectionId=") .append(String.valueOf(this.targetDatabaseConnectionId)); sb.append(", executingJobId=").append(String.valueOf(this.executingJobId)); - sb.append(", dataTransferMediumDetailsV2=") - .append(String.valueOf(this.dataTransferMediumDetailsV2)); - sb.append(", dataTransferMediumDetails=") - .append(String.valueOf(this.dataTransferMediumDetails)); - sb.append(", dumpTransferDetails=").append(String.valueOf(this.dumpTransferDetails)); - sb.append(", datapumpSettings=").append(String.valueOf(this.datapumpSettings)); - sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); - sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); - sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); - sb.append(", goldenGateServiceDetails=") - .append(String.valueOf(this.goldenGateServiceDetails)); - sb.append(", goldenGateDetails=").append(String.valueOf(this.goldenGateDetails)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeLastMigration=").append(String.valueOf(this.timeLastMigration)); @@ -1096,33 +390,16 @@ public boolean equals(Object o) { Migration other = (Migration) o; return java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.waitAfter, other.waitAfter) - && java.util.Objects.equals(this.agentId, other.agentId) - && java.util.Objects.equals(this.credentialsSecretId, other.credentialsSecretId) && java.util.Objects.equals( this.sourceDatabaseConnectionId, other.sourceDatabaseConnectionId) - && java.util.Objects.equals( - this.sourceContainerDatabaseConnectionId, - other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( this.targetDatabaseConnectionId, other.targetDatabaseConnectionId) && java.util.Objects.equals(this.executingJobId, other.executingJobId) - && java.util.Objects.equals( - this.dataTransferMediumDetailsV2, other.dataTransferMediumDetailsV2) - && java.util.Objects.equals( - this.dataTransferMediumDetails, other.dataTransferMediumDetails) - && java.util.Objects.equals(this.dumpTransferDetails, other.dumpTransferDetails) - && java.util.Objects.equals(this.datapumpSettings, other.datapumpSettings) - && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) - && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) - && java.util.Objects.equals(this.includeObjects, other.includeObjects) - && java.util.Objects.equals( - this.goldenGateServiceDetails, other.goldenGateServiceDetails) - && java.util.Objects.equals(this.goldenGateDetails, other.goldenGateDetails) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeLastMigration, other.timeLastMigration) @@ -1139,28 +416,18 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.waitAfter == null ? 43 : this.waitAfter.hashCode()); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); - result = - (result * PRIME) - + (this.credentialsSecretId == null - ? 43 - : this.credentialsSecretId.hashCode()); result = (result * PRIME) + (this.sourceDatabaseConnectionId == null ? 43 : this.sourceDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDatabaseConnectionId == null - ? 43 - : this.sourceContainerDatabaseConnectionId.hashCode()); result = (result * PRIME) + (this.targetDatabaseConnectionId == null @@ -1169,42 +436,6 @@ public int hashCode() { result = (result * PRIME) + (this.executingJobId == null ? 43 : this.executingJobId.hashCode()); - result = - (result * PRIME) - + (this.dataTransferMediumDetailsV2 == null - ? 43 - : this.dataTransferMediumDetailsV2.hashCode()); - result = - (result * PRIME) - + (this.dataTransferMediumDetails == null - ? 43 - : this.dataTransferMediumDetails.hashCode()); - result = - (result * PRIME) - + (this.dumpTransferDetails == null - ? 43 - : this.dumpTransferDetails.hashCode()); - result = - (result * PRIME) - + (this.datapumpSettings == null ? 43 : this.datapumpSettings.hashCode()); - result = - (result * PRIME) - + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); - result = - (result * PRIME) - + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); - result = - (result * PRIME) - + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); - result = - (result * PRIME) - + (this.goldenGateServiceDetails == null - ? 43 - : this.goldenGateServiceDetails.hashCode()); - result = - (result * PRIME) - + (this.goldenGateDetails == null ? 43 : this.goldenGateDetails.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationCollection.java index d3b8fb7272e..bdf8a660765 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypes.java index 535cb45f2e8..153de728101 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypes.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible Migration Database Target types to specify. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationDatabaseTargetTypes implements com.oracle.bmc.http.internal.BmcEnum { AdbSRemap("ADB_S_REMAP"), AdbDRemap("ADB_D_REMAP"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypesUpdate.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypesUpdate.java index 958d150ec06..55137a17348 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypesUpdate.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationDatabaseTargetTypesUpdate.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible Migration Database Target types to specify. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationDatabaseTargetTypesUpdate implements com.oracle.bmc.http.internal.BmcEnum { AdbSRemap("ADB_S_REMAP"), AdbDRemap("ADB_D_REMAP"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressResource.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressResource.java index db850be8303..74aa1e8ff09 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressResource.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressResource.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationJobProgressResource.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressSummary.java index c1c79696496..478e7b162c7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationJobProgressSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationJobProgressSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationLifecycleStates.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationLifecycleStates.java index 00a6c29fcc7..d7dae52ae9d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationLifecycleStates.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationLifecycleStates.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible Migration lifecycle states. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationLifecycleStates implements com.oracle.bmc.http.internal.BmcEnum { Creating("CREATING"), Updating("UPDATING"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectCollection.java index ec4b0a6a3dc..81b3785664a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectCollection.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Database objects to migrate.
+ * Common Migration Objects collection.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,119 +15,28 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = MigrationObjectCollection.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = MigrationObjectCollection.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlMigrationObjectCollection.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleMigrationObjectCollection.class, + name = "ORACLE") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class MigrationObjectCollection +public class MigrationObjectCollection extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"items", "csvText"}) - public MigrationObjectCollection(java.util.List items, String csvText) { + @java.beans.ConstructorProperties({}) + protected MigrationObjectCollection() { super(); - this.items = items; - this.csvText = csvText; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Database objects to exclude/include from migration */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private java.util.List items; - - /** - * Database objects to exclude/include from migration - * - * @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; - } - /** - * Database objects to exclude/include from migration in CSV format. The items field will be - * ignored if this field is not null. - */ - @com.fasterxml.jackson.annotation.JsonProperty("csvText") - private String csvText; - - /** - * Database objects to exclude/include from migration in CSV format. The items field will be - * ignored if this field is not null. - * - * @param csvText the value to set - * @return this builder - */ - public Builder csvText(String csvText) { - this.csvText = csvText; - this.__explicitlySet__.add("csvText"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public MigrationObjectCollection build() { - MigrationObjectCollection model = - new MigrationObjectCollection(this.items, this.csvText); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(MigrationObjectCollection model) { - if (model.wasPropertyExplicitlySet("items")) { - this.items(model.getItems()); - } - if (model.wasPropertyExplicitlySet("csvText")) { - this.csvText(model.getCsvText()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Database objects to exclude/include from migration */ - @com.fasterxml.jackson.annotation.JsonProperty("items") - private final java.util.List items; - - /** - * Database objects to exclude/include from migration - * - * @return the value - */ - public java.util.List getItems() { - return items; - } - - /** - * Database objects to exclude/include from migration in CSV format. The items field will be - * ignored if this field is not null. - */ - @com.fasterxml.jackson.annotation.JsonProperty("csvText") - private final String csvText; - - /** - * Database objects to exclude/include from migration in CSV format. The items field will be - * ignored if this field is not null. - * - * @return the value - */ - public String getCsvText() { - return csvText; } @Override @@ -145,8 +54,6 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("MigrationObjectCollection("); sb.append("super=").append(super.toString()); - sb.append("items=").append(String.valueOf(this.items)); - sb.append(", csvText=").append(String.valueOf(this.csvText)); sb.append(")"); return sb.toString(); } @@ -161,17 +68,13 @@ public boolean equals(Object o) { } MigrationObjectCollection other = (MigrationObjectCollection) o; - return java.util.Objects.equals(this.items, other.items) - && java.util.Objects.equals(this.csvText, other.csvText) - && super.equals(other); + return super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); - result = (result * PRIME) + (this.csvText == null ? 43 : this.csvText.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummary.java index 1ebdb67d237..571d637cd4d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationObjectTypeSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummaryCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummaryCollection.java index 47858376b0e..5b5d2f7949e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummaryCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectTypeSummaryCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationObjectTypeSummaryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseCollection.java index a3ac5740af2..86fe1332e5c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationPhaseCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseSummary.java index c84fb2458a3..637d5b9133a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationPhaseSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = MigrationPhaseSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationStatus.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationStatus.java index a87aefcd61e..45a1c21f105 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationStatus.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible Migration status. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationStatus implements com.oracle.bmc.http.internal.BmcEnum { Ready("READY"), Aborting("ABORTING"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationSummary.java index 2b1a60381f8..0537c3ad54c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationSummary.java @@ -15,12 +15,23 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MigrationSummary.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = MigrationSummary.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = OracleMigrationSummary.class, + name = "ORACLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlMigrationSummary.class, + name = "MYSQL") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class MigrationSummary - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { +public class MigrationSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", @@ -28,11 +39,8 @@ public final class MigrationSummary "compartmentId", "type", "sourceDatabaseConnectionId", - "sourceContainerDatabaseConnectionId", "targetDatabaseConnectionId", "executingJobId", - "agentId", - "vaultDetails", "timeCreated", "timeUpdated", "timeLastMigration", @@ -42,17 +50,14 @@ public final class MigrationSummary "definedTags", "systemTags" }) - public MigrationSummary( + protected MigrationSummary( String id, String displayName, String compartmentId, MigrationTypes type, String sourceDatabaseConnectionId, - String sourceContainerDatabaseConnectionId, String targetDatabaseConnectionId, String executingJobId, - String agentId, - VaultDetails vaultDetails, java.util.Date timeCreated, java.util.Date timeUpdated, java.util.Date timeLastMigration, @@ -67,11 +72,8 @@ public MigrationSummary( this.compartmentId = compartmentId; this.type = type; this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.targetDatabaseConnectionId = targetDatabaseConnectionId; this.executingJobId = executingJobId; - this.agentId = agentId; - this.vaultDetails = vaultDetails; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.timeLastMigration = timeLastMigration; @@ -82,393 +84,12 @@ public MigrationSummary( this.systemTags = systemTags; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** The OCID of the resource */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * The OCID of the resource - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - /** Migration Display Name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Migration Display Name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** OCID of the compartment */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** Migration type. */ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private MigrationTypes type; - - /** - * Migration type. - * - * @param type the value to set - * @return this builder - */ - public Builder type(MigrationTypes type) { - this.type = type; - this.__explicitlySet__.add("type"); - return this; - } - /** The OCID of the Source Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private String sourceDatabaseConnectionId; - - /** - * The OCID of the Source Database Connection. - * - * @param sourceDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { - this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.__explicitlySet__.add("sourceDatabaseConnectionId"); - return this; - } - /** The OCID of the Source Container Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. - * - * @param sourceContainerDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceContainerDatabaseConnectionId( - String sourceContainerDatabaseConnectionId) { - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; - this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); - return this; - } - /** The OCID of the Target Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") - private String targetDatabaseConnectionId; - - /** - * The OCID of the Target Database Connection. - * - * @param targetDatabaseConnectionId the value to set - * @return this builder - */ - public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { - this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.__explicitlySet__.add("targetDatabaseConnectionId"); - return this; - } - /** OCID of the current ODMS Job in execution for the Migration, if any. */ - @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") - private String executingJobId; - - /** - * OCID of the current ODMS Job in execution for the Migration, if any. - * - * @param executingJobId the value to set - * @return this builder - */ - public Builder executingJobId(String executingJobId) { - this.executingJobId = executingJobId; - this.__explicitlySet__.add("executingJobId"); - return this; - } - /** The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private String agentId; - - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. - * - * @param agentId the value to set - * @return this builder - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - this.__explicitlySet__.add("agentId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private VaultDetails vaultDetails; - - public Builder vaultDetails(VaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** The time the Migration was created. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") - private java.util.Date timeCreated; - - /** - * The time the Migration was created. An RFC3339 formatted datetime string. - * - * @param timeCreated the value to set - * @return this builder - */ - public Builder timeCreated(java.util.Date timeCreated) { - this.timeCreated = timeCreated; - this.__explicitlySet__.add("timeCreated"); - return this; - } - /** The time of the last Migration details update. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") - private java.util.Date timeUpdated; - - /** - * The time of the last Migration details update. An RFC3339 formatted datetime string. - * - * @param timeUpdated the value to set - * @return this builder - */ - public Builder timeUpdated(java.util.Date timeUpdated) { - this.timeUpdated = timeUpdated; - this.__explicitlySet__.add("timeUpdated"); - return this; - } - /** The time of last Migration. An RFC3339 formatted datetime string. */ - @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") - private java.util.Date timeLastMigration; - - /** - * The time of last Migration. An RFC3339 formatted datetime string. - * - * @param timeLastMigration the value to set - * @return this builder - */ - public Builder timeLastMigration(java.util.Date timeLastMigration) { - this.timeLastMigration = timeLastMigration; - this.__explicitlySet__.add("timeLastMigration"); - return this; - } - /** The current state of the Migration. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") - private MigrationLifecycleStates lifecycleState; - - /** - * The current state of the Migration. - * - * @param lifecycleState the value to set - * @return this builder - */ - public Builder lifecycleState(MigrationLifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - this.__explicitlySet__.add("lifecycleState"); - return this; - } - /** Additional status related to the execution and current state of the Migration. */ - @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") - private MigrationStatus lifecycleDetails; - - /** - * Additional status related to the execution and current state of the Migration. - * - * @param lifecycleDetails the value to set - * @return this builder - */ - public Builder lifecycleDetails(MigrationStatus lifecycleDetails) { - this.lifecycleDetails = lifecycleDetails; - this.__explicitlySet__.add("lifecycleDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("systemTags") - private java.util.Map> systemTags; - - /** - * Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {@code - * {"orcl-cloud": {"free-tier-retained": "true"}}} - * - * @param systemTags the value to set - * @return this builder - */ - public Builder systemTags(java.util.Map> systemTags) { - this.systemTags = systemTags; - this.__explicitlySet__.add("systemTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public MigrationSummary build() { - MigrationSummary model = - new MigrationSummary( - this.id, - this.displayName, - this.compartmentId, - this.type, - this.sourceDatabaseConnectionId, - this.sourceContainerDatabaseConnectionId, - this.targetDatabaseConnectionId, - this.executingJobId, - this.agentId, - this.vaultDetails, - this.timeCreated, - this.timeUpdated, - this.timeLastMigration, - this.lifecycleState, - this.lifecycleDetails, - this.freeformTags, - this.definedTags, - this.systemTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(MigrationSummary model) { - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("type")) { - this.type(model.getType()); - } - if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { - this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { - this.sourceContainerDatabaseConnectionId( - model.getSourceContainerDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { - this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("executingJobId")) { - this.executingJobId(model.getExecutingJobId()); - } - if (model.wasPropertyExplicitlySet("agentId")) { - this.agentId(model.getAgentId()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - if (model.wasPropertyExplicitlySet("timeCreated")) { - this.timeCreated(model.getTimeCreated()); - } - if (model.wasPropertyExplicitlySet("timeUpdated")) { - this.timeUpdated(model.getTimeUpdated()); - } - if (model.wasPropertyExplicitlySet("timeLastMigration")) { - this.timeLastMigration(model.getTimeLastMigration()); - } - if (model.wasPropertyExplicitlySet("lifecycleState")) { - this.lifecycleState(model.getLifecycleState()); - } - if (model.wasPropertyExplicitlySet("lifecycleDetails")) { - this.lifecycleDetails(model.getLifecycleDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("systemTags")) { - this.systemTags(model.getSystemTags()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** The OCID of the resource */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** - * The OCID of the resource + * The OCID of the resource being referenced. * * @return the value */ @@ -476,12 +97,16 @@ public String getId() { return id; } - /** Migration Display Name */ + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Migration Display Name + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ @@ -489,12 +114,12 @@ public String getDisplayName() { return displayName; } - /** OCID of the compartment */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** - * OCID of the compartment + * The OCID of the resource being referenced. * * @return the value */ @@ -502,12 +127,16 @@ public String getCompartmentId() { return compartmentId; } - /** Migration type. */ + /** + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. + */ @com.fasterxml.jackson.annotation.JsonProperty("type") private final MigrationTypes type; /** - * Migration type. + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. * * @return the value */ @@ -515,12 +144,12 @@ public MigrationTypes getType() { return type; } - /** The OCID of the Source Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") private final String sourceDatabaseConnectionId; /** - * The OCID of the Source Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -528,25 +157,12 @@ public String getSourceDatabaseConnectionId() { return sourceDatabaseConnectionId; } - /** The OCID of the Source Container Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private final String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. - * - * @return the value - */ - public String getSourceContainerDatabaseConnectionId() { - return sourceContainerDatabaseConnectionId; - } - - /** The OCID of the Target Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") private final String targetDatabaseConnectionId; /** - * The OCID of the Target Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -554,12 +170,12 @@ public String getTargetDatabaseConnectionId() { return targetDatabaseConnectionId; } - /** OCID of the current ODMS Job in execution for the Migration, if any. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") private final String executingJobId; /** - * OCID of the current ODMS Job in execution for the Migration, if any. + * The OCID of the resource being referenced. * * @return the value */ @@ -567,32 +183,12 @@ public String getExecutingJobId() { return executingJobId; } - /** The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private final String agentId; - - /** - * The OCID of the registered on-premises ODMS Agent. Only valid for Offline Migrations. - * - * @return the value - */ - public String getAgentId() { - return agentId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final VaultDetails vaultDetails; - - public VaultDetails getVaultDetails() { - return vaultDetails; - } - - /** The time the Migration was created. An RFC3339 formatted datetime string. */ + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** - * The time the Migration was created. An RFC3339 formatted datetime string. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -600,12 +196,12 @@ public java.util.Date getTimeCreated() { return timeCreated; } - /** The time of the last Migration details update. An RFC3339 formatted datetime string. */ + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** - * The time of the last Migration details update. An RFC3339 formatted datetime string. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -613,12 +209,12 @@ public java.util.Date getTimeUpdated() { return timeUpdated; } - /** The time of last Migration. An RFC3339 formatted datetime string. */ + /** An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") private final java.util.Date timeLastMigration; /** - * The time of last Migration. An RFC3339 formatted datetime string. + * An RFC3339 formatted datetime string such as {@code 2016-08-25T21:10:29.600Z}. * * @return the value */ @@ -626,12 +222,12 @@ public java.util.Date getTimeLastMigration() { return timeLastMigration; } - /** The current state of the Migration. */ + /** The current state of the Migration resource. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final MigrationLifecycleStates lifecycleState; /** - * The current state of the Migration. + * The current state of the Migration resource. * * @return the value */ @@ -653,15 +249,17 @@ public MigrationStatus getLifecycleDetails() { } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ @@ -724,13 +322,9 @@ public String toString(boolean includeByteArrayContents) { sb.append(", type=").append(String.valueOf(this.type)); sb.append(", sourceDatabaseConnectionId=") .append(String.valueOf(this.sourceDatabaseConnectionId)); - sb.append(", sourceContainerDatabaseConnectionId=") - .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", targetDatabaseConnectionId=") .append(String.valueOf(this.targetDatabaseConnectionId)); sb.append(", executingJobId=").append(String.valueOf(this.executingJobId)); - sb.append(", agentId=").append(String.valueOf(this.agentId)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", timeLastMigration=").append(String.valueOf(this.timeLastMigration)); @@ -759,14 +353,9 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals( this.sourceDatabaseConnectionId, other.sourceDatabaseConnectionId) - && java.util.Objects.equals( - this.sourceContainerDatabaseConnectionId, - other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( this.targetDatabaseConnectionId, other.targetDatabaseConnectionId) && java.util.Objects.equals(this.executingJobId, other.executingJobId) - && java.util.Objects.equals(this.agentId, other.agentId) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.timeLastMigration, other.timeLastMigration) @@ -793,11 +382,6 @@ public int hashCode() { + (this.sourceDatabaseConnectionId == null ? 43 : this.sourceDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDatabaseConnectionId == null - ? 43 - : this.sourceContainerDatabaseConnectionId.hashCode()); result = (result * PRIME) + (this.targetDatabaseConnectionId == null @@ -806,8 +390,6 @@ public int hashCode() { result = (result * PRIME) + (this.executingJobId == null ? 43 : this.executingJobId.hashCode()); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationTypes.java index b0f062c20a4..570f0ac8639 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationTypes.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Supported Migration types. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum MigrationTypes implements com.oracle.bmc.http.internal.BmcEnum { Online("ONLINE"), Offline("OFFLINE"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAdvisorSettings.java similarity index 90% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdvisorSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAdvisorSettings.java index cc96825b2e0..334c400b5ed 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateAdvisorSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlAdvisorSettings.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional Pre-Migration advisor settings.
+ * Details about Advisor Settings.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,16 +15,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateAdvisorSettings.Builder.class) + builder = MySqlAdvisorSettings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateAdvisorSettings +public final class MySqlAdvisorSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) - public CreateAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + public MySqlAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { super(); this.isSkipAdvisor = isSkipAdvisor; this.isIgnoreErrors = isIgnoreErrors; @@ -70,9 +70,9 @@ public Builder isIgnoreErrors(Boolean isIgnoreErrors) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateAdvisorSettings build() { - CreateAdvisorSettings model = - new CreateAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + public MySqlAdvisorSettings build() { + MySqlAdvisorSettings model = + new MySqlAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,7 +80,7 @@ public CreateAdvisorSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateAdvisorSettings model) { + public Builder copy(MySqlAdvisorSettings model) { if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { this.isSkipAdvisor(model.getIsSkipAdvisor()); } @@ -143,7 +143,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateAdvisorSettings("); + sb.append("MySqlAdvisorSettings("); sb.append("super=").append(super.toString()); sb.append("isSkipAdvisor=").append(String.valueOf(this.isSkipAdvisor)); sb.append(", isIgnoreErrors=").append(String.valueOf(this.isIgnoreErrors)); @@ -156,11 +156,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateAdvisorSettings)) { + if (!(o instanceof MySqlAdvisorSettings)) { return false; } - CreateAdvisorSettings other = (CreateAdvisorSettings) o; + MySqlAdvisorSettings other = (MySqlAdvisorSettings) o; return java.util.Objects.equals(this.isSkipAdvisor, other.isSkipAdvisor) && java.util.Objects.equals(this.isIgnoreErrors, other.isIgnoreErrors) && super.equals(other); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlCloneMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlCloneMigrationDetails.java new file mode 100644 index 00000000000..d92fa29b640 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlCloneMigrationDetails.java @@ -0,0 +1,191 @@ +/** + * 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.databasemigration.model; + +/** + * MySQL Clone Migration Summary
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlCloneMigrationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlCloneMigrationDetails extends CloneMigrationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlCloneMigrationDetails build() { + MySqlCloneMigrationDetails model = + new MySqlCloneMigrationDetails( + this.displayName, + this.compartmentId, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.freeformTags, + this.definedTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlCloneMigrationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + 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); + } + + @Deprecated + public MySqlCloneMigrationDetails( + String displayName, + String compartmentId, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + java.util.Map freeformTags, + java.util.Map> definedTags) { + super( + displayName, + compartmentId, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + freeformTags, + 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("MySqlCloneMigrationDetails("); + 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 MySqlCloneMigrationDetails)) { + return false; + } + + MySqlCloneMigrationDetails other = (MySqlCloneMigrationDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataTransferMediumDetails.java new file mode 100644 index 00000000000..5ce0581a025 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDataTransferMediumDetails.java @@ -0,0 +1,122 @@ +/** + * 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.databasemigration.model; + +/** + * Optional additional properties for data transfer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = MySqlDataTransferMediumDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = MySqlObjectStorageDataTransferMediumDetails.class, + name = "OBJECT_STORAGE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class MySqlDataTransferMediumDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected MySqlDataTransferMediumDetails() { + 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("MySqlDataTransferMediumDetails("); + 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 MySqlDataTransferMediumDetails)) { + return false; + } + + MySqlDataTransferMediumDetails other = (MySqlDataTransferMediumDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the data transfer medium to use. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorage("OBJECT_STORAGE"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(Type.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'Type', returning UnknownEnumValue", key); + return UnknownEnumValue; + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObject.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObject.java new file mode 100644 index 00000000000..1d3dc54d008 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObject.java @@ -0,0 +1,213 @@ +/** + * 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.databasemigration.model; + +/** + * Database objects to include or exclude from migration
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDatabaseObject.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlDatabaseObject + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"schema", "objectName", "type"}) + public MySqlDatabaseObject(String schema, String objectName, String type) { + super(); + this.schema = schema; + this.objectName = objectName; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Schema of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("schema") + private String schema; + + /** + * Schema of the object (regular expression is allowed) + * + * @param schema the value to set + * @return this builder + */ + public Builder schema(String schema) { + this.schema = schema; + this.__explicitlySet__.add("schema"); + return this; + } + /** Name of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * Name of the object (regular expression is allowed) + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** + * Type of object to exclude. If not specified, matching owners and object names of type + * TABLE would be excluded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Type of object to exclude. If not specified, matching owners and object names of type + * TABLE would be excluded. + * + * @param type the value to set + * @return this builder + */ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDatabaseObject build() { + MySqlDatabaseObject model = + new MySqlDatabaseObject(this.schema, this.objectName, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDatabaseObject model) { + if (model.wasPropertyExplicitlySet("schema")) { + this.schema(model.getSchema()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Schema of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("schema") + private final String schema; + + /** + * Schema of the object (regular expression is allowed) + * + * @return the value + */ + public String getSchema() { + return schema; + } + + /** Name of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * Name of the object (regular expression is allowed) + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** + * Type of object to exclude. If not specified, matching owners and object names of type TABLE + * would be excluded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Type of object to exclude. If not specified, matching owners and object names of type TABLE + * would be excluded. + * + * @return the value + */ + public String getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDatabaseObject("); + sb.append("super=").append(super.toString()); + sb.append("schema=").append(String.valueOf(this.schema)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDatabaseObject)) { + return false; + } + + MySqlDatabaseObject other = (MySqlDatabaseObject) o; + return java.util.Objects.equals(this.schema, other.schema) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.type, other.type) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.schema == null ? 43 : this.schema.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectSummary.java new file mode 100644 index 00000000000..2170fdb8abb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlDatabaseObjectSummary.java @@ -0,0 +1,250 @@ +/** + * 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.databasemigration.model; + +/** + * Database objects to include or exclude from migration
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlDatabaseObjectSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlDatabaseObjectSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"objectStatus", "schema", "objectName", "type"}) + public MySqlDatabaseObjectSummary( + ObjectStatus objectStatus, String schema, String objectName, String type) { + super(); + this.objectStatus = objectStatus; + this.schema = schema; + this.objectName = objectName; + this.type = type; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Object status. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private ObjectStatus objectStatus; + + /** + * Object status. + * + * @param objectStatus the value to set + * @return this builder + */ + public Builder objectStatus(ObjectStatus objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } + /** Schema of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("schema") + private String schema; + + /** + * Schema of the object (regular expression is allowed) + * + * @param schema the value to set + * @return this builder + */ + public Builder schema(String schema) { + this.schema = schema; + this.__explicitlySet__.add("schema"); + return this; + } + /** Name of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private String objectName; + + /** + * Name of the object (regular expression is allowed) + * + * @param objectName the value to set + * @return this builder + */ + public Builder objectName(String objectName) { + this.objectName = objectName; + this.__explicitlySet__.add("objectName"); + return this; + } + /** + * Type of object to exclude. If not specified, matching owners and object names of type + * TABLE would be excluded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private String type; + + /** + * Type of object to exclude. If not specified, matching owners and object names of type + * TABLE would be excluded. + * + * @param type the value to set + * @return this builder + */ + public Builder type(String type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlDatabaseObjectSummary build() { + MySqlDatabaseObjectSummary model = + new MySqlDatabaseObjectSummary( + this.objectStatus, this.schema, this.objectName, this.type); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlDatabaseObjectSummary model) { + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } + if (model.wasPropertyExplicitlySet("schema")) { + this.schema(model.getSchema()); + } + if (model.wasPropertyExplicitlySet("objectName")) { + this.objectName(model.getObjectName()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** Object status. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private final ObjectStatus objectStatus; + + /** + * Object status. + * + * @return the value + */ + public ObjectStatus getObjectStatus() { + return objectStatus; + } + + /** Schema of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("schema") + private final String schema; + + /** + * Schema of the object (regular expression is allowed) + * + * @return the value + */ + public String getSchema() { + return schema; + } + + /** Name of the object (regular expression is allowed) */ + @com.fasterxml.jackson.annotation.JsonProperty("objectName") + private final String objectName; + + /** + * Name of the object (regular expression is allowed) + * + * @return the value + */ + public String getObjectName() { + return objectName; + } + + /** + * Type of object to exclude. If not specified, matching owners and object names of type TABLE + * would be excluded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("type") + private final String type; + + /** + * Type of object to exclude. If not specified, matching owners and object names of type TABLE + * would be excluded. + * + * @return the value + */ + public String getType() { + return type; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlDatabaseObjectSummary("); + sb.append("super=").append(super.toString()); + sb.append("objectStatus=").append(String.valueOf(this.objectStatus)); + sb.append(", schema=").append(String.valueOf(this.schema)); + sb.append(", objectName=").append(String.valueOf(this.objectName)); + sb.append(", type=").append(String.valueOf(this.type)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlDatabaseObjectSummary)) { + return false; + } + + MySqlDatabaseObjectSummary other = (MySqlDatabaseObjectSummary) o; + return java.util.Objects.equals(this.objectStatus, other.objectStatus) + && java.util.Objects.equals(this.schema, other.schema) + && java.util.Objects.equals(this.objectName, other.objectName) + && java.util.Objects.equals(this.type, other.type) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.objectStatus == null ? 43 : this.objectStatus.hashCode()); + result = (result * PRIME) + (this.schema == null ? 43 : this.schema.hashCode()); + result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); + result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlGgsDeploymentDetails.java similarity index 76% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlGgsDeploymentDetails.java index 42c633a9acc..1c62a17ffa0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/GoldenGateSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlGgsDeploymentDetails.java @@ -15,18 +15,19 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = GoldenGateSettings.Builder.class) + builder = MySqlGgsDeploymentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class GoldenGateSettings +public final class MySqlGgsDeploymentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"extract", "replicat", "acceptableLag"}) - public GoldenGateSettings(Extract extract, Replicat replicat, Integer acceptableLag) { + @java.beans.ConstructorProperties({"ggsDeployment", "replicat", "acceptableLag"}) + public MySqlGgsDeploymentDetails( + GgsDeployment ggsDeployment, Replicat replicat, Integer acceptableLag) { super(); - this.extract = extract; + this.ggsDeployment = ggsDeployment; this.replicat = replicat; this.acceptableLag = acceptableLag; } @@ -34,12 +35,12 @@ public GoldenGateSettings(Extract extract, Replicat replicat, Integer acceptable @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - @com.fasterxml.jackson.annotation.JsonProperty("extract") - private Extract extract; + @com.fasterxml.jackson.annotation.JsonProperty("ggsDeployment") + private GgsDeployment ggsDeployment; - public Builder extract(Extract extract) { - this.extract = extract; - this.__explicitlySet__.add("extract"); + public Builder ggsDeployment(GgsDeployment ggsDeployment) { + this.ggsDeployment = ggsDeployment; + this.__explicitlySet__.add("ggsDeployment"); return this; } @@ -74,9 +75,10 @@ public Builder acceptableLag(Integer acceptableLag) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public GoldenGateSettings build() { - GoldenGateSettings model = - new GoldenGateSettings(this.extract, this.replicat, this.acceptableLag); + public MySqlGgsDeploymentDetails build() { + MySqlGgsDeploymentDetails model = + new MySqlGgsDeploymentDetails( + this.ggsDeployment, this.replicat, this.acceptableLag); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -84,9 +86,9 @@ public GoldenGateSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(GoldenGateSettings model) { - if (model.wasPropertyExplicitlySet("extract")) { - this.extract(model.getExtract()); + public Builder copy(MySqlGgsDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("ggsDeployment")) { + this.ggsDeployment(model.getGgsDeployment()); } if (model.wasPropertyExplicitlySet("replicat")) { this.replicat(model.getReplicat()); @@ -107,11 +109,11 @@ public Builder toBuilder() { return new Builder().copy(this); } - @com.fasterxml.jackson.annotation.JsonProperty("extract") - private final Extract extract; + @com.fasterxml.jackson.annotation.JsonProperty("ggsDeployment") + private final GgsDeployment ggsDeployment; - public Extract getExtract() { - return extract; + public GgsDeployment getGgsDeployment() { + return ggsDeployment; } @com.fasterxml.jackson.annotation.JsonProperty("replicat") @@ -151,9 +153,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("GoldenGateSettings("); + sb.append("MySqlGgsDeploymentDetails("); sb.append("super=").append(super.toString()); - sb.append("extract=").append(String.valueOf(this.extract)); + sb.append("ggsDeployment=").append(String.valueOf(this.ggsDeployment)); sb.append(", replicat=").append(String.valueOf(this.replicat)); sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); sb.append(")"); @@ -165,12 +167,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof GoldenGateSettings)) { + if (!(o instanceof MySqlGgsDeploymentDetails)) { return false; } - GoldenGateSettings other = (GoldenGateSettings) o; - return java.util.Objects.equals(this.extract, other.extract) + MySqlGgsDeploymentDetails other = (MySqlGgsDeploymentDetails) o; + return java.util.Objects.equals(this.ggsDeployment, other.ggsDeployment) && java.util.Objects.equals(this.replicat, other.replicat) && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) && super.equals(other); @@ -180,7 +182,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.extract == null ? 43 : this.extract.hashCode()); + result = + (result * PRIME) + + (this.ggsDeployment == null ? 43 : this.ggsDeployment.hashCode()); result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); result = (result * PRIME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlInitialLoadSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlInitialLoadSettings.java new file mode 100644 index 00000000000..8682cb015fa --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlInitialLoadSettings.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.databasemigration.model; + +/** + * Optional dump settings
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlInitialLoadSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlInitialLoadSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isConsistent", + "isTzUtc", + "compatibility", + "primaryKeyCompatibility", + "isIgnoreExistingObjects", + "handleGrantErrors", + "jobMode" + }) + public MySqlInitialLoadSettings( + Boolean isConsistent, + Boolean isTzUtc, + java.util.List compatibility, + PrimaryKeyCompatibility primaryKeyCompatibility, + Boolean isIgnoreExistingObjects, + HandleGrantErrors handleGrantErrors, + JobModeMySql jobMode) { + super(); + this.isConsistent = isConsistent; + this.isTzUtc = isTzUtc; + this.compatibility = compatibility; + this.primaryKeyCompatibility = primaryKeyCompatibility; + this.isIgnoreExistingObjects = isIgnoreExistingObjects; + this.handleGrantErrors = handleGrantErrors; + this.jobMode = jobMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isConsistent") + private Boolean isConsistent; + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + * + * @param isConsistent the value to set + * @return this builder + */ + public Builder isConsistent(Boolean isConsistent) { + this.isConsistent = isConsistent; + this.__explicitlySet__.add("isConsistent"); + return this; + } + /** Include a statement at the start of the dump to set the time zone to UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("isTzUtc") + private Boolean isTzUtc; + + /** + * Include a statement at the start of the dump to set the time zone to UTC. + * + * @param isTzUtc the value to set + * @return this builder + */ + public Builder isTzUtc(Boolean isTzUtc) { + this.isTzUtc = isTzUtc; + this.__explicitlySet__.add("isTzUtc"); + return this; + } + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all + * tables in the dump output, altering the dump files as necessary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compatibility") + private java.util.List compatibility; + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all + * tables in the dump output, altering the dump files as necessary. + * + * @param compatibility the value to set + * @return this builder + */ + public Builder compatibility(java.util.List compatibility) { + this.compatibility = compatibility; + this.__explicitlySet__.add("compatibility"); + return this; + } + /** Primary key compatibility option */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryKeyCompatibility") + private PrimaryKeyCompatibility primaryKeyCompatibility; + + /** + * Primary key compatibility option + * + * @param primaryKeyCompatibility the value to set + * @return this builder + */ + public Builder primaryKeyCompatibility(PrimaryKeyCompatibility primaryKeyCompatibility) { + this.primaryKeyCompatibility = primaryKeyCompatibility; + this.__explicitlySet__.add("primaryKeyCompatibility"); + return this; + } + /** + * Import the dump even if it contains objects that already exist in the target schema in + * the MySQL instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreExistingObjects") + private Boolean isIgnoreExistingObjects; + + /** + * Import the dump even if it contains objects that already exist in the target schema in + * the MySQL instance. + * + * @param isIgnoreExistingObjects the value to set + * @return this builder + */ + public Builder isIgnoreExistingObjects(Boolean isIgnoreExistingObjects) { + this.isIgnoreExistingObjects = isIgnoreExistingObjects; + this.__explicitlySet__.add("isIgnoreExistingObjects"); + return this; + } + /** The action taken in the event of errors related to GRANT or REVOKE errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("handleGrantErrors") + private HandleGrantErrors handleGrantErrors; + + /** + * The action taken in the event of errors related to GRANT or REVOKE errors. + * + * @param handleGrantErrors the value to set + * @return this builder + */ + public Builder handleGrantErrors(HandleGrantErrors handleGrantErrors) { + this.handleGrantErrors = handleGrantErrors; + this.__explicitlySet__.add("handleGrantErrors"); + return this; + } + /** MySql Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private JobModeMySql jobMode; + + /** + * MySql Job Mode + * + * @param jobMode the value to set + * @return this builder + */ + public Builder jobMode(JobModeMySql jobMode) { + this.jobMode = jobMode; + this.__explicitlySet__.add("jobMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlInitialLoadSettings build() { + MySqlInitialLoadSettings model = + new MySqlInitialLoadSettings( + this.isConsistent, + this.isTzUtc, + this.compatibility, + this.primaryKeyCompatibility, + this.isIgnoreExistingObjects, + this.handleGrantErrors, + this.jobMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlInitialLoadSettings model) { + if (model.wasPropertyExplicitlySet("isConsistent")) { + this.isConsistent(model.getIsConsistent()); + } + if (model.wasPropertyExplicitlySet("isTzUtc")) { + this.isTzUtc(model.getIsTzUtc()); + } + if (model.wasPropertyExplicitlySet("compatibility")) { + this.compatibility(model.getCompatibility()); + } + if (model.wasPropertyExplicitlySet("primaryKeyCompatibility")) { + this.primaryKeyCompatibility(model.getPrimaryKeyCompatibility()); + } + if (model.wasPropertyExplicitlySet("isIgnoreExistingObjects")) { + this.isIgnoreExistingObjects(model.getIsIgnoreExistingObjects()); + } + if (model.wasPropertyExplicitlySet("handleGrantErrors")) { + this.handleGrantErrors(model.getHandleGrantErrors()); + } + if (model.wasPropertyExplicitlySet("jobMode")) { + this.jobMode(model.getJobMode()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isConsistent") + private final Boolean isConsistent; + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + * + * @return the value + */ + public Boolean getIsConsistent() { + return isConsistent; + } + + /** Include a statement at the start of the dump to set the time zone to UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("isTzUtc") + private final Boolean isTzUtc; + + /** + * Include a statement at the start of the dump to set the time zone to UTC. + * + * @return the value + */ + public Boolean getIsTzUtc() { + return isTzUtc; + } + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all tables + * in the dump output, altering the dump files as necessary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compatibility") + private final java.util.List compatibility; + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all tables + * in the dump output, altering the dump files as necessary. + * + * @return the value + */ + public java.util.List getCompatibility() { + return compatibility; + } + + /** Primary key compatibility option */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryKeyCompatibility") + private final PrimaryKeyCompatibility primaryKeyCompatibility; + + /** + * Primary key compatibility option + * + * @return the value + */ + public PrimaryKeyCompatibility getPrimaryKeyCompatibility() { + return primaryKeyCompatibility; + } + + /** + * Import the dump even if it contains objects that already exist in the target schema in the + * MySQL instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreExistingObjects") + private final Boolean isIgnoreExistingObjects; + + /** + * Import the dump even if it contains objects that already exist in the target schema in the + * MySQL instance. + * + * @return the value + */ + public Boolean getIsIgnoreExistingObjects() { + return isIgnoreExistingObjects; + } + + /** The action taken in the event of errors related to GRANT or REVOKE errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("handleGrantErrors") + private final HandleGrantErrors handleGrantErrors; + + /** + * The action taken in the event of errors related to GRANT or REVOKE errors. + * + * @return the value + */ + public HandleGrantErrors getHandleGrantErrors() { + return handleGrantErrors; + } + + /** MySql Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private final JobModeMySql jobMode; + + /** + * MySql Job Mode + * + * @return the value + */ + public JobModeMySql getJobMode() { + return jobMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlInitialLoadSettings("); + sb.append("super=").append(super.toString()); + sb.append("isConsistent=").append(String.valueOf(this.isConsistent)); + sb.append(", isTzUtc=").append(String.valueOf(this.isTzUtc)); + sb.append(", compatibility=").append(String.valueOf(this.compatibility)); + sb.append(", primaryKeyCompatibility=") + .append(String.valueOf(this.primaryKeyCompatibility)); + sb.append(", isIgnoreExistingObjects=") + .append(String.valueOf(this.isIgnoreExistingObjects)); + sb.append(", handleGrantErrors=").append(String.valueOf(this.handleGrantErrors)); + sb.append(", jobMode=").append(String.valueOf(this.jobMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlInitialLoadSettings)) { + return false; + } + + MySqlInitialLoadSettings other = (MySqlInitialLoadSettings) o; + return java.util.Objects.equals(this.isConsistent, other.isConsistent) + && java.util.Objects.equals(this.isTzUtc, other.isTzUtc) + && java.util.Objects.equals(this.compatibility, other.compatibility) + && java.util.Objects.equals( + this.primaryKeyCompatibility, other.primaryKeyCompatibility) + && java.util.Objects.equals( + this.isIgnoreExistingObjects, other.isIgnoreExistingObjects) + && java.util.Objects.equals(this.handleGrantErrors, other.handleGrantErrors) + && java.util.Objects.equals(this.jobMode, other.jobMode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isConsistent == null ? 43 : this.isConsistent.hashCode()); + result = (result * PRIME) + (this.isTzUtc == null ? 43 : this.isTzUtc.hashCode()); + result = + (result * PRIME) + + (this.compatibility == null ? 43 : this.compatibility.hashCode()); + result = + (result * PRIME) + + (this.primaryKeyCompatibility == null + ? 43 + : this.primaryKeyCompatibility.hashCode()); + result = + (result * PRIME) + + (this.isIgnoreExistingObjects == null + ? 43 + : this.isIgnoreExistingObjects.hashCode()); + result = + (result * PRIME) + + (this.handleGrantErrors == null ? 43 : this.handleGrantErrors.hashCode()); + result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigration.java new file mode 100644 index 00000000000..8a60700c5b5 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigration.java @@ -0,0 +1,493 @@ +/** + * 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.databasemigration.model; + +/** + * MySQL Migration resource
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MySqlMigration.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlMigration extends Migration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("waitAfter") + private OdmsJobPhases waitAfter; + + public Builder waitAfter(OdmsJobPhases waitAfter) { + this.waitAfter = waitAfter; + this.__explicitlySet__.add("waitAfter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") + private String executingJobId; + + public Builder executingJobId(String executingJobId) { + this.executingJobId = executingJobId; + this.__explicitlySet__.add("executingJobId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") + private java.util.Date timeLastMigration; + + public Builder timeLastMigration(java.util.Date timeLastMigration) { + this.timeLastMigration = timeLastMigration; + this.__explicitlySet__.add("timeLastMigration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MigrationLifecycleStates lifecycleState; + + public Builder lifecycleState(MigrationLifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private MigrationStatus lifecycleDetails; + + public Builder lifecycleDetails(MigrationStatus lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private MySqlDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + MySqlDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private MySqlInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(MySqlInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private MySqlAdvisorSettings advisorSettings; + + public Builder advisorSettings(MySqlAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private GoldenGateHubDetails hubDetails; + + public Builder hubDetails(GoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private MySqlGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(MySqlGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlMigration build() { + MySqlMigration model = + new MySqlMigration( + this.id, + this.description, + this.displayName, + this.compartmentId, + this.type, + this.waitAfter, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.executingJobId, + this.timeCreated, + this.timeUpdated, + this.timeLastMigration, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlMigration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("waitAfter")) { + this.waitAfter(model.getWaitAfter()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("executingJobId")) { + this.executingJobId(model.getExecutingJobId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastMigration")) { + this.timeLastMigration(model.getTimeLastMigration()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlMigration( + String id, + String description, + String displayName, + String compartmentId, + MigrationTypes type, + OdmsJobPhases waitAfter, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + String executingJobId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastMigration, + MigrationLifecycleStates lifecycleState, + MigrationStatus lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + MySqlDataTransferMediumDetails dataTransferMediumDetails, + MySqlInitialLoadSettings initialLoadSettings, + MySqlAdvisorSettings advisorSettings, + GoldenGateHubDetails hubDetails, + MySqlGgsDeploymentDetails ggsDetails) { + super( + id, + description, + displayName, + compartmentId, + type, + waitAfter, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + executingJobId, + timeCreated, + timeUpdated, + timeLastMigration, + lifecycleState, + lifecycleDetails, + freeformTags, + definedTags, + systemTags); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final MySqlDataTransferMediumDetails dataTransferMediumDetails; + + public MySqlDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final MySqlInitialLoadSettings initialLoadSettings; + + public MySqlInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final MySqlAdvisorSettings advisorSettings; + + public MySqlAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final GoldenGateHubDetails hubDetails; + + public GoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final MySqlGgsDeploymentDetails ggsDetails; + + public MySqlGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlMigration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlMigration)) { + return false; + } + + MySqlMigration other = (MySqlMigration) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationObjectCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationObjectCollection.java new file mode 100644 index 00000000000..0e344e7bdd7 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationObjectCollection.java @@ -0,0 +1,189 @@ +/** + * 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.databasemigration.model; + +/** + * Lists the database objects that participate in this migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlMigrationObjectCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlMigrationObjectCollection extends MigrationObjectCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** An array of database objects that are either included or excluded from the migration. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * An array of database objects that are either included or excluded from the migration. + * + * @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; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlMigrationObjectCollection build() { + MySqlMigrationObjectCollection model = + new MySqlMigrationObjectCollection(this.items, this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlMigrationObjectCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlMigrationObjectCollection( + java.util.List items, String bulkIncludeExcludeData) { + super(); + this.items = items; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + /** An array of database objects that are either included or excluded from the migration. */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * An array of database objects that are either included or excluded from the migration. + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlMigrationObjectCollection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", items=").append(String.valueOf(this.items)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MySqlMigrationObjectCollection)) { + return false; + } + + MySqlMigrationObjectCollection other = (MySqlMigrationObjectCollection) o; + return java.util.Objects.equals(this.items, other.items) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationSummary.java new file mode 100644 index 00000000000..7507a18bf52 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlMigrationSummary.java @@ -0,0 +1,326 @@ +/** + * 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.databasemigration.model; + +/** + * MySQL Migration Summary
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MySqlMigrationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class MySqlMigrationSummary extends MigrationSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") + private String executingJobId; + + public Builder executingJobId(String executingJobId) { + this.executingJobId = executingJobId; + this.__explicitlySet__.add("executingJobId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") + private java.util.Date timeLastMigration; + + public Builder timeLastMigration(java.util.Date timeLastMigration) { + this.timeLastMigration = timeLastMigration; + this.__explicitlySet__.add("timeLastMigration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MigrationLifecycleStates lifecycleState; + + public Builder lifecycleState(MigrationLifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private MigrationStatus lifecycleDetails; + + public Builder lifecycleDetails(MigrationStatus lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MySqlMigrationSummary build() { + MySqlMigrationSummary model = + new MySqlMigrationSummary( + this.id, + this.displayName, + this.compartmentId, + this.type, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.executingJobId, + this.timeCreated, + this.timeUpdated, + this.timeLastMigration, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MySqlMigrationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("executingJobId")) { + this.executingJobId(model.getExecutingJobId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastMigration")) { + this.timeLastMigration(model.getTimeLastMigration()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MySqlMigrationSummary( + String id, + String displayName, + String compartmentId, + MigrationTypes type, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + String executingJobId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastMigration, + MigrationLifecycleStates lifecycleState, + MigrationStatus lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags) { + super( + id, + displayName, + compartmentId, + type, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + executingJobId, + timeCreated, + timeUpdated, + timeLastMigration, + lifecycleState, + lifecycleDetails, + freeformTags, + definedTags, + systemTags); + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MySqlMigrationSummary("); + 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 MySqlMigrationSummary)) { + return false; + } + + MySqlMigrationSummary other = (MySqlMigrationSummary) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStorageDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlObjectStorageDataTransferMediumDetails.java similarity index 82% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStorageDataTransferMediumDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlObjectStorageDataTransferMediumDetails.java index 07f2f3c6cab..cede62dd87f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStorageDataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MySqlObjectStorageDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
+ * OCI Object Storage bucket will be used to store dump files for the migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,16 +15,17 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ObjectStorageDataTransferMediumDetails.Builder.class) + builder = MySqlObjectStorageDataTransferMediumDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ObjectStorageDataTransferMediumDetails extends DataTransferMediumDetailsV2 { +public final class MySqlObjectStorageDataTransferMediumDetails + extends MySqlDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -40,9 +41,9 @@ public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public ObjectStorageDataTransferMediumDetails build() { - ObjectStorageDataTransferMediumDetails model = - new ObjectStorageDataTransferMediumDetails(this.objectStorageBucket); + public MySqlObjectStorageDataTransferMediumDetails build() { + MySqlObjectStorageDataTransferMediumDetails model = + new MySqlObjectStorageDataTransferMediumDetails(this.objectStorageBucket); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -50,7 +51,7 @@ public ObjectStorageDataTransferMediumDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ObjectStorageDataTransferMediumDetails model) { + public Builder copy(MySqlObjectStorageDataTransferMediumDetails model) { if (model.wasPropertyExplicitlySet("objectStorageBucket")) { this.objectStorageBucket(model.getObjectStorageBucket()); } @@ -68,7 +69,7 @@ public Builder toBuilder() { } @Deprecated - public ObjectStorageDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket) { + public MySqlObjectStorageDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket) { super(); this.objectStorageBucket = objectStorageBucket; } @@ -93,7 +94,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ObjectStorageDataTransferMediumDetails("); + sb.append("MySqlObjectStorageDataTransferMediumDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); sb.append(")"); @@ -105,11 +106,12 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ObjectStorageDataTransferMediumDetails)) { + if (!(o instanceof MySqlObjectStorageDataTransferMediumDetails)) { return false; } - ObjectStorageDataTransferMediumDetails other = (ObjectStorageDataTransferMediumDetails) o; + MySqlObjectStorageDataTransferMediumDetails other = + (MySqlObjectStorageDataTransferMediumDetails) o; return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) && super.equals(other); } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnection.java new file mode 100644 index 00000000000..7863015e27b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnection.java @@ -0,0 +1,891 @@ +/** + * 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.databasemigration.model; + +/** + * Represents the metadata of a MySQL Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = MysqlConnection.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 MysqlConnection extends Connection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private java.util.List ingressIps; + + public Builder ingressIps(java.util.List ingressIps) { + this.ingressIps = ingressIps; + this.__explicitlySet__.add("ingressIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private String replicationUsername; + + public Builder replicationUsername(String replicationUsername) { + this.replicationUsername = replicationUsername; + this.__explicitlySet__.add("replicationUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private String replicationPassword; + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = replicationPassword; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private String secretId; + + public Builder secretId(String secretId) { + this.secretId = secretId; + this.__explicitlySet__.add("secretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId") + private String privateEndpointId; + + public Builder privateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; + this.__explicitlySet__.add("privateEndpointId"); + return this; + } + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private TechnologyType technologyType; + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + * + * @param technologyType the value to set + * @return this builder + */ + public Builder technologyType(TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The IP Address of the host. + * + * @param host the value to set + * @return this builder + */ + public Builder host(String host) { + this.host = host; + this.__explicitlySet__.add("host"); + return this; + } + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port to be used for the connection. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database being referenced. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** Security Protocol to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private SecurityProtocol securityProtocol; + + /** + * Security Protocol to be used for the connection. + * + * @param securityProtocol the value to set + * @return this builder + */ + public Builder securityProtocol(SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + /** SSL mode to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private SslMode sslMode; + + /** + * SSL mode to be used for the connection. + * + * @param sslMode the value to set + * @return this builder + */ + public Builder sslMode(SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @param additionalAttributes the value to set + * @return this builder + */ + public Builder additionalAttributes(java.util.List additionalAttributes) { + this.additionalAttributes = additionalAttributes; + this.__explicitlySet__.add("additionalAttributes"); + return this; + } + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MysqlConnection build() { + MysqlConnection model = + new MysqlConnection( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.vaultId, + this.keyId, + this.subnetId, + this.ingressIps, + this.nsgIds, + this.username, + this.password, + this.replicationUsername, + this.replicationPassword, + this.secretId, + this.privateEndpointId, + this.technologyType, + this.host, + this.port, + this.databaseName, + this.securityProtocol, + this.sslMode, + this.additionalAttributes, + this.dbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MysqlConnection model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("replicationUsername")) { + this.replicationUsername(model.getReplicationUsername()); + } + if (model.wasPropertyExplicitlySet("replicationPassword")) { + this.replicationPassword(model.getReplicationPassword()); + } + if (model.wasPropertyExplicitlySet("secretId")) { + this.secretId(model.getSecretId()); + } + if (model.wasPropertyExplicitlySet("privateEndpointId")) { + this.privateEndpointId(model.getPrivateEndpointId()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MysqlConnection( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + String secretId, + String privateEndpointId, + TechnologyType technologyType, + String host, + Integer port, + String databaseName, + SecurityProtocol securityProtocol, + SslMode sslMode, + java.util.List additionalAttributes, + String dbSystemId) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + vaultId, + keyId, + subnetId, + ingressIps, + nsgIds, + username, + password, + replicationUsername, + replicationPassword, + secretId, + privateEndpointId); + this.technologyType = technologyType; + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + public enum TechnologyType implements com.oracle.bmc.http.internal.BmcEnum { + AmazonAuroraMysql("AMAZON_AURORA_MYSQL"), + AmazonRdsMysql("AMAZON_RDS_MYSQL"), + AzureMysql("AZURE_MYSQL"), + GoogleCloudSqlMysql("GOOGLE_CLOUD_SQL_MYSQL"), + MysqlServer("MYSQL_SERVER"), + OciMysql("OCI_MYSQL"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TechnologyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TechnologyType v : TechnologyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TechnologyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TechnologyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TechnologyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final TechnologyType technologyType; + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + * + * @return the value + */ + public TechnologyType getTechnologyType() { + return technologyType; + } + + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The IP Address of the host. + * + * @return the value + */ + public String getHost() { + return host; + } + + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port to be used for the connection. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database being referenced. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** Security Protocol to be used for the connection. */ + public enum SecurityProtocol implements com.oracle.bmc.http.internal.BmcEnum { + Plain("PLAIN"), + Tls("TLS"), + Mtls("MTLS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SecurityProtocol.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SecurityProtocol v : SecurityProtocol.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SecurityProtocol(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SecurityProtocol create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SecurityProtocol', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** Security Protocol to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final SecurityProtocol securityProtocol; + + /** + * Security Protocol to be used for the connection. + * + * @return the value + */ + public SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + /** SSL mode to be used for the connection. */ + public enum SslMode implements com.oracle.bmc.http.internal.BmcEnum { + Disabled("DISABLED"), + Preferred("PREFERRED"), + Required("REQUIRED"), + VerifyCa("VERIFY_CA"), + VerifyIdentity("VERIFY_IDENTITY"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(SslMode.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (SslMode v : SslMode.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + SslMode(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static SslMode create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'SslMode', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** SSL mode to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final SslMode sslMode; + + /** + * SSL mode to be used for the connection. + * + * @return the value + */ + public SslMode getSslMode() { + return sslMode; + } + + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @return the value + */ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MysqlConnection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MysqlConnection)) { + return false; + } + + MysqlConnection other = (MysqlConnection) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnectionSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnectionSummary.java new file mode 100644 index 00000000000..1fcb47b791a --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MysqlConnectionSummary.java @@ -0,0 +1,653 @@ +/** + * 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.databasemigration.model; + +/** + * Summary of the MySQL Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = MysqlConnectionSummary.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 MysqlConnectionSummary extends ConnectionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Connection.LifecycleState lifecycleState; + + public Builder lifecycleState(Connection.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private java.util.List ingressIps; + + public Builder ingressIps(java.util.List ingressIps) { + this.ingressIps = ingressIps; + this.__explicitlySet__.add("ingressIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private MysqlConnection.TechnologyType technologyType; + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + * + * @param technologyType the value to set + * @return this builder + */ + public Builder technologyType(MysqlConnection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The IP Address of the host. + * + * @param host the value to set + * @return this builder + */ + public Builder host(String host) { + this.host = host; + this.__explicitlySet__.add("host"); + return this; + } + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port to be used for the connection. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database being referenced. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** Security Type for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private MysqlConnection.SecurityProtocol securityProtocol; + + /** + * Security Type for MySQL. + * + * @param securityProtocol the value to set + * @return this builder + */ + public Builder securityProtocol(MysqlConnection.SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + /** SSL modes for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private MysqlConnection.SslMode sslMode; + + /** + * SSL modes for MySQL. + * + * @param sslMode the value to set + * @return this builder + */ + public Builder sslMode(MysqlConnection.SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @param additionalAttributes the value to set + * @return this builder + */ + public Builder additionalAttributes(java.util.List additionalAttributes) { + this.additionalAttributes = additionalAttributes; + this.__explicitlySet__.add("additionalAttributes"); + return this; + } + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public MysqlConnectionSummary build() { + MysqlConnectionSummary model = + new MysqlConnectionSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.vaultId, + this.keyId, + this.subnetId, + this.ingressIps, + this.nsgIds, + this.technologyType, + this.host, + this.port, + this.databaseName, + this.securityProtocol, + this.sslMode, + this.additionalAttributes, + this.dbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(MysqlConnectionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public MysqlConnectionSummary( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Connection.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, + java.util.List nsgIds, + MysqlConnection.TechnologyType technologyType, + String host, + Integer port, + String databaseName, + MysqlConnection.SecurityProtocol securityProtocol, + MysqlConnection.SslMode sslMode, + java.util.List additionalAttributes, + String dbSystemId) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + vaultId, + keyId, + subnetId, + ingressIps, + nsgIds); + this.technologyType = technologyType; + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final MysqlConnection.TechnologyType technologyType; + + /** + * The type of MySQL source or target connection. Example: OCI_MYSQL represents OCI MySQL + * HeatWave Database Service + * + * @return the value + */ + public MysqlConnection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The IP Address of the host. + * + * @return the value + */ + public String getHost() { + return host; + } + + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port to be used for the connection. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database being referenced. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** Security Type for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final MysqlConnection.SecurityProtocol securityProtocol; + + /** + * Security Type for MySQL. + * + * @return the value + */ + public MysqlConnection.SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + /** SSL modes for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final MysqlConnection.SslMode sslMode; + + /** + * SSL modes for MySQL. + * + * @return the value + */ + public MysqlConnection.SslMode getSslMode() { + return sslMode; + } + + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @return the value + */ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("MysqlConnectionSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof MysqlConnectionSummary)) { + return false; + } + + MysqlConnectionSummary other = (MysqlConnectionSummary) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseLinkDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NameValuePair.java similarity index 63% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseLinkDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NameValuePair.java index bf306e0a9b7..671b74b6d11 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseLinkDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NameValuePair.java @@ -5,8 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional details for creating a network database link from OCI database to on-premise database. - *
+ * A name-value pair representing an attribute entry usable in a list of attributes.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,33 +15,27 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DatabaseLinkDetails.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = NameValuePair.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DatabaseLinkDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { +public final class NameValuePair extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({"name", "walletBucket"}) - public DatabaseLinkDetails(String name, ObjectStoreBucket walletBucket) { + @java.beans.ConstructorProperties({"name", "value"}) + public NameValuePair(String name, String value) { super(); this.name = name; - this.walletBucket = walletBucket; + this.value = value; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if - * the link does not already exist. - */ + /** The name of the property entry. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if - * the link does not already exist. + * The name of the property entry. * * @param name the value to set * @return this builder @@ -52,21 +45,27 @@ public Builder name(String name) { this.__explicitlySet__.add("name"); return this; } + /** The value of the property entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private String value; - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private ObjectStoreBucket walletBucket; - - public Builder walletBucket(ObjectStoreBucket walletBucket) { - this.walletBucket = walletBucket; - this.__explicitlySet__.add("walletBucket"); + /** + * The value of the property entry. + * + * @param value the value to set + * @return this builder + */ + public Builder value(String value) { + this.value = value; + this.__explicitlySet__.add("value"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DatabaseLinkDetails build() { - DatabaseLinkDetails model = new DatabaseLinkDetails(this.name, this.walletBucket); + public NameValuePair build() { + NameValuePair model = new NameValuePair(this.name, this.value); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -74,12 +73,12 @@ public DatabaseLinkDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DatabaseLinkDetails model) { + public Builder copy(NameValuePair model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } - if (model.wasPropertyExplicitlySet("walletBucket")) { - this.walletBucket(model.getWalletBucket()); + if (model.wasPropertyExplicitlySet("value")) { + this.value(model.getValue()); } return this; } @@ -94,16 +93,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if the - * link does not already exist. - */ + /** The name of the property entry. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; /** - * Name of database link from OCI database to on-premise database. ODMS will create link, if the - * link does not already exist. + * The name of the property entry. * * @return the value */ @@ -111,11 +106,17 @@ public String getName() { return name; } - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private final ObjectStoreBucket walletBucket; + /** The value of the property entry. */ + @com.fasterxml.jackson.annotation.JsonProperty("value") + private final String value; - public ObjectStoreBucket getWalletBucket() { - return walletBucket; + /** + * The value of the property entry. + * + * @return the value + */ + public String getValue() { + return value; } @Override @@ -131,10 +132,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DatabaseLinkDetails("); + sb.append("NameValuePair("); sb.append("super=").append(super.toString()); sb.append("name=").append(String.valueOf(this.name)); - sb.append(", walletBucket=").append(String.valueOf(this.walletBucket)); + sb.append(", value=").append(String.valueOf(this.value)); sb.append(")"); return sb.toString(); } @@ -144,13 +145,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DatabaseLinkDetails)) { + if (!(o instanceof NameValuePair)) { return false; } - DatabaseLinkDetails other = (DatabaseLinkDetails) o; + NameValuePair other = (NameValuePair) o; return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.walletBucket, other.walletBucket) + && java.util.Objects.equals(this.value, other.value) && super.equals(other); } @@ -159,7 +160,7 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.walletBucket == null ? 43 : this.walletBucket.hashCode()); + result = (result * PRIME) + (this.value == null ? 43 : this.value.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBAutoCreateTablespaceDetails.java index e79c272632a..d34ddb552af 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBAutoCreateTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NonADBAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBRemapTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBRemapTablespaceDetails.java index a6c1336d9b7..410ea8c9b70 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBRemapTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/NonADBRemapTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = NonADBRemapTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStatus.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStatus.java index b8418bd50f5..5753c07120f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStatus.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStatus.java @@ -4,8 +4,8 @@ */ package com.oracle.bmc.databasemigration.model; -/** exclude/include/ status. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +/** exclude/include status. */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ObjectStatus implements com.oracle.bmc.http.internal.BmcEnum { Exclude("EXCLUDE"), Include("INCLUDE"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStoreBucket.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStoreBucket.java index 11c73d29886..56dd054c559 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStoreBucket.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ObjectStoreBucket.java @@ -17,7 +17,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ObjectStoreBucket.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OciCliDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OciCliDumpTransferDetails.java index 2ecdb14d7e3..98eb62dc1a6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OciCliDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OciCliDumpTransferDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = OciCliDumpTransferDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsJobPhases.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsJobPhases.java index 1f249f82959..de9cc83b26a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsJobPhases.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsJobPhases.java @@ -5,23 +5,25 @@ package com.oracle.bmc.databasemigration.model; /** Possible ODMS Job Phases. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OdmsJobPhases implements com.oracle.bmc.http.internal.BmcEnum { OdmsValidateTgt("ODMS_VALIDATE_TGT"), OdmsValidateSrc("ODMS_VALIDATE_SRC"), OdmsValidatePremigrationAdvisor("ODMS_VALIDATE_PREMIGRATION_ADVISOR"), OdmsValidateGgHub("ODMS_VALIDATE_GG_HUB"), - OdmsValidateGgService("ODMS_VALIDATE_GG_SERVICE"), OdmsValidateDatapumpSettings("ODMS_VALIDATE_DATAPUMP_SETTINGS"), OdmsValidateDatapumpSettingsSrc("ODMS_VALIDATE_DATAPUMP_SETTINGS_SRC"), OdmsValidateDatapumpSettingsTgt("ODMS_VALIDATE_DATAPUMP_SETTINGS_TGT"), OdmsValidateDatapumpSrc("ODMS_VALIDATE_DATAPUMP_SRC"), OdmsValidateDatapumpEstimateSrc("ODMS_VALIDATE_DATAPUMP_ESTIMATE_SRC"), - OdmsInitializeGgs("ODMS_INITIALIZE_GGS"), + OdmsFetchMetadataSrc("ODMS_FETCH_METADATA_SRC"), + OdmsFetchMetadataTgt("ODMS_FETCH_METADATA_TGT"), OdmsValidate("ODMS_VALIDATE"), OdmsPrepare("ODMS_PREPARE"), + OdmsInitializeReplicationInfrastructure("ODMS_INITIALIZE_REPLICATION_INFRASTRUCTURE"), OdmsInitialLoadExport("ODMS_INITIAL_LOAD_EXPORT"), OdmsDataUpload("ODMS_DATA_UPLOAD"), + OdmsInitialLoadExportDataUpload("ODMS_INITIAL_LOAD_EXPORT_DATA_UPLOAD"), OdmsInitialLoadImport("ODMS_INITIAL_LOAD_IMPORT"), OdmsPostInitialLoad("ODMS_POST_INITIAL_LOAD"), OdmsPrepareReplicationTarget("ODMS_PREPARE_REPLICATION_TARGET"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsPhaseActions.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsPhaseActions.java index f3b57b31d42..59c45a0d351 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsPhaseActions.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OdmsPhaseActions.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible ODMS Job Phase actions. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OdmsPhaseActions implements com.oracle.bmc.http.internal.BmcEnum { Wait("WAIT"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationStatus.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationStatus.java index 2a7a76b9714..2198a528f5a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationStatus.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationStatus.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Possible operation status. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { Accepted("ACCEPTED"), InProgress("IN_PROGRESS"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationTypes.java index 3e2400fd647..4d41eab2f73 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OperationTypes.java @@ -5,10 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** Possible operation types. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum OperationTypes implements com.oracle.bmc.http.internal.BmcEnum { - CreateAgent("CREATE_AGENT"), - DeleteAgent("DELETE_AGENT"), CreateMigration("CREATE_MIGRATION"), CloneMigration("CLONE_MIGRATION"), DeleteMigration("DELETE_MIGRATION"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAdvisorSettings.java similarity index 91% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdvisorSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAdvisorSettings.java index 8051b642232..e3fec400449 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdvisorSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAdvisorSettings.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional Pre-Migration advisor settings.
+ * Details about Oracle Advisor Settings.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,16 +15,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateAdvisorSettings.Builder.class) + builder = OracleAdvisorSettings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateAdvisorSettings +public final class OracleAdvisorSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) - public UpdateAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + public OracleAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { super(); this.isSkipAdvisor = isSkipAdvisor; this.isIgnoreErrors = isIgnoreErrors; @@ -70,9 +70,9 @@ public Builder isIgnoreErrors(Boolean isIgnoreErrors) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateAdvisorSettings build() { - UpdateAdvisorSettings model = - new UpdateAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + public OracleAdvisorSettings build() { + OracleAdvisorSettings model = + new OracleAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -80,7 +80,7 @@ public UpdateAdvisorSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateAdvisorSettings model) { + public Builder copy(OracleAdvisorSettings model) { if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { this.isSkipAdvisor(model.getIsSkipAdvisor()); } @@ -143,7 +143,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateAdvisorSettings("); + sb.append("OracleAdvisorSettings("); sb.append("super=").append(super.toString()); sb.append("isSkipAdvisor=").append(String.valueOf(this.isSkipAdvisor)); sb.append(", isIgnoreErrors=").append(String.valueOf(this.isIgnoreErrors)); @@ -156,11 +156,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAdvisorSettings)) { + if (!(o instanceof OracleAdvisorSettings)) { return false; } - UpdateAdvisorSettings other = (UpdateAdvisorSettings) o; + OracleAdvisorSettings other = (OracleAdvisorSettings) o; return java.util.Objects.equals(this.isSkipAdvisor, other.isSkipAdvisor) && java.util.Objects.equals(this.isIgnoreErrors, other.isIgnoreErrors) && super.equals(other); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3DataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java similarity index 94% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3DataTransferMediumDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java index ea79569dcc4..10abba0d3e8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/AwsS3DataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleAwsS3DataTransferMediumDetails.java @@ -16,16 +16,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = AwsS3DataTransferMediumDetails.Builder.class) + builder = OracleAwsS3DataTransferMediumDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class AwsS3DataTransferMediumDetails extends DataTransferMediumDetailsV2 { +public final class OracleAwsS3DataTransferMediumDetails extends OracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** S3 bucket name. */ @@ -115,9 +115,9 @@ public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public AwsS3DataTransferMediumDetails build() { - AwsS3DataTransferMediumDetails model = - new AwsS3DataTransferMediumDetails( + public OracleAwsS3DataTransferMediumDetails build() { + OracleAwsS3DataTransferMediumDetails model = + new OracleAwsS3DataTransferMediumDetails( this.name, this.region, this.accessKeyId, @@ -130,7 +130,7 @@ public AwsS3DataTransferMediumDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(AwsS3DataTransferMediumDetails model) { + public Builder copy(OracleAwsS3DataTransferMediumDetails model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -160,7 +160,7 @@ public Builder toBuilder() { } @Deprecated - public AwsS3DataTransferMediumDetails( + public OracleAwsS3DataTransferMediumDetails( String name, String region, String accessKeyId, @@ -260,7 +260,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("AwsS3DataTransferMediumDetails("); + sb.append("OracleAwsS3DataTransferMediumDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", name=").append(String.valueOf(this.name)); sb.append(", region=").append(String.valueOf(this.region)); @@ -276,11 +276,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof AwsS3DataTransferMediumDetails)) { + if (!(o instanceof OracleAwsS3DataTransferMediumDetails)) { return false; } - AwsS3DataTransferMediumDetails other = (AwsS3DataTransferMediumDetails) o; + OracleAwsS3DataTransferMediumDetails other = (OracleAwsS3DataTransferMediumDetails) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java new file mode 100644 index 00000000000..ce9141cef92 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleCloneMigrationDetails.java @@ -0,0 +1,237 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle Clone Migration Summary
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleCloneMigrationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleCloneMigrationDetails extends CloneMigrationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleCloneMigrationDetails build() { + OracleCloneMigrationDetails model = + new OracleCloneMigrationDetails( + this.displayName, + this.compartmentId, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.freeformTags, + this.definedTags, + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleCloneMigrationDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleCloneMigrationDetails( + String displayName, + String compartmentId, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + java.util.Map freeformTags, + java.util.Map> definedTags, + String sourceContainerDatabaseConnectionId) { + super( + displayName, + compartmentId, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + freeformTags, + definedTags); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleCloneMigrationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleCloneMigrationDetails)) { + return false; + } + + OracleCloneMigrationDetails other = (OracleCloneMigrationDetails) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnection.java new file mode 100644 index 00000000000..e34e3d6c0e6 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnection.java @@ -0,0 +1,743 @@ +/** + * 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.databasemigration.model; + +/** + * Represents the metadata of an Oracle Database Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OracleConnection.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 OracleConnection extends Connection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private LifecycleState lifecycleState; + + public Builder lifecycleState(LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private java.util.List ingressIps; + + public Builder ingressIps(java.util.List ingressIps) { + this.ingressIps = ingressIps; + this.__explicitlySet__.add("ingressIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private String replicationUsername; + + public Builder replicationUsername(String replicationUsername) { + this.replicationUsername = replicationUsername; + this.__explicitlySet__.add("replicationUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private String replicationPassword; + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = replicationPassword; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("secretId") + private String secretId; + + public Builder secretId(String secretId) { + this.secretId = secretId; + this.__explicitlySet__.add("secretId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("privateEndpointId") + private String privateEndpointId; + + public Builder privateEndpointId(String privateEndpointId) { + this.privateEndpointId = privateEndpointId; + this.__explicitlySet__.add("privateEndpointId"); + return this; + } + /** The Oracle technology type. */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private TechnologyType technologyType; + + /** + * The Oracle technology type. + * + * @param technologyType the value to set + * @return this builder + */ + public Builder technologyType(TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @param connectionString the value to set + * @return this builder + */ + public Builder connectionString(String connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The OCID of the database being referenced. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** Name of the host the SSH key is valid for. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshHost") + private String sshHost; + + /** + * Name of the host the SSH key is valid for. + * + * @param sshHost the value to set + * @return this builder + */ + public Builder sshHost(String sshHost) { + this.sshHost = sshHost; + this.__explicitlySet__.add("sshHost"); + return this; + } + /** Private SSH key string. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshKey") + private String sshKey; + + /** + * Private SSH key string. + * + * @param sshKey the value to set + * @return this builder + */ + public Builder sshKey(String sshKey) { + this.sshKey = sshKey; + this.__explicitlySet__.add("sshKey"); + return this; + } + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshUser") + private String sshUser; + + /** + * The username (credential) used when creating or updating this resource. + * + * @param sshUser the value to set + * @return this builder + */ + public Builder sshUser(String sshUser) { + this.sshUser = sshUser; + this.__explicitlySet__.add("sshUser"); + return this; + } + /** Sudo location */ + @com.fasterxml.jackson.annotation.JsonProperty("sshSudoLocation") + private String sshSudoLocation; + + /** + * Sudo location + * + * @param sshSudoLocation the value to set + * @return this builder + */ + public Builder sshSudoLocation(String sshSudoLocation) { + this.sshSudoLocation = sshSudoLocation; + this.__explicitlySet__.add("sshSudoLocation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleConnection build() { + OracleConnection model = + new OracleConnection( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.vaultId, + this.keyId, + this.subnetId, + this.ingressIps, + this.nsgIds, + this.username, + this.password, + this.replicationUsername, + this.replicationPassword, + this.secretId, + this.privateEndpointId, + this.technologyType, + this.connectionString, + this.databaseId, + this.sshHost, + this.sshKey, + this.sshUser, + this.sshSudoLocation); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleConnection model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("replicationUsername")) { + this.replicationUsername(model.getReplicationUsername()); + } + if (model.wasPropertyExplicitlySet("replicationPassword")) { + this.replicationPassword(model.getReplicationPassword()); + } + if (model.wasPropertyExplicitlySet("secretId")) { + this.secretId(model.getSecretId()); + } + if (model.wasPropertyExplicitlySet("privateEndpointId")) { + this.privateEndpointId(model.getPrivateEndpointId()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("connectionString")) { + this.connectionString(model.getConnectionString()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("sshHost")) { + this.sshHost(model.getSshHost()); + } + if (model.wasPropertyExplicitlySet("sshKey")) { + this.sshKey(model.getSshKey()); + } + if (model.wasPropertyExplicitlySet("sshUser")) { + this.sshUser(model.getSshUser()); + } + if (model.wasPropertyExplicitlySet("sshSudoLocation")) { + this.sshSudoLocation(model.getSshSudoLocation()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleConnection( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + String secretId, + String privateEndpointId, + TechnologyType technologyType, + String connectionString, + String databaseId, + String sshHost, + String sshKey, + String sshUser, + String sshSudoLocation) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + vaultId, + keyId, + subnetId, + ingressIps, + nsgIds, + username, + password, + replicationUsername, + replicationPassword, + secretId, + privateEndpointId); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.databaseId = databaseId; + this.sshHost = sshHost; + this.sshKey = sshKey; + this.sshUser = sshUser; + this.sshSudoLocation = sshSudoLocation; + } + + /** The Oracle technology type. */ + public enum TechnologyType implements com.oracle.bmc.http.internal.BmcEnum { + AmazonRdsOracle("AMAZON_RDS_ORACLE"), + OciAutonomousDatabase("OCI_AUTONOMOUS_DATABASE"), + OracleDatabase("ORACLE_DATABASE"), + OracleExadata("ORACLE_EXADATA"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by + * this version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(TechnologyType.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TechnologyType v : TechnologyType.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + TechnologyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TechnologyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'TechnologyType', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } + }; + /** The Oracle technology type. */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final TechnologyType technologyType; + + /** + * The Oracle technology type. + * + * @return the value + */ + public TechnologyType getTechnologyType() { + return technologyType; + } + + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private final String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @return the value + */ + public String getConnectionString() { + return connectionString; + } + + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The OCID of the database being referenced. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** Name of the host the SSH key is valid for. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshHost") + private final String sshHost; + + /** + * Name of the host the SSH key is valid for. + * + * @return the value + */ + public String getSshHost() { + return sshHost; + } + + /** Private SSH key string. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshKey") + private final String sshKey; + + /** + * Private SSH key string. + * + * @return the value + */ + public String getSshKey() { + return sshKey; + } + + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshUser") + private final String sshUser; + + /** + * The username (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getSshUser() { + return sshUser; + } + + /** Sudo location */ + @com.fasterxml.jackson.annotation.JsonProperty("sshSudoLocation") + private final String sshSudoLocation; + + /** + * Sudo location + * + * @return the value + */ + public String getSshSudoLocation() { + return sshSudoLocation; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleConnection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", sshHost=").append(String.valueOf(this.sshHost)); + sb.append(", sshKey=").append(String.valueOf(this.sshKey)); + sb.append(", sshUser=").append(String.valueOf(this.sshUser)); + sb.append(", sshSudoLocation=").append(String.valueOf(this.sshSudoLocation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleConnection)) { + return false; + } + + OracleConnection other = (OracleConnection) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.sshHost, other.sshHost) + && java.util.Objects.equals(this.sshKey, other.sshKey) + && java.util.Objects.equals(this.sshUser, other.sshUser) + && java.util.Objects.equals(this.sshSudoLocation, other.sshSudoLocation) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = + (result * PRIME) + + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.sshHost == null ? 43 : this.sshHost.hashCode()); + result = (result * PRIME) + (this.sshKey == null ? 43 : this.sshKey.hashCode()); + result = (result * PRIME) + (this.sshUser == null ? 43 : this.sshUser.hashCode()); + result = + (result * PRIME) + + (this.sshSudoLocation == null ? 43 : this.sshSudoLocation.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnectionSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnectionSummary.java new file mode 100644 index 00000000000..594bfbd9f2c --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleConnectionSummary.java @@ -0,0 +1,456 @@ +/** + * 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.databasemigration.model; + +/** + * Summary of the Oracle Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleConnectionSummary.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 OracleConnectionSummary extends ConnectionSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private Connection.LifecycleState lifecycleState; + + public Builder lifecycleState(Connection.LifecycleState lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private String lifecycleDetails; + + public Builder lifecycleDetails(String lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ingressIps") + private java.util.List ingressIps; + + public Builder ingressIps(java.util.List ingressIps) { + this.ingressIps = ingressIps; + this.__explicitlySet__.add("ingressIps"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + /** The Oracle technology type. */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private OracleConnection.TechnologyType technologyType; + + /** + * The Oracle technology type. + * + * @param technologyType the value to set + * @return this builder + */ + public Builder technologyType(OracleConnection.TechnologyType technologyType) { + this.technologyType = technologyType; + this.__explicitlySet__.add("technologyType"); + return this; + } + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @param connectionString the value to set + * @return this builder + */ + public Builder connectionString(String connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The OCID of the database being referenced. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleConnectionSummary build() { + OracleConnectionSummary model = + new OracleConnectionSummary( + this.id, + this.displayName, + this.description, + this.compartmentId, + this.freeformTags, + this.definedTags, + this.systemTags, + this.lifecycleState, + this.lifecycleDetails, + this.timeCreated, + this.timeUpdated, + this.vaultId, + this.keyId, + this.subnetId, + this.ingressIps, + this.nsgIds, + this.technologyType, + this.connectionString, + this.databaseId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleConnectionSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("ingressIps")) { + this.ingressIps(model.getIngressIps()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("technologyType")) { + this.technologyType(model.getTechnologyType()); + } + if (model.wasPropertyExplicitlySet("connectionString")) { + this.connectionString(model.getConnectionString()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleConnectionSummary( + String id, + String displayName, + String description, + String compartmentId, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + Connection.LifecycleState lifecycleState, + String lifecycleDetails, + java.util.Date timeCreated, + java.util.Date timeUpdated, + String vaultId, + String keyId, + String subnetId, + java.util.List ingressIps, + java.util.List nsgIds, + OracleConnection.TechnologyType technologyType, + String connectionString, + String databaseId) { + super( + id, + displayName, + description, + compartmentId, + freeformTags, + definedTags, + systemTags, + lifecycleState, + lifecycleDetails, + timeCreated, + timeUpdated, + vaultId, + keyId, + subnetId, + ingressIps, + nsgIds); + this.technologyType = technologyType; + this.connectionString = connectionString; + this.databaseId = databaseId; + } + + /** The Oracle technology type. */ + @com.fasterxml.jackson.annotation.JsonProperty("technologyType") + private final OracleConnection.TechnologyType technologyType; + + /** + * The Oracle technology type. + * + * @return the value + */ + public OracleConnection.TechnologyType getTechnologyType() { + return technologyType; + } + + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private final String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @return the value + */ + public String getConnectionString() { + return connectionString; + } + + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The OCID of the database being referenced. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleConnectionSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", technologyType=").append(String.valueOf(this.technologyType)); + sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleConnectionSummary)) { + return false; + } + + OracleConnectionSummary other = (OracleConnectionSummary) o; + return java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = + (result * PRIME) + + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetailsV2.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataTransferMediumDetails.java similarity index 83% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetailsV2.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataTransferMediumDetails.java index 4faa03c1b0d..6be73271e26 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataTransferMediumDetailsV2.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer in source or target host.
+ * Optional additional properties for data transfer.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,33 +15,33 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type", - defaultImpl = DataTransferMediumDetailsV2.class) + defaultImpl = OracleDataTransferMediumDetails.class) @com.fasterxml.jackson.annotation.JsonSubTypes({ @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = NfsDataTransferMediumDetails.class, - name = "NFS"), + value = OracleDbLinkDataTransferMediumDetails.class, + name = "DBLINK"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = ObjectStorageDataTransferMediumDetails.class, + value = OracleObjectStorageDataTransferMediumDetails.class, name = "OBJECT_STORAGE"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = DbLinkDataTransferMediumDetails.class, - name = "DBLINK"), + value = OracleAwsS3DataTransferMediumDetails.class, + name = "AWS_S3"), @com.fasterxml.jackson.annotation.JsonSubTypes.Type( - value = AwsS3DataTransferMediumDetails.class, - name = "AWS_S3") + value = OracleNfsDataTransferMediumDetails.class, + name = "NFS") }) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public class DataTransferMediumDetailsV2 +public class OracleDataTransferMediumDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({}) - protected DataTransferMediumDetailsV2() { + protected OracleDataTransferMediumDetails() { super(); } @@ -58,7 +58,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DataTransferMediumDetailsV2("); + sb.append("OracleDataTransferMediumDetails("); sb.append("super=").append(super.toString()); sb.append(")"); return sb.toString(); @@ -69,11 +69,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DataTransferMediumDetailsV2)) { + if (!(o instanceof OracleDataTransferMediumDetails)) { return false; } - DataTransferMediumDetailsV2 other = (DataTransferMediumDetailsV2) o; + OracleDataTransferMediumDetails other = (OracleDataTransferMediumDetails) o; return super.equals(other); } @@ -85,7 +85,7 @@ public int hashCode() { return result; } - /** Type of the data transfer medium to use for the datapump */ + /** Type of the data transfer medium to use. */ public enum Type implements com.oracle.bmc.http.internal.BmcEnum { Dblink("DBLINK"), ObjectStorage("OBJECT_STORAGE"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseObject.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObject.java similarity index 92% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseObject.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObject.java index f2dd5b08546..be248dc68d4 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DatabaseObject.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObject.java @@ -15,11 +15,12 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DatabaseObject.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleDatabaseObject.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DatabaseObject +public final class OracleDatabaseObject extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ @@ -28,7 +29,7 @@ public final class DatabaseObject "type", "isOmitExcludedTableFromReplication" }) - public DatabaseObject( + public OracleDatabaseObject( String owner, String objectName, String type, @@ -93,14 +94,14 @@ public Builder type(String type) { } /** * Whether an excluded table should be omitted from replication. Only valid for database - * objects that have are of type TABLE and that are included in the exludeObjects. + * objects that have are of type TABLE and object status EXCLUDE. */ @com.fasterxml.jackson.annotation.JsonProperty("isOmitExcludedTableFromReplication") private Boolean isOmitExcludedTableFromReplication; /** * Whether an excluded table should be omitted from replication. Only valid for database - * objects that have are of type TABLE and that are included in the exludeObjects. + * objects that have are of type TABLE and object status EXCLUDE. * * @param isOmitExcludedTableFromReplication the value to set * @return this builder @@ -115,9 +116,9 @@ public Builder isOmitExcludedTableFromReplication( @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DatabaseObject build() { - DatabaseObject model = - new DatabaseObject( + public OracleDatabaseObject build() { + OracleDatabaseObject model = + new OracleDatabaseObject( this.owner, this.objectName, this.type, @@ -129,7 +130,7 @@ public DatabaseObject build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DatabaseObject model) { + public Builder copy(OracleDatabaseObject model) { if (model.wasPropertyExplicitlySet("owner")) { this.owner(model.getOwner()); } @@ -201,14 +202,14 @@ public String getType() { /** * Whether an excluded table should be omitted from replication. Only valid for database objects - * that have are of type TABLE and that are included in the exludeObjects. + * that have are of type TABLE and object status EXCLUDE. */ @com.fasterxml.jackson.annotation.JsonProperty("isOmitExcludedTableFromReplication") private final Boolean isOmitExcludedTableFromReplication; /** * Whether an excluded table should be omitted from replication. Only valid for database objects - * that have are of type TABLE and that are included in the exludeObjects. + * that have are of type TABLE and object status EXCLUDE. * * @return the value */ @@ -229,7 +230,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DatabaseObject("); + sb.append("OracleDatabaseObject("); sb.append("super=").append(super.toString()); sb.append("owner=").append(String.valueOf(this.owner)); sb.append(", objectName=").append(String.valueOf(this.objectName)); @@ -245,11 +246,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DatabaseObject)) { + if (!(o instanceof OracleDatabaseObject)) { return false; } - DatabaseObject other = (DatabaseObject) o; + OracleDatabaseObject other = (OracleDatabaseObject) o; return java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.objectName, other.objectName) && java.util.Objects.equals(this.type, other.type) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectSummary.java similarity index 92% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectSummary.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectSummary.java index 77b55e87ba0..3ce72152d4f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/MigrationObjectSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDatabaseObjectSummary.java @@ -15,37 +15,52 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = MigrationObjectSummary.Builder.class) + builder = OracleDatabaseObjectSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class MigrationObjectSummary +public final class OracleDatabaseObjectSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "objectStatus", "owner", "objectName", "type", - "objectStatus", "isOmitExcludedTableFromReplication" }) - public MigrationObjectSummary( + public OracleDatabaseObjectSummary( + ObjectStatus objectStatus, String owner, String objectName, String type, - ObjectStatus objectStatus, Boolean isOmitExcludedTableFromReplication) { super(); + this.objectStatus = objectStatus; this.owner = owner; this.objectName = objectName; this.type = type; - this.objectStatus = objectStatus; this.isOmitExcludedTableFromReplication = isOmitExcludedTableFromReplication; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + /** Object status. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private ObjectStatus objectStatus; + + /** + * Object status. + * + * @param objectStatus the value to set + * @return this builder + */ + public Builder objectStatus(ObjectStatus objectStatus) { + this.objectStatus = objectStatus; + this.__explicitlySet__.add("objectStatus"); + return this; + } /** Owner of the object (regular expression is allowed) */ @com.fasterxml.jackson.annotation.JsonProperty("owner") private String owner; @@ -95,21 +110,6 @@ public Builder type(String type) { this.__explicitlySet__.add("type"); return this; } - /** Object status. */ - @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") - private ObjectStatus objectStatus; - - /** - * Object status. - * - * @param objectStatus the value to set - * @return this builder - */ - public Builder objectStatus(ObjectStatus objectStatus) { - this.objectStatus = objectStatus; - this.__explicitlySet__.add("objectStatus"); - return this; - } /** * Whether an excluded table should be omitted from replication. Only valid for database * objects that have are of type TABLE and object status EXCLUDE. @@ -134,13 +134,13 @@ public Builder isOmitExcludedTableFromReplication( @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public MigrationObjectSummary build() { - MigrationObjectSummary model = - new MigrationObjectSummary( + public OracleDatabaseObjectSummary build() { + OracleDatabaseObjectSummary model = + new OracleDatabaseObjectSummary( + this.objectStatus, this.owner, this.objectName, this.type, - this.objectStatus, this.isOmitExcludedTableFromReplication); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); @@ -149,7 +149,10 @@ public MigrationObjectSummary build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(MigrationObjectSummary model) { + public Builder copy(OracleDatabaseObjectSummary model) { + if (model.wasPropertyExplicitlySet("objectStatus")) { + this.objectStatus(model.getObjectStatus()); + } if (model.wasPropertyExplicitlySet("owner")) { this.owner(model.getOwner()); } @@ -159,9 +162,6 @@ public Builder copy(MigrationObjectSummary model) { if (model.wasPropertyExplicitlySet("type")) { this.type(model.getType()); } - if (model.wasPropertyExplicitlySet("objectStatus")) { - this.objectStatus(model.getObjectStatus()); - } if (model.wasPropertyExplicitlySet("isOmitExcludedTableFromReplication")) { this.isOmitExcludedTableFromReplication( model.getIsOmitExcludedTableFromReplication()); @@ -179,6 +179,19 @@ public Builder toBuilder() { return new Builder().copy(this); } + /** Object status. */ + @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") + private final ObjectStatus objectStatus; + + /** + * Object status. + * + * @return the value + */ + public ObjectStatus getObjectStatus() { + return objectStatus; + } + /** Owner of the object (regular expression is allowed) */ @com.fasterxml.jackson.annotation.JsonProperty("owner") private final String owner; @@ -222,19 +235,6 @@ public String getType() { return type; } - /** Object status. */ - @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") - private final ObjectStatus objectStatus; - - /** - * Object status. - * - * @return the value - */ - public ObjectStatus getObjectStatus() { - return objectStatus; - } - /** * Whether an excluded table should be omitted from replication. Only valid for database objects * that have are of type TABLE and object status EXCLUDE. @@ -265,12 +265,12 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("MigrationObjectSummary("); + sb.append("OracleDatabaseObjectSummary("); sb.append("super=").append(super.toString()); - sb.append("owner=").append(String.valueOf(this.owner)); + sb.append("objectStatus=").append(String.valueOf(this.objectStatus)); + sb.append(", owner=").append(String.valueOf(this.owner)); sb.append(", objectName=").append(String.valueOf(this.objectName)); sb.append(", type=").append(String.valueOf(this.type)); - sb.append(", objectStatus=").append(String.valueOf(this.objectStatus)); sb.append(", isOmitExcludedTableFromReplication=") .append(String.valueOf(this.isOmitExcludedTableFromReplication)); sb.append(")"); @@ -282,15 +282,15 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof MigrationObjectSummary)) { + if (!(o instanceof OracleDatabaseObjectSummary)) { return false; } - MigrationObjectSummary other = (MigrationObjectSummary) o; - return java.util.Objects.equals(this.owner, other.owner) + OracleDatabaseObjectSummary other = (OracleDatabaseObjectSummary) o; + return java.util.Objects.equals(this.objectStatus, other.objectStatus) + && java.util.Objects.equals(this.owner, other.owner) && java.util.Objects.equals(this.objectName, other.objectName) && java.util.Objects.equals(this.type, other.type) - && java.util.Objects.equals(this.objectStatus, other.objectStatus) && java.util.Objects.equals( this.isOmitExcludedTableFromReplication, other.isOmitExcludedTableFromReplication) @@ -301,10 +301,10 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.objectStatus == null ? 43 : this.objectStatus.hashCode()); result = (result * PRIME) + (this.owner == null ? 43 : this.owner.hashCode()); result = (result * PRIME) + (this.objectName == null ? 43 : this.objectName.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); - result = (result * PRIME) + (this.objectStatus == null ? 43 : this.objectStatus.hashCode()); result = (result * PRIME) + (this.isOmitExcludedTableFromReplication == null diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DbLinkDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDbLinkDataTransferMediumDetails.java similarity index 87% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DbLinkDataTransferMediumDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDbLinkDataTransferMediumDetails.java index 6277107412c..cee8ba5f198 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DbLinkDataTransferMediumDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleDbLinkDataTransferMediumDetails.java @@ -16,16 +16,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DbLinkDataTransferMediumDetails.Builder.class) + builder = OracleDbLinkDataTransferMediumDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DbLinkDataTransferMediumDetails extends DataTransferMediumDetailsV2 { +public final class OracleDbLinkDataTransferMediumDetails extends OracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @@ -60,9 +60,9 @@ public Builder name(String name) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DbLinkDataTransferMediumDetails build() { - DbLinkDataTransferMediumDetails model = - new DbLinkDataTransferMediumDetails(this.objectStorageBucket, this.name); + public OracleDbLinkDataTransferMediumDetails build() { + OracleDbLinkDataTransferMediumDetails model = + new OracleDbLinkDataTransferMediumDetails(this.objectStorageBucket, this.name); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -70,7 +70,7 @@ public DbLinkDataTransferMediumDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DbLinkDataTransferMediumDetails model) { + public Builder copy(OracleDbLinkDataTransferMediumDetails model) { if (model.wasPropertyExplicitlySet("objectStorageBucket")) { this.objectStorageBucket(model.getObjectStorageBucket()); } @@ -91,7 +91,8 @@ public Builder toBuilder() { } @Deprecated - public DbLinkDataTransferMediumDetails(ObjectStoreBucket objectStorageBucket, String name) { + public OracleDbLinkDataTransferMediumDetails( + ObjectStoreBucket objectStorageBucket, String name) { super(); this.objectStorageBucket = objectStorageBucket; this.name = name; @@ -134,7 +135,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DbLinkDataTransferMediumDetails("); + sb.append("OracleDbLinkDataTransferMediumDetails("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); sb.append(", name=").append(String.valueOf(this.name)); @@ -147,11 +148,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DbLinkDataTransferMediumDetails)) { + if (!(o instanceof OracleDbLinkDataTransferMediumDetails)) { return false; } - DbLinkDataTransferMediumDetails other = (DbLinkDataTransferMediumDetails) o; + OracleDbLinkDataTransferMediumDetails other = (OracleDbLinkDataTransferMediumDetails) o; return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) && java.util.Objects.equals(this.name, other.name) && super.equals(other); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleGgsDeploymentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleGgsDeploymentDetails.java new file mode 100644 index 00000000000..16d1fdc7944 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleGgsDeploymentDetails.java @@ -0,0 +1,221 @@ +/** + * 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.databasemigration.model; + +/** + * Optional settings for Oracle GoldenGate processes
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleGgsDeploymentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleGgsDeploymentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"ggsDeployment", "extract", "replicat", "acceptableLag"}) + public OracleGgsDeploymentDetails( + GgsDeployment ggsDeployment, + Extract extract, + Replicat replicat, + Integer acceptableLag) { + super(); + this.ggsDeployment = ggsDeployment; + this.extract = extract; + this.replicat = replicat; + this.acceptableLag = acceptableLag; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDeployment") + private GgsDeployment ggsDeployment; + + public Builder ggsDeployment(GgsDeployment ggsDeployment) { + this.ggsDeployment = ggsDeployment; + this.__explicitlySet__.add("ggsDeployment"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private Extract extract; + + public Builder extract(Extract extract) { + this.extract = extract; + this.__explicitlySet__.add("extract"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private Replicat replicat; + + public Builder replicat(Replicat replicat) { + this.replicat = replicat; + this.__explicitlySet__.add("replicat"); + return this; + } + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @param acceptableLag the value to set + * @return this builder + */ + public Builder acceptableLag(Integer acceptableLag) { + this.acceptableLag = acceptableLag; + this.__explicitlySet__.add("acceptableLag"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleGgsDeploymentDetails build() { + OracleGgsDeploymentDetails model = + new OracleGgsDeploymentDetails( + this.ggsDeployment, this.extract, this.replicat, this.acceptableLag); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleGgsDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("ggsDeployment")) { + this.ggsDeployment(model.getGgsDeployment()); + } + if (model.wasPropertyExplicitlySet("extract")) { + this.extract(model.getExtract()); + } + if (model.wasPropertyExplicitlySet("replicat")) { + this.replicat(model.getReplicat()); + } + if (model.wasPropertyExplicitlySet("acceptableLag")) { + this.acceptableLag(model.getAcceptableLag()); + } + 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("ggsDeployment") + private final GgsDeployment ggsDeployment; + + public GgsDeployment getGgsDeployment() { + return ggsDeployment; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private final Extract extract; + + public Extract getExtract() { + return extract; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private final Replicat replicat; + + public Replicat getReplicat() { + return replicat; + } + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private final Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @return the value + */ + public Integer getAcceptableLag() { + return acceptableLag; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleGgsDeploymentDetails("); + sb.append("super=").append(super.toString()); + sb.append("ggsDeployment=").append(String.valueOf(this.ggsDeployment)); + sb.append(", extract=").append(String.valueOf(this.extract)); + sb.append(", replicat=").append(String.valueOf(this.replicat)); + sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleGgsDeploymentDetails)) { + return false; + } + + OracleGgsDeploymentDetails other = (OracleGgsDeploymentDetails) o; + return java.util.Objects.equals(this.ggsDeployment, other.ggsDeployment) + && java.util.Objects.equals(this.extract, other.extract) + && java.util.Objects.equals(this.replicat, other.replicat) + && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.ggsDeployment == null ? 43 : this.ggsDeployment.hashCode()); + result = (result * PRIME) + (this.extract == null ? 43 : this.extract.hashCode()); + result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); + result = + (result * PRIME) + + (this.acceptableLag == null ? 43 : this.acceptableLag.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleInitialLoadSettings.java similarity index 76% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleInitialLoadSettings.java index bd0f0aff33a..607d67cb5a5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DataPumpSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleInitialLoadSettings.java @@ -15,58 +15,40 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = DataPumpSettings.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleInitialLoadSettings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DataPumpSettings +public final class OracleInitialLoadSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ - "jobMode", "dataPumpParameters", - "metadataRemaps", "tablespaceDetails", "exportDirectoryObject", - "importDirectoryObject" + "importDirectoryObject", + "jobMode", + "metadataRemaps" }) - public DataPumpSettings( - DataPumpJobMode jobMode, + public OracleInitialLoadSettings( DataPumpParameters dataPumpParameters, - java.util.List metadataRemaps, TargetTypeTablespaceDetails tablespaceDetails, DirectoryObject exportDirectoryObject, - DirectoryObject importDirectoryObject) { + DirectoryObject importDirectoryObject, + JobModeOracle jobMode, + java.util.List metadataRemaps) { super(); - this.jobMode = jobMode; this.dataPumpParameters = dataPumpParameters; - this.metadataRemaps = metadataRemaps; this.tablespaceDetails = tablespaceDetails; this.exportDirectoryObject = exportDirectoryObject; this.importDirectoryObject = importDirectoryObject; + this.jobMode = jobMode; + this.metadataRemaps = metadataRemaps; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - */ - @com.fasterxml.jackson.annotation.JsonProperty("jobMode") - private DataPumpJobMode jobMode; - - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - * - * @param jobMode the value to set - * @return this builder - */ - public Builder jobMode(DataPumpJobMode jobMode) { - this.jobMode = jobMode; - this.__explicitlySet__.add("jobMode"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("dataPumpParameters") private DataPumpParameters dataPumpParameters; @@ -76,27 +58,6 @@ public Builder dataPumpParameters(DataPumpParameters dataPumpParameters) { this.__explicitlySet__.add("dataPumpParameters"); return this; } - /** - * Defines remapping to be applied to objects as they are processed. Refer to - * [METADATA_REMAP Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - */ - @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") - private java.util.List metadataRemaps; - - /** - * Defines remapping to be applied to objects as they are processed. Refer to - * [METADATA_REMAP Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - * - * @param metadataRemaps the value to set - * @return this builder - */ - public Builder metadataRemaps(java.util.List metadataRemaps) { - this.metadataRemaps = metadataRemaps; - this.__explicitlySet__.add("metadataRemaps"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("tablespaceDetails") private TargetTypeTablespaceDetails tablespaceDetails; @@ -124,19 +85,49 @@ public Builder importDirectoryObject(DirectoryObject importDirectoryObject) { this.__explicitlySet__.add("importDirectoryObject"); return this; } + /** Oracle Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private JobModeOracle jobMode; + + /** + * Oracle Job Mode + * + * @param jobMode the value to set + * @return this builder + */ + public Builder jobMode(JobModeOracle jobMode) { + this.jobMode = jobMode; + this.__explicitlySet__.add("jobMode"); + return this; + } + /** Defines remapping to be applied to objects as they are processed. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") + private java.util.List metadataRemaps; + + /** + * Defines remapping to be applied to objects as they are processed. + * + * @param metadataRemaps the value to set + * @return this builder + */ + public Builder metadataRemaps(java.util.List metadataRemaps) { + this.metadataRemaps = metadataRemaps; + this.__explicitlySet__.add("metadataRemaps"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DataPumpSettings build() { - DataPumpSettings model = - new DataPumpSettings( - this.jobMode, + public OracleInitialLoadSettings build() { + OracleInitialLoadSettings model = + new OracleInitialLoadSettings( this.dataPumpParameters, - this.metadataRemaps, this.tablespaceDetails, this.exportDirectoryObject, - this.importDirectoryObject); + this.importDirectoryObject, + this.jobMode, + this.metadataRemaps); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -144,16 +135,10 @@ public DataPumpSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DataPumpSettings model) { - if (model.wasPropertyExplicitlySet("jobMode")) { - this.jobMode(model.getJobMode()); - } + public Builder copy(OracleInitialLoadSettings model) { if (model.wasPropertyExplicitlySet("dataPumpParameters")) { this.dataPumpParameters(model.getDataPumpParameters()); } - if (model.wasPropertyExplicitlySet("metadataRemaps")) { - this.metadataRemaps(model.getMetadataRemaps()); - } if (model.wasPropertyExplicitlySet("tablespaceDetails")) { this.tablespaceDetails(model.getTablespaceDetails()); } @@ -163,6 +148,12 @@ public Builder copy(DataPumpSettings model) { if (model.wasPropertyExplicitlySet("importDirectoryObject")) { this.importDirectoryObject(model.getImportDirectoryObject()); } + if (model.wasPropertyExplicitlySet("jobMode")) { + this.jobMode(model.getJobMode()); + } + if (model.wasPropertyExplicitlySet("metadataRemaps")) { + this.metadataRemaps(model.getMetadataRemaps()); + } return this; } } @@ -176,23 +167,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - */ - @com.fasterxml.jackson.annotation.JsonProperty("jobMode") - private final DataPumpJobMode jobMode; - - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - * - * @return the value - */ - public DataPumpJobMode getJobMode() { - return jobMode; - } - @com.fasterxml.jackson.annotation.JsonProperty("dataPumpParameters") private final DataPumpParameters dataPumpParameters; @@ -200,25 +174,6 @@ public DataPumpParameters getDataPumpParameters() { return dataPumpParameters; } - /** - * Defines remapping to be applied to objects as they are processed. Refer to [METADATA_REMAP - * Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - */ - @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") - private final java.util.List metadataRemaps; - - /** - * Defines remapping to be applied to objects as they are processed. Refer to [METADATA_REMAP - * Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - * - * @return the value - */ - public java.util.List getMetadataRemaps() { - return metadataRemaps; - } - @com.fasterxml.jackson.annotation.JsonProperty("tablespaceDetails") private final TargetTypeTablespaceDetails tablespaceDetails; @@ -240,6 +195,32 @@ public DirectoryObject getImportDirectoryObject() { return importDirectoryObject; } + /** Oracle Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private final JobModeOracle jobMode; + + /** + * Oracle Job Mode + * + * @return the value + */ + public JobModeOracle getJobMode() { + return jobMode; + } + + /** Defines remapping to be applied to objects as they are processed. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") + private final java.util.List metadataRemaps; + + /** + * Defines remapping to be applied to objects as they are processed. + * + * @return the value + */ + public java.util.List getMetadataRemaps() { + return metadataRemaps; + } + @Override public String toString() { return this.toString(true); @@ -253,14 +234,14 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DataPumpSettings("); + sb.append("OracleInitialLoadSettings("); sb.append("super=").append(super.toString()); - sb.append("jobMode=").append(String.valueOf(this.jobMode)); - sb.append(", dataPumpParameters=").append(String.valueOf(this.dataPumpParameters)); - sb.append(", metadataRemaps=").append(String.valueOf(this.metadataRemaps)); + sb.append("dataPumpParameters=").append(String.valueOf(this.dataPumpParameters)); sb.append(", tablespaceDetails=").append(String.valueOf(this.tablespaceDetails)); sb.append(", exportDirectoryObject=").append(String.valueOf(this.exportDirectoryObject)); sb.append(", importDirectoryObject=").append(String.valueOf(this.importDirectoryObject)); + sb.append(", jobMode=").append(String.valueOf(this.jobMode)); + sb.append(", metadataRemaps=").append(String.valueOf(this.metadataRemaps)); sb.append(")"); return sb.toString(); } @@ -270,17 +251,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DataPumpSettings)) { + if (!(o instanceof OracleInitialLoadSettings)) { return false; } - DataPumpSettings other = (DataPumpSettings) o; - return java.util.Objects.equals(this.jobMode, other.jobMode) - && java.util.Objects.equals(this.dataPumpParameters, other.dataPumpParameters) - && java.util.Objects.equals(this.metadataRemaps, other.metadataRemaps) + OracleInitialLoadSettings other = (OracleInitialLoadSettings) o; + return java.util.Objects.equals(this.dataPumpParameters, other.dataPumpParameters) && java.util.Objects.equals(this.tablespaceDetails, other.tablespaceDetails) && java.util.Objects.equals(this.exportDirectoryObject, other.exportDirectoryObject) && java.util.Objects.equals(this.importDirectoryObject, other.importDirectoryObject) + && java.util.Objects.equals(this.jobMode, other.jobMode) + && java.util.Objects.equals(this.metadataRemaps, other.metadataRemaps) && super.equals(other); } @@ -288,15 +269,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); result = (result * PRIME) + (this.dataPumpParameters == null ? 43 : this.dataPumpParameters.hashCode()); - result = - (result * PRIME) - + (this.metadataRemaps == null ? 43 : this.metadataRemaps.hashCode()); result = (result * PRIME) + (this.tablespaceDetails == null ? 43 : this.tablespaceDetails.hashCode()); @@ -310,6 +287,10 @@ public int hashCode() { + (this.importDirectoryObject == null ? 43 : this.importDirectoryObject.hashCode()); + result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); + result = + (result * PRIME) + + (this.metadataRemaps == null ? 43 : this.metadataRemaps.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java new file mode 100644 index 00000000000..1ae42676dd2 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigration.java @@ -0,0 +1,539 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle Migration resource
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = OracleMigration.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleMigration extends Migration { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("waitAfter") + private OdmsJobPhases waitAfter; + + public Builder waitAfter(OdmsJobPhases waitAfter) { + this.waitAfter = waitAfter; + this.__explicitlySet__.add("waitAfter"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") + private String executingJobId; + + public Builder executingJobId(String executingJobId) { + this.executingJobId = executingJobId; + this.__explicitlySet__.add("executingJobId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") + private java.util.Date timeLastMigration; + + public Builder timeLastMigration(java.util.Date timeLastMigration) { + this.timeLastMigration = timeLastMigration; + this.__explicitlySet__.add("timeLastMigration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MigrationLifecycleStates lifecycleState; + + public Builder lifecycleState(MigrationLifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private MigrationStatus lifecycleDetails; + + public Builder lifecycleDetails(MigrationStatus lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private OracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + OracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private OracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(OracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private OracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(OracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private GoldenGateHubDetails hubDetails; + + public Builder hubDetails(GoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private OracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(OracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleMigration build() { + OracleMigration model = + new OracleMigration( + this.id, + this.description, + this.displayName, + this.compartmentId, + this.type, + this.waitAfter, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.executingJobId, + this.timeCreated, + this.timeUpdated, + this.timeLastMigration, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleMigration model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("waitAfter")) { + this.waitAfter(model.getWaitAfter()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("executingJobId")) { + this.executingJobId(model.getExecutingJobId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastMigration")) { + this.timeLastMigration(model.getTimeLastMigration()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleMigration( + String id, + String description, + String displayName, + String compartmentId, + MigrationTypes type, + OdmsJobPhases waitAfter, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + String executingJobId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastMigration, + MigrationLifecycleStates lifecycleState, + MigrationStatus lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + OracleDataTransferMediumDetails dataTransferMediumDetails, + OracleInitialLoadSettings initialLoadSettings, + OracleAdvisorSettings advisorSettings, + GoldenGateHubDetails hubDetails, + OracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId) { + super( + id, + description, + displayName, + compartmentId, + type, + waitAfter, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + executingJobId, + timeCreated, + timeUpdated, + timeLastMigration, + lifecycleState, + lifecycleDetails, + freeformTags, + definedTags, + systemTags); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final OracleDataTransferMediumDetails dataTransferMediumDetails; + + public OracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final OracleInitialLoadSettings initialLoadSettings; + + public OracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final OracleAdvisorSettings advisorSettings; + + public OracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final GoldenGateHubDetails hubDetails; + + public GoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final OracleGgsDeploymentDetails ggsDetails; + + public OracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleMigration("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleMigration)) { + return false; + } + + OracleMigration other = (OracleMigration) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationObjectCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationObjectCollection.java new file mode 100644 index 00000000000..151238e3cd5 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationObjectCollection.java @@ -0,0 +1,189 @@ +/** + * 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.databasemigration.model; + +/** + * Database objects to migrate.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleMigrationObjectCollection.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleMigrationObjectCollection extends MigrationObjectCollection { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** Database objects to exclude/include from migration */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private java.util.List items; + + /** + * Database objects to exclude/include from migration + * + * @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; + } + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be + * found in the documentation. + * + * @param bulkIncludeExcludeData the value to set + * @return this builder + */ + public Builder bulkIncludeExcludeData(String bulkIncludeExcludeData) { + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + this.__explicitlySet__.add("bulkIncludeExcludeData"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleMigrationObjectCollection build() { + OracleMigrationObjectCollection model = + new OracleMigrationObjectCollection(this.items, this.bulkIncludeExcludeData); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleMigrationObjectCollection model) { + if (model.wasPropertyExplicitlySet("items")) { + this.items(model.getItems()); + } + if (model.wasPropertyExplicitlySet("bulkIncludeExcludeData")) { + this.bulkIncludeExcludeData(model.getBulkIncludeExcludeData()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleMigrationObjectCollection( + java.util.List items, String bulkIncludeExcludeData) { + super(); + this.items = items; + this.bulkIncludeExcludeData = bulkIncludeExcludeData; + } + + /** Database objects to exclude/include from migration */ + @com.fasterxml.jackson.annotation.JsonProperty("items") + private final java.util.List items; + + /** + * Database objects to exclude/include from migration + * + * @return the value + */ + public java.util.List getItems() { + return items; + } + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + */ + @com.fasterxml.jackson.annotation.JsonProperty("bulkIncludeExcludeData") + private final String bulkIncludeExcludeData; + + /** + * Specifies the database objects to be excluded from the migration in bulk. The definition + * accepts input in a CSV format, newline separated for each entry. More details can be found in + * the documentation. + * + * @return the value + */ + public String getBulkIncludeExcludeData() { + return bulkIncludeExcludeData; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleMigrationObjectCollection("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", items=").append(String.valueOf(this.items)); + sb.append(", bulkIncludeExcludeData=").append(String.valueOf(this.bulkIncludeExcludeData)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleMigrationObjectCollection)) { + return false; + } + + OracleMigrationObjectCollection other = (OracleMigrationObjectCollection) o; + return java.util.Objects.equals(this.items, other.items) + && java.util.Objects.equals( + this.bulkIncludeExcludeData, other.bulkIncludeExcludeData) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.items == null ? 43 : this.items.hashCode()); + result = + (result * PRIME) + + (this.bulkIncludeExcludeData == null + ? 43 + : this.bulkIncludeExcludeData.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java new file mode 100644 index 00000000000..0a13ddffc6b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleMigrationSummary.java @@ -0,0 +1,372 @@ +/** + * 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.databasemigration.model; + +/** + * Oracle Migration Summary
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleMigrationSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleMigrationSummary extends MigrationSummary { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("executingJobId") + private String executingJobId; + + public Builder executingJobId(String executingJobId) { + this.executingJobId = executingJobId; + this.__explicitlySet__.add("executingJobId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") + private java.util.Date timeCreated; + + public Builder timeCreated(java.util.Date timeCreated) { + this.timeCreated = timeCreated; + this.__explicitlySet__.add("timeCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") + private java.util.Date timeUpdated; + + public Builder timeUpdated(java.util.Date timeUpdated) { + this.timeUpdated = timeUpdated; + this.__explicitlySet__.add("timeUpdated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("timeLastMigration") + private java.util.Date timeLastMigration; + + public Builder timeLastMigration(java.util.Date timeLastMigration) { + this.timeLastMigration = timeLastMigration; + this.__explicitlySet__.add("timeLastMigration"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") + private MigrationLifecycleStates lifecycleState; + + public Builder lifecycleState(MigrationLifecycleStates lifecycleState) { + this.lifecycleState = lifecycleState; + this.__explicitlySet__.add("lifecycleState"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("lifecycleDetails") + private MigrationStatus lifecycleDetails; + + public Builder lifecycleDetails(MigrationStatus lifecycleDetails) { + this.lifecycleDetails = lifecycleDetails; + this.__explicitlySet__.add("lifecycleDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("systemTags") + private java.util.Map> systemTags; + + public Builder systemTags(java.util.Map> systemTags) { + this.systemTags = systemTags; + this.__explicitlySet__.add("systemTags"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleMigrationSummary build() { + OracleMigrationSummary model = + new OracleMigrationSummary( + this.id, + this.displayName, + this.compartmentId, + this.type, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.executingJobId, + this.timeCreated, + this.timeUpdated, + this.timeLastMigration, + this.lifecycleState, + this.lifecycleDetails, + this.freeformTags, + this.definedTags, + this.systemTags, + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleMigrationSummary model) { + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("executingJobId")) { + this.executingJobId(model.getExecutingJobId()); + } + if (model.wasPropertyExplicitlySet("timeCreated")) { + this.timeCreated(model.getTimeCreated()); + } + if (model.wasPropertyExplicitlySet("timeUpdated")) { + this.timeUpdated(model.getTimeUpdated()); + } + if (model.wasPropertyExplicitlySet("timeLastMigration")) { + this.timeLastMigration(model.getTimeLastMigration()); + } + if (model.wasPropertyExplicitlySet("lifecycleState")) { + this.lifecycleState(model.getLifecycleState()); + } + if (model.wasPropertyExplicitlySet("lifecycleDetails")) { + this.lifecycleDetails(model.getLifecycleDetails()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("systemTags")) { + this.systemTags(model.getSystemTags()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleMigrationSummary( + String id, + String displayName, + String compartmentId, + MigrationTypes type, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + String executingJobId, + java.util.Date timeCreated, + java.util.Date timeUpdated, + java.util.Date timeLastMigration, + MigrationLifecycleStates lifecycleState, + MigrationStatus lifecycleDetails, + java.util.Map freeformTags, + java.util.Map> definedTags, + java.util.Map> systemTags, + String sourceContainerDatabaseConnectionId) { + super( + id, + displayName, + compartmentId, + type, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + executingJobId, + timeCreated, + timeUpdated, + timeLastMigration, + lifecycleState, + lifecycleDetails, + freeformTags, + definedTags, + systemTags); + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleMigrationSummary("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleMigrationSummary)) { + return false; + } + + OracleMigrationSummary other = (OracleMigrationSummary) o; + return java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleNfsDataTransferMediumDetails.java similarity index 69% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DumpTransferDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleNfsDataTransferMediumDetails.java index 849b2f7f1db..6e737e7c22d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/DumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleNfsDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer.
+ * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,28 +15,28 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = DumpTransferDetails.Builder.class) + builder = OracleNfsDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class DumpTransferDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"source", "target", "sharedStorageMountTargetId"}) - public DumpTransferDetails( - HostDumpTransferDetails source, - HostDumpTransferDetails target, - String sharedStorageMountTargetId) { - super(); - this.source = source; - this.target = target; - this.sharedStorageMountTargetId = sharedStorageMountTargetId; - } - +public final class OracleNfsDataTransferMediumDetails extends OracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private ObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("source") private HostDumpTransferDetails source; @@ -73,10 +73,13 @@ public Builder sharedStorageMountTargetId(String sharedStorageMountTargetId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public DumpTransferDetails build() { - DumpTransferDetails model = - new DumpTransferDetails( - this.source, this.target, this.sharedStorageMountTargetId); + public OracleNfsDataTransferMediumDetails build() { + OracleNfsDataTransferMediumDetails model = + new OracleNfsDataTransferMediumDetails( + this.objectStorageBucket, + this.source, + this.target, + this.sharedStorageMountTargetId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -84,7 +87,10 @@ public DumpTransferDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(DumpTransferDetails model) { + public Builder copy(OracleNfsDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } @@ -107,6 +113,26 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public OracleNfsDataTransferMediumDetails( + ObjectStoreBucket objectStorageBucket, + HostDumpTransferDetails source, + HostDumpTransferDetails target, + String sharedStorageMountTargetId) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.source = source; + this.target = target; + this.sharedStorageMountTargetId = sharedStorageMountTargetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final ObjectStoreBucket objectStorageBucket; + + public ObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + @com.fasterxml.jackson.annotation.JsonProperty("source") private final HostDumpTransferDetails source; @@ -147,9 +173,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("DumpTransferDetails("); - sb.append("super=").append(super.toString()); - sb.append("source=").append(String.valueOf(this.source)); + sb.append("OracleNfsDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", source=").append(String.valueOf(this.source)); sb.append(", target=").append(String.valueOf(this.target)); sb.append(", sharedStorageMountTargetId=") .append(String.valueOf(this.sharedStorageMountTargetId)); @@ -162,12 +189,13 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DumpTransferDetails)) { + if (!(o instanceof OracleNfsDataTransferMediumDetails)) { return false; } - DumpTransferDetails other = (DumpTransferDetails) o; - return java.util.Objects.equals(this.source, other.source) + OracleNfsDataTransferMediumDetails other = (OracleNfsDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.source, other.source) && java.util.Objects.equals(this.target, other.target) && java.util.Objects.equals( this.sharedStorageMountTargetId, other.sharedStorageMountTargetId) @@ -177,7 +205,12 @@ public boolean equals(Object o) { @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); result = @@ -185,7 +218,6 @@ public int hashCode() { + (this.sharedStorageMountTargetId == null ? 43 : this.sharedStorageMountTargetId.hashCode()); - result = (result * PRIME) + super.hashCode(); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleObjectStorageDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleObjectStorageDataTransferMediumDetails.java new file mode 100644 index 00000000000..6fb4eabac1b --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/OracleObjectStorageDataTransferMediumDetails.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.databasemigration.model; + +/** + * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = OracleObjectStorageDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class OracleObjectStorageDataTransferMediumDetails + extends OracleDataTransferMediumDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private ObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private HostDumpTransferDetails source; + + public Builder source(HostDumpTransferDetails source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("target") + private HostDumpTransferDetails target; + + public Builder target(HostDumpTransferDetails target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public OracleObjectStorageDataTransferMediumDetails build() { + OracleObjectStorageDataTransferMediumDetails model = + new OracleObjectStorageDataTransferMediumDetails( + this.objectStorageBucket, this.source, this.target); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(OracleObjectStorageDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public OracleObjectStorageDataTransferMediumDetails( + ObjectStoreBucket objectStorageBucket, + HostDumpTransferDetails source, + HostDumpTransferDetails target) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.source = source; + this.target = target; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final ObjectStoreBucket objectStorageBucket; + + public ObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final HostDumpTransferDetails source; + + public HostDumpTransferDetails getSource() { + return source; + } + + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final HostDumpTransferDetails target; + + public HostDumpTransferDetails getTarget() { + return target; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("OracleObjectStorageDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof OracleObjectStorageDataTransferMediumDetails)) { + return false; + } + + OracleObjectStorageDataTransferMediumDetails other = + (OracleObjectStorageDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.target, other.target) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractEntry.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractEntry.java index a6b0f6cda2f..c956f2b71b9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractEntry.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractEntry.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = PhaseExtractEntry.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractTypes.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractTypes.java index 6b703f8e3f4..52ca3062490 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractTypes.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseExtractTypes.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Job Phase extract type. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum PhaseExtractTypes implements com.oracle.bmc.http.internal.BmcEnum { Error("ERROR"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseStatus.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseStatus.java index ddfa9c53194..0d4eaed39d7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseStatus.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PhaseStatus.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = PhaseStatus.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrimaryKeyCompatibility.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrimaryKeyCompatibility.java new file mode 100644 index 00000000000..7f1bb0fbddf --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrimaryKeyCompatibility.java @@ -0,0 +1,59 @@ +/** + * 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.databasemigration.model; + +/** + * Primary Key Compatibility option. IGNORE_MISSING_PKS - Make the instance, schema, or table dump + * utility ignore any missing primary keys when the dump is carried out, CREATE_INVISIBLE_PKS - Add + * a flag in the dump metadata to notify MySQL Shell\u2019s dump loading utility to add primary keys + * in invisible columns, for each table that does not contain a primary key. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum PrimaryKeyCompatibility implements com.oracle.bmc.http.internal.BmcEnum { + None("NONE"), + IgnoreMissingPks("IGNORE_MISSING_PKS"), + CreateInvisiblePks("CREATE_INVISIBLE_PKS"), + + /** + * This value is used if a service returns a value for this enum that is not recognized by this + * version of the SDK. + */ + UnknownEnumValue(null); + + private static final org.slf4j.Logger LOG = + org.slf4j.LoggerFactory.getLogger(PrimaryKeyCompatibility.class); + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (PrimaryKeyCompatibility v : PrimaryKeyCompatibility.values()) { + if (v != UnknownEnumValue) { + map.put(v.getValue(), v); + } + } + } + + PrimaryKeyCompatibility(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static PrimaryKeyCompatibility create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + LOG.warn( + "Received unknown value '{}' for enum 'PrimaryKeyCompatibility', returning UnknownEnumValue", + key); + return UnknownEnumValue; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrivateEndpointDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrivateEndpointDetails.java deleted file mode 100644 index 302dc269f64..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/PrivateEndpointDetails.java +++ /dev/null @@ -1,275 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * OCI Private Endpoint configuration details.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = PrivateEndpointDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class PrivateEndpointDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "vcnId", "subnetId", "id"}) - public PrivateEndpointDetails(String compartmentId, String vcnId, String subnetId, String id) { - super(); - this.compartmentId = compartmentId; - this.vcnId = vcnId; - this.subnetId = subnetId; - this.id = id; - } - - @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 - * compartment to contain the private endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * VCN where the Private Endpoint will be bound to. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * VCN where the Private Endpoint will be bound to. - * - * @param vcnId the value to set - * @return this builder - */ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - */ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - * - * @param subnetId the value to set - * @return this builder - */ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - /** - * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a - * previously created Private Endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private String id; - - /** - * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a - * previously created Private Endpoint. - * - * @param id the value to set - * @return this builder - */ - public Builder id(String id) { - this.id = id; - this.__explicitlySet__.add("id"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public PrivateEndpointDetails build() { - PrivateEndpointDetails model = - new PrivateEndpointDetails( - this.compartmentId, this.vcnId, this.subnetId, this.id); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(PrivateEndpointDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - if (model.wasPropertyExplicitlySet("id")) { - this.id(model.getId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN - * where the Private Endpoint will be bound to. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private final String vcnId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN - * where the Private Endpoint will be bound to. - * - * @return the value - */ - public String getVcnId() { - return vcnId; - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - */ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - * - * @return the value - */ - public String getSubnetId() { - return subnetId; - } - - /** - * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a - * previously created Private Endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("id") - private final String id; - - /** - * [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of a - * previously created Private Endpoint. - * - * @return the value - */ - public String getId() { - return id; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("PrivateEndpointDetails("); - sb.append("super=").append(super.toString()); - 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(", id=").append(String.valueOf(this.id)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof PrivateEndpointDetails)) { - return false; - } - - PrivateEndpointDetails other = (PrivateEndpointDetails) o; - return 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.id, other.id) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.vcnId == null ? 43 : this.vcnId.hashCode()); - result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); - result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReasonKeywords.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReasonKeywords.java index 2f50ad0e7b2..124516d0dce 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReasonKeywords.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReasonKeywords.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Object exclusion reason category. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ReasonKeywords implements com.oracle.bmc.http.internal.BmcEnum { OracleMaintained("ORACLE_MAINTAINED"), GgUnsupported("GG_UNSUPPORTED"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Replicat.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Replicat.java index 4e97466e39e..3c7cfda3592 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Replicat.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/Replicat.java @@ -15,28 +15,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = Replicat.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class Replicat extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({ - "performanceProfile", - "mapParallelism", - "minApplyParallelism", - "maxApplyParallelism" - }) - public Replicat( - ReplicatPerformanceProfile performanceProfile, - Integer mapParallelism, - Integer minApplyParallelism, - Integer maxApplyParallelism) { + @java.beans.ConstructorProperties({"performanceProfile"}) + public Replicat(ReplicatPerformanceProfile performanceProfile) { super(); this.performanceProfile = performanceProfile; - this.mapParallelism = mapParallelism; - this.minApplyParallelism = minApplyParallelism; - this.maxApplyParallelism = maxApplyParallelism; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -56,70 +44,12 @@ public Builder performanceProfile(ReplicatPerformanceProfile performanceProfile) this.__explicitlySet__.add("performanceProfile"); return this; } - /** Number of threads used to read trail files (valid for Parallel Replicat) */ - @com.fasterxml.jackson.annotation.JsonProperty("mapParallelism") - private Integer mapParallelism; - - /** - * Number of threads used to read trail files (valid for Parallel Replicat) - * - * @param mapParallelism the value to set - * @return this builder - */ - public Builder mapParallelism(Integer mapParallelism) { - this.mapParallelism = mapParallelism; - this.__explicitlySet__.add("mapParallelism"); - return this; - } - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("minApplyParallelism") - private Integer minApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - * - * @param minApplyParallelism the value to set - * @return this builder - */ - public Builder minApplyParallelism(Integer minApplyParallelism) { - this.minApplyParallelism = minApplyParallelism; - this.__explicitlySet__.add("minApplyParallelism"); - return this; - } - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("maxApplyParallelism") - private Integer maxApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - * - * @param maxApplyParallelism the value to set - * @return this builder - */ - public Builder maxApplyParallelism(Integer maxApplyParallelism) { - this.maxApplyParallelism = maxApplyParallelism; - this.__explicitlySet__.add("maxApplyParallelism"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public Replicat build() { - Replicat model = - new Replicat( - this.performanceProfile, - this.mapParallelism, - this.minApplyParallelism, - this.maxApplyParallelism); + Replicat model = new Replicat(this.performanceProfile); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -131,15 +61,6 @@ public Builder copy(Replicat model) { if (model.wasPropertyExplicitlySet("performanceProfile")) { this.performanceProfile(model.getPerformanceProfile()); } - if (model.wasPropertyExplicitlySet("mapParallelism")) { - this.mapParallelism(model.getMapParallelism()); - } - if (model.wasPropertyExplicitlySet("minApplyParallelism")) { - this.minApplyParallelism(model.getMinApplyParallelism()); - } - if (model.wasPropertyExplicitlySet("maxApplyParallelism")) { - this.maxApplyParallelism(model.getMaxApplyParallelism()); - } return this; } } @@ -166,53 +87,6 @@ public ReplicatPerformanceProfile getPerformanceProfile() { return performanceProfile; } - /** Number of threads used to read trail files (valid for Parallel Replicat) */ - @com.fasterxml.jackson.annotation.JsonProperty("mapParallelism") - private final Integer mapParallelism; - - /** - * Number of threads used to read trail files (valid for Parallel Replicat) - * - * @return the value - */ - public Integer getMapParallelism() { - return mapParallelism; - } - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("minApplyParallelism") - private final Integer minApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - * - * @return the value - */ - public Integer getMinApplyParallelism() { - return minApplyParallelism; - } - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("maxApplyParallelism") - private final Integer maxApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - * - * @return the value - */ - public Integer getMaxApplyParallelism() { - return maxApplyParallelism; - } - @Override public String toString() { return this.toString(true); @@ -229,9 +103,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("Replicat("); sb.append("super=").append(super.toString()); sb.append("performanceProfile=").append(String.valueOf(this.performanceProfile)); - sb.append(", mapParallelism=").append(String.valueOf(this.mapParallelism)); - sb.append(", minApplyParallelism=").append(String.valueOf(this.minApplyParallelism)); - sb.append(", maxApplyParallelism=").append(String.valueOf(this.maxApplyParallelism)); sb.append(")"); return sb.toString(); } @@ -247,9 +118,6 @@ public boolean equals(Object o) { Replicat other = (Replicat) o; return java.util.Objects.equals(this.performanceProfile, other.performanceProfile) - && java.util.Objects.equals(this.mapParallelism, other.mapParallelism) - && java.util.Objects.equals(this.minApplyParallelism, other.minApplyParallelism) - && java.util.Objects.equals(this.maxApplyParallelism, other.maxApplyParallelism) && super.equals(other); } @@ -262,19 +130,6 @@ public int hashCode() { + (this.performanceProfile == null ? 43 : this.performanceProfile.hashCode()); - result = - (result * PRIME) - + (this.mapParallelism == null ? 43 : this.mapParallelism.hashCode()); - result = - (result * PRIME) - + (this.minApplyParallelism == null - ? 43 - : this.minApplyParallelism.hashCode()); - result = - (result * PRIME) - + (this.maxApplyParallelism == null - ? 43 - : this.maxApplyParallelism.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReplicatPerformanceProfile.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReplicatPerformanceProfile.java index 58e36247e91..739aa1ce509 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReplicatPerformanceProfile.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ReplicatPerformanceProfile.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** GoldenGate Replicat performance profile */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ReplicatPerformanceProfile implements com.oracle.bmc.http.internal.BmcEnum { Low("LOW"), High("HIGH"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultError.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultError.java index 50500ac0b05..04f45044115 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultError.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultError.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResultError.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultType.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultType.java index ce413e1dad9..c9faafaefe9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultType.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResultType.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Type of Result. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum ResultType implements com.oracle.bmc.http.internal.BmcEnum { Succeeded("SUCCEEDED"), Failed("FAILED"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResumeJobDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResumeJobDetails.java index 94c4f1fa680..19168901aca 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResumeJobDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ResumeJobDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = ResumeJobDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SortOrders.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SortOrders.java index a75c02c81a7..f2a393a3f9c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SortOrders.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SortOrders.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** Sort orders. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public enum SortOrders implements com.oracle.bmc.http.internal.BmcEnum { Asc("ASC"), Desc("DESC"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SshDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SshDetails.java deleted file mode 100644 index da39b87b05f..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/SshDetails.java +++ /dev/null @@ -1,202 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details of the SSH key that will be used.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = SshDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class SshDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"host", "user", "sudoLocation"}) - public SshDetails(String host, String user, String sudoLocation) { - super(); - this.host = host; - this.user = user; - this.sudoLocation = sudoLocation; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Name of the host the SSH key is valid for. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private String host; - - /** - * Name of the host the SSH key is valid for. - * - * @param host the value to set - * @return this builder - */ - public Builder host(String host) { - this.host = host; - this.__explicitlySet__.add("host"); - return this; - } - /** SSH user */ - @com.fasterxml.jackson.annotation.JsonProperty("user") - private String user; - - /** - * SSH user - * - * @param user the value to set - * @return this builder - */ - public Builder user(String user) { - this.user = user; - this.__explicitlySet__.add("user"); - return this; - } - /** Sudo location */ - @com.fasterxml.jackson.annotation.JsonProperty("sudoLocation") - private String sudoLocation; - - /** - * Sudo location - * - * @param sudoLocation the value to set - * @return this builder - */ - public Builder sudoLocation(String sudoLocation) { - this.sudoLocation = sudoLocation; - this.__explicitlySet__.add("sudoLocation"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public SshDetails build() { - SshDetails model = new SshDetails(this.host, this.user, this.sudoLocation); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(SshDetails model) { - if (model.wasPropertyExplicitlySet("host")) { - this.host(model.getHost()); - } - if (model.wasPropertyExplicitlySet("user")) { - this.user(model.getUser()); - } - if (model.wasPropertyExplicitlySet("sudoLocation")) { - this.sudoLocation(model.getSudoLocation()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Name of the host the SSH key is valid for. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private final String host; - - /** - * Name of the host the SSH key is valid for. - * - * @return the value - */ - public String getHost() { - return host; - } - - /** SSH user */ - @com.fasterxml.jackson.annotation.JsonProperty("user") - private final String user; - - /** - * SSH user - * - * @return the value - */ - public String getUser() { - return user; - } - - /** Sudo location */ - @com.fasterxml.jackson.annotation.JsonProperty("sudoLocation") - private final String sudoLocation; - - /** - * Sudo location - * - * @return the value - */ - public String getSudoLocation() { - return sudoLocation; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("SshDetails("); - sb.append("super=").append(super.toString()); - sb.append("host=").append(String.valueOf(this.host)); - sb.append(", user=").append(String.valueOf(this.user)); - sb.append(", sudoLocation=").append(String.valueOf(this.sudoLocation)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof SshDetails)) { - return false; - } - - SshDetails other = (SshDetails) o; - return java.util.Objects.equals(this.host, other.host) - && java.util.Objects.equals(this.user, other.user) - && java.util.Objects.equals(this.sudoLocation, other.sudoLocation) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); - result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); - result = (result * PRIME) + (this.sudoLocation == null ? 43 : this.sudoLocation.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/StartMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/StartMigrationDetails.java index 609a1657627..31be885ddcc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/StartMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/StartMigrationDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = StartMigrationDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TargetTypeTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TargetTypeTablespaceDetails.java index 3a92a84bce3..d0e4c5e0d7f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TargetTypeTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TargetTypeTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TechnologyType.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TechnologyType.java new file mode 100644 index 00000000000..59b1ca08845 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/TechnologyType.java @@ -0,0 +1,51 @@ +/** + * 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.databasemigration.model; + +/** + * The specific database technology for a type of database connection. Example: + * OCI_AUTONOMOUS_DATABASE for an ORACLE connection type. + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +public enum TechnologyType implements com.oracle.bmc.http.internal.BmcEnum { + OciAutonomousDatabase("OCI_AUTONOMOUS_DATABASE"), + OciMysql("OCI_MYSQL"), + OracleDatabase("ORACLE_DATABASE"), + OracleExadata("ORACLE_EXADATA"), + AmazonRdsOracle("AMAZON_RDS_ORACLE"), + AmazonAuroraMysql("AMAZON_AURORA_MYSQL"), + AmazonRdsMysql("AMAZON_RDS_MYSQL"), + AzureMysql("AZURE_MYSQL"), + GoogleCloudSqlMysql("GOOGLE_CLOUD_SQL_MYSQL"), + MysqlServer("MYSQL_SERVER"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (TechnologyType v : TechnologyType.values()) { + map.put(v.getValue(), v); + } + } + + TechnologyType(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static TechnologyType create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid TechnologyType: " + key); + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UnsupportedDatabaseObject.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UnsupportedDatabaseObject.java index dc0ba8458a1..962f0b6216e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UnsupportedDatabaseObject.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UnsupportedDatabaseObject.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UnsupportedDatabaseObject.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedAutoCreateTablespaceDetails.java index 8f7761cb465..ad4421d61cc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedAutoCreateTablespaceDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using auto create feature.
+ * Auto create tablespace settings that are valid for Dedicated Autonomous Databases.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateADBDedicatedAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -28,12 +28,16 @@ public final class UpdateADBDedicatedAutoCreateTablespaceDetails extends UpdateTargetTypeTablespaceDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** True to auto-create tablespace in the target Database. */ + /** + * Set this property to true to auto-create tablespaces in the target Database. Note: This + * is not applicable for Autonomous Database Serverless databases. + */ @com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate") private Boolean isAutoCreate; /** - * True to auto-create tablespace in the target Database. + * Set this property to true to auto-create tablespaces in the target Database. Note: This + * is not applicable for Autonomous Database Serverless databases. * * @param isAutoCreate the value to set * @return this builder @@ -43,12 +47,12 @@ public Builder isAutoCreate(Boolean isAutoCreate) { this.__explicitlySet__.add("isAutoCreate"); return this; } - /** True set tablespace to big file. */ + /** Set this property to true to enable tablespace of the type big file. */ @com.fasterxml.jackson.annotation.JsonProperty("isBigFile") private Boolean isBigFile; /** - * True set tablespace to big file. + * Set this property to true to enable tablespace of the type big file. * * @param isBigFile the value to set * @return this builder @@ -58,12 +62,16 @@ public Builder isBigFile(Boolean isBigFile) { this.__explicitlySet__.add("isBigFile"); return this; } - /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */ + /** + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set + * to true. + */ @com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs") private Integer extendSizeInMBs; /** - * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set + * to true. * * @param extendSizeInMBs the value to set * @return this builder @@ -145,12 +153,16 @@ public UpdateADBDedicatedAutoCreateTablespaceDetails( this.blockSizeInKBs = blockSizeInKBs; } - /** True to auto-create tablespace in the target Database. */ + /** + * Set this property to true to auto-create tablespaces in the target Database. Note: This is + * not applicable for Autonomous Database Serverless databases. + */ @com.fasterxml.jackson.annotation.JsonProperty("isAutoCreate") private final Boolean isAutoCreate; /** - * True to auto-create tablespace in the target Database. + * Set this property to true to auto-create tablespaces in the target Database. Note: This is + * not applicable for Autonomous Database Serverless databases. * * @return the value */ @@ -158,12 +170,12 @@ public Boolean getIsAutoCreate() { return isAutoCreate; } - /** True set tablespace to big file. */ + /** Set this property to true to enable tablespace of the type big file. */ @com.fasterxml.jackson.annotation.JsonProperty("isBigFile") private final Boolean isBigFile; /** - * True set tablespace to big file. + * Set this property to true to enable tablespace of the type big file. * * @return the value */ @@ -171,12 +183,16 @@ public Boolean getIsBigFile() { return isBigFile; } - /** Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. */ + /** + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to + * true. + */ @com.fasterxml.jackson.annotation.JsonProperty("extendSizeInMBs") private final Integer extendSizeInMBs; /** - * Size of extend in MB. Can only be specified if 'isBigFile' property is set to true. + * Size to extend the tablespace in MB. Note: Only applicable if 'isBigFile' property is set to + * true. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedRemapTargetTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedRemapTargetTablespaceDetails.java index 40185681e63..cd7a1176808 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedRemapTargetTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBDedicatedRemapTargetTablespaceDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-D target type using remap target.
+ * Remap tablespace settings that are valid for Dedicated Autonomous Databases.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateADBDedicatedRemapTargetTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( @@ -29,13 +29,15 @@ public final class UpdateADBDedicatedRemapTargetTablespaceDetails @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private String remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is + * to be remapped. * * @param remapTarget the value to set * @return this builder @@ -82,12 +84,16 @@ public UpdateADBDedicatedRemapTargetTablespaceDetails(String remapTarget) { this.remapTarget = remapTarget; } - /** Name of tablespace at target to which the source database tablespace need to be remapped. */ + /** + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. + */ @com.fasterxml.jackson.annotation.JsonProperty("remapTarget") private final String remapTarget; /** - * Name of tablespace at target to which the source database tablespace need to be remapped. + * Name of the tablespace on the target database to which the source database tablespace is to + * be remapped. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBServerlesTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBServerlesTablespaceDetails.java index a6b6ed78746..41abd6af4fa 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBServerlesTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateADBServerlesTablespaceDetails.java @@ -5,7 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Migration tablespace settings valid for ADB-S target type using remap feature.
+ * Migration tablespace settings valid for Autonomous Database Serverless target type using remap + * 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 @@ -15,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateADBServerlesTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java index f3f21beac3f..b3f417b3179 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAdminCredentials.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateAdminCredentials.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAgentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAgentDetails.java deleted file mode 100644 index b2363235d0e..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAgentDetails.java +++ /dev/null @@ -1,346 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * ODMS Agent Details
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateAgentDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateAgentDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "displayName", - "streamId", - "publicKey", - "version", - "freeformTags", - "definedTags" - }) - public UpdateAgentDetails( - String displayName, - String streamId, - String publicKey, - String version, - java.util.Map freeformTags, - java.util.Map> definedTags) { - super(); - this.displayName = displayName; - this.streamId = streamId; - this.publicKey = publicKey; - this.version = version; - this.freeformTags = freeformTags; - this.definedTags = definedTags; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** ODMS Agent name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * ODMS Agent name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** The OCID of the Stream */ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private String streamId; - - /** - * The OCID of the Stream - * - * @param streamId the value to set - * @return this builder - */ - public Builder streamId(String streamId) { - this.streamId = streamId; - this.__explicitlySet__.add("streamId"); - return this; - } - /** ODMS Agent public key. */ - @com.fasterxml.jackson.annotation.JsonProperty("publicKey") - private String publicKey; - - /** - * ODMS Agent public key. - * - * @param publicKey the value to set - * @return this builder - */ - public Builder publicKey(String publicKey) { - this.publicKey = publicKey; - this.__explicitlySet__.add("publicKey"); - return this; - } - /** ODMS Agent version */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private String version; - - /** - * ODMS Agent version - * - * @param version the value to set - * @return this builder - */ - public Builder version(String version) { - this.version = version; - this.__explicitlySet__.add("version"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateAgentDetails build() { - UpdateAgentDetails model = - new UpdateAgentDetails( - this.displayName, - this.streamId, - this.publicKey, - this.version, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateAgentDetails model) { - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("streamId")) { - this.streamId(model.getStreamId()); - } - if (model.wasPropertyExplicitlySet("publicKey")) { - this.publicKey(model.getPublicKey()); - } - if (model.wasPropertyExplicitlySet("version")) { - this.version(model.getVersion()); - } - 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); - } - - /** ODMS Agent name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private final String displayName; - - /** - * ODMS Agent name - * - * @return the value - */ - public String getDisplayName() { - return displayName; - } - - /** The OCID of the Stream */ - @com.fasterxml.jackson.annotation.JsonProperty("streamId") - private final String streamId; - - /** - * The OCID of the Stream - * - * @return the value - */ - public String getStreamId() { - return streamId; - } - - /** ODMS Agent public key. */ - @com.fasterxml.jackson.annotation.JsonProperty("publicKey") - private final String publicKey; - - /** - * ODMS Agent public key. - * - * @return the value - */ - public String getPublicKey() { - return publicKey; - } - - /** ODMS Agent version */ - @com.fasterxml.jackson.annotation.JsonProperty("version") - private final String version; - - /** - * ODMS Agent version - * - * @return the value - */ - public String getVersion() { - return version; - } - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @return the value - */ - public java.util.Map getFreeformTags() { - return freeformTags; - } - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @return the value - */ - public java.util.Map> getDefinedTags() { - return definedTags; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateAgentDetails("); - sb.append("super=").append(super.toString()); - sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", streamId=").append(String.valueOf(this.streamId)); - sb.append(", publicKey=").append(String.valueOf(this.publicKey)); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateAgentDetails)) { - return false; - } - - UpdateAgentDetails other = (UpdateAgentDetails) o; - return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.streamId, other.streamId) - && java.util.Objects.equals(this.publicKey, other.publicKey) - && java.util.Objects.equals(this.version, other.version) - && java.util.Objects.equals(this.freeformTags, other.freeformTags) - && java.util.Objects.equals(this.definedTags, other.definedTags) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.streamId == null ? 43 : this.streamId.hashCode()); - result = (result * PRIME) + (this.publicKey == null ? 43 : this.publicKey.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) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectDescriptor.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectDescriptor.java deleted file mode 100644 index d1cea4dd70e..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectDescriptor.java +++ /dev/null @@ -1,269 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Connect Descriptor details. If a Private Endpoint was specified in the Connection, the host entry - * should be a valid IP address.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateConnectDescriptor.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateConnectDescriptor - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"host", "port", "databaseServiceName", "connectString"}) - public UpdateConnectDescriptor( - String host, Integer port, String databaseServiceName, String connectString) { - super(); - this.host = host; - this.port = port; - this.databaseServiceName = databaseServiceName; - this.connectString = connectString; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Host or IP address of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private String host; - - /** - * Host or IP address of the connect descriptor. - * - * @param host the value to set - * @return this builder - */ - public Builder host(String host) { - this.host = host; - this.__explicitlySet__.add("host"); - return this; - } - /** Port of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("port") - private Integer port; - - /** - * Port of the connect descriptor. - * - * @param port the value to set - * @return this builder - */ - public Builder port(Integer port) { - this.port = port; - this.__explicitlySet__.add("port"); - return this; - } - /** Database service name. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName") - private String databaseServiceName; - - /** - * Database service name. - * - * @param databaseServiceName the value to set - * @return this builder - */ - public Builder databaseServiceName(String databaseServiceName) { - this.databaseServiceName = databaseServiceName; - this.__explicitlySet__.add("databaseServiceName"); - return this; - } - /** - * Connect String. If specified, this will override the stored connect descriptor details. - * If a Private Endpoint was specified in the Connection, the host entry should be a valid - * IP address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - */ - @com.fasterxml.jackson.annotation.JsonProperty("connectString") - private String connectString; - - /** - * Connect String. If specified, this will override the stored connect descriptor details. - * If a Private Endpoint was specified in the Connection, the host entry should be a valid - * IP address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - * - * @param connectString the value to set - * @return this builder - */ - public Builder connectString(String connectString) { - this.connectString = connectString; - this.__explicitlySet__.add("connectString"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateConnectDescriptor build() { - UpdateConnectDescriptor model = - new UpdateConnectDescriptor( - this.host, this.port, this.databaseServiceName, this.connectString); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateConnectDescriptor model) { - if (model.wasPropertyExplicitlySet("host")) { - this.host(model.getHost()); - } - if (model.wasPropertyExplicitlySet("port")) { - this.port(model.getPort()); - } - if (model.wasPropertyExplicitlySet("databaseServiceName")) { - this.databaseServiceName(model.getDatabaseServiceName()); - } - if (model.wasPropertyExplicitlySet("connectString")) { - this.connectString(model.getConnectString()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Host or IP address of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private final String host; - - /** - * Host or IP address of the connect descriptor. - * - * @return the value - */ - public String getHost() { - return host; - } - - /** Port of the connect descriptor. */ - @com.fasterxml.jackson.annotation.JsonProperty("port") - private final Integer port; - - /** - * Port of the connect descriptor. - * - * @return the value - */ - public Integer getPort() { - return port; - } - - /** Database service name. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseServiceName") - private final String databaseServiceName; - - /** - * Database service name. - * - * @return the value - */ - public String getDatabaseServiceName() { - return databaseServiceName; - } - - /** - * Connect String. If specified, this will override the stored connect descriptor details. If a - * Private Endpoint was specified in the Connection, the host entry should be a valid IP - * address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - */ - @com.fasterxml.jackson.annotation.JsonProperty("connectString") - private final String connectString; - - /** - * Connect String. If specified, this will override the stored connect descriptor details. If a - * Private Endpoint was specified in the Connection, the host entry should be a valid IP - * address. Supported formats: Easy connect: :/ Long format: - * (description= - * (address=(port=)(host=))(connect_data=(service_name=))) - * - * @return the value - */ - public String getConnectString() { - return connectString; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateConnectDescriptor("); - sb.append("super=").append(super.toString()); - sb.append("host=").append(String.valueOf(this.host)); - sb.append(", port=").append(String.valueOf(this.port)); - sb.append(", databaseServiceName=").append(String.valueOf(this.databaseServiceName)); - sb.append(", connectString=").append(String.valueOf(this.connectString)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateConnectDescriptor)) { - return false; - } - - UpdateConnectDescriptor other = (UpdateConnectDescriptor) o; - return java.util.Objects.equals(this.host, other.host) - && java.util.Objects.equals(this.port, other.port) - && java.util.Objects.equals(this.databaseServiceName, other.databaseServiceName) - && java.util.Objects.equals(this.connectString, other.connectString) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); - result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); - result = - (result * PRIME) - + (this.databaseServiceName == null - ? 43 - : this.databaseServiceName.hashCode()); - result = - (result * PRIME) - + (this.connectString == null ? 43 : this.connectString.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java index f928d3e8fbe..fa65cd44281 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateConnectionDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Details to update in a Database Connection resource.
+ * The information to update a Connection.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,351 +15,77 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateConnectionDetails.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "connectionType", + defaultImpl = UpdateConnectionDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleConnectionDetails.class, + name = "ORACLE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateMysqlConnectionDetails.class, + name = "MYSQL") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateConnectionDetails +public class UpdateConnectionDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "displayName", - "databaseId", - "connectDescriptor", - "certificateTdn", - "tlsWallet", - "tlsKeystore", - "sshDetails", - "adminCredentials", - "replicationCredentials", - "privateEndpoint", - "vaultDetails", + "description", "freeformTags", "definedTags", - "nsgIds" + "vaultId", + "keyId", + "subnetId", + "nsgIds", + "username", + "password", + "replicationUsername", + "replicationPassword" }) - public UpdateConnectionDetails( + protected UpdateConnectionDetails( String displayName, - String databaseId, - UpdateConnectDescriptor connectDescriptor, - String certificateTdn, - String tlsWallet, - String tlsKeystore, - UpdateSshDetails sshDetails, - UpdateAdminCredentials adminCredentials, - UpdateAdminCredentials replicationCredentials, - UpdatePrivateEndpoint privateEndpoint, - UpdateVaultDetails vaultDetails, + String description, java.util.Map freeformTags, java.util.Map> definedTags, - java.util.List nsgIds) { + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword) { super(); this.displayName = displayName; - this.databaseId = databaseId; - this.connectDescriptor = connectDescriptor; - this.certificateTdn = certificateTdn; - this.tlsWallet = tlsWallet; - this.tlsKeystore = tlsKeystore; - this.sshDetails = sshDetails; - this.adminCredentials = adminCredentials; - this.replicationCredentials = replicationCredentials; - this.privateEndpoint = privateEndpoint; - this.vaultDetails = vaultDetails; + this.description = description; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.vaultId = vaultId; + this.keyId = keyId; + this.subnetId = subnetId; this.nsgIds = nsgIds; + this.username = username; + this.password = password; + this.replicationUsername = replicationUsername; + this.replicationPassword = replicationPassword; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Database Connection display name identifier. */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Database Connection display name identifier. - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** The OCID of the cloud database. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private String databaseId; - - /** - * The OCID of the cloud database. - * - * @param databaseId the value to set - * @return this builder - */ - public Builder databaseId(String databaseId) { - this.databaseId = databaseId; - this.__explicitlySet__.add("databaseId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private UpdateConnectDescriptor connectDescriptor; - - public Builder connectDescriptor(UpdateConnectDescriptor connectDescriptor) { - this.connectDescriptor = connectDescriptor; - this.__explicitlySet__.add("connectDescriptor"); - return this; - } - /** - * This name is the distinguished name used while creating the certificate on target - * database. Not required for source container database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private String certificateTdn; - - /** - * This name is the distinguished name used while creating the certificate on target - * database. Not required for source container database connections. - * - * @param certificateTdn the value to set - * @return this builder - */ - public Builder certificateTdn(String certificateTdn) { - this.certificateTdn = certificateTdn; - this.__explicitlySet__.add("certificateTdn"); - return this; - } - /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsWallet") - private String tlsWallet; - - /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. - * - * @param tlsWallet the value to set - * @return this builder - */ - public Builder tlsWallet(String tlsWallet) { - this.tlsWallet = tlsWallet; - this.__explicitlySet__.add("tlsWallet"); - return this; - } - /** - * keystore.jks file contents; base64 encoded String. Not required for source container - * database connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsKeystore") - private String tlsKeystore; - - /** - * keystore.jks file contents; base64 encoded String. Not required for source container - * database connections. - * - * @param tlsKeystore the value to set - * @return this builder - */ - public Builder tlsKeystore(String tlsKeystore) { - this.tlsKeystore = tlsKeystore; - this.__explicitlySet__.add("tlsKeystore"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private UpdateSshDetails sshDetails; - - public Builder sshDetails(UpdateSshDetails sshDetails) { - this.sshDetails = sshDetails; - this.__explicitlySet__.add("sshDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private UpdateAdminCredentials adminCredentials; - - public Builder adminCredentials(UpdateAdminCredentials adminCredentials) { - this.adminCredentials = adminCredentials; - this.__explicitlySet__.add("adminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private UpdateAdminCredentials replicationCredentials; - - public Builder replicationCredentials(UpdateAdminCredentials replicationCredentials) { - this.replicationCredentials = replicationCredentials; - this.__explicitlySet__.add("replicationCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private UpdatePrivateEndpoint privateEndpoint; - - public Builder privateEndpoint(UpdatePrivateEndpoint privateEndpoint) { - this.privateEndpoint = privateEndpoint; - this.__explicitlySet__.add("privateEndpoint"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private UpdateVaultDetails vaultDetails; - - public Builder vaultDetails(UpdateVaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private java.util.List nsgIds; - - /** - * An array of Network Security Group OCIDs used to define network access for Connections. - * - * @param nsgIds the value to set - * @return this builder - */ - public Builder nsgIds(java.util.List nsgIds) { - this.nsgIds = nsgIds; - this.__explicitlySet__.add("nsgIds"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateConnectionDetails build() { - UpdateConnectionDetails model = - new UpdateConnectionDetails( - this.displayName, - this.databaseId, - this.connectDescriptor, - this.certificateTdn, - this.tlsWallet, - this.tlsKeystore, - this.sshDetails, - this.adminCredentials, - this.replicationCredentials, - this.privateEndpoint, - this.vaultDetails, - this.freeformTags, - this.definedTags, - this.nsgIds); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateConnectionDetails model) { - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("databaseId")) { - this.databaseId(model.getDatabaseId()); - } - if (model.wasPropertyExplicitlySet("connectDescriptor")) { - this.connectDescriptor(model.getConnectDescriptor()); - } - if (model.wasPropertyExplicitlySet("certificateTdn")) { - this.certificateTdn(model.getCertificateTdn()); - } - if (model.wasPropertyExplicitlySet("tlsWallet")) { - this.tlsWallet(model.getTlsWallet()); - } - if (model.wasPropertyExplicitlySet("tlsKeystore")) { - this.tlsKeystore(model.getTlsKeystore()); - } - if (model.wasPropertyExplicitlySet("sshDetails")) { - this.sshDetails(model.getSshDetails()); - } - if (model.wasPropertyExplicitlySet("adminCredentials")) { - this.adminCredentials(model.getAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("replicationCredentials")) { - this.replicationCredentials(model.getReplicationCredentials()); - } - if (model.wasPropertyExplicitlySet("privateEndpoint")) { - this.privateEndpoint(model.getPrivateEndpoint()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - if (model.wasPropertyExplicitlySet("freeformTags")) { - this.freeformTags(model.getFreeformTags()); - } - if (model.wasPropertyExplicitlySet("definedTags")) { - this.definedTags(model.getDefinedTags()); - } - if (model.wasPropertyExplicitlySet("nsgIds")) { - this.nsgIds(model.getNsgIds()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Database Connection display name identifier. */ + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Database Connection display name identifier. + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ @@ -367,157 +93,161 @@ public String getDisplayName() { return displayName; } - /** The OCID of the cloud database. */ - @com.fasterxml.jackson.annotation.JsonProperty("databaseId") - private final String databaseId; + /** + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; /** - * The OCID of the cloud database. + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ - public String getDatabaseId() { - return databaseId; - } - - @com.fasterxml.jackson.annotation.JsonProperty("connectDescriptor") - private final UpdateConnectDescriptor connectDescriptor; - - public UpdateConnectDescriptor getConnectDescriptor() { - return connectDescriptor; + public String getDescription() { + return description; } /** - * This name is the distinguished name used while creating the certificate on target database. - * Not required for source container database connections. + * 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. Example: {"Department": + * "Finance"} */ - @com.fasterxml.jackson.annotation.JsonProperty("certificateTdn") - private final String certificateTdn; + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private final java.util.Map freeformTags; /** - * This name is the distinguished name used while creating the certificate on target database. - * Not required for source container database connections. + * 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. Example: {"Department": + * "Finance"} * * @return the value */ - public String getCertificateTdn() { - return certificateTdn; + public java.util.Map getFreeformTags() { + return freeformTags; } /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsWallet") - private final String tlsWallet; + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private final java.util.Map> definedTags; /** - * cwallet.sso containing containing the TCPS/SSL certificate; base64 encoded String. Not - * required for source container database connections. + * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: + * {@code {"foo-namespace": {"bar-key": "value"}}} * * @return the value */ - public String getTlsWallet() { - return tlsWallet; + public java.util.Map> getDefinedTags() { + return definedTags; } - /** - * keystore.jks file contents; base64 encoded String. Not required for source container database - * connections. - */ - @com.fasterxml.jackson.annotation.JsonProperty("tlsKeystore") - private final String tlsKeystore; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; /** - * keystore.jks file contents; base64 encoded String. Not required for source container database - * connections. + * OCI resource ID. * * @return the value */ - public String getTlsKeystore() { - return tlsKeystore; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sshDetails") - private final UpdateSshDetails sshDetails; - - public UpdateSshDetails getSshDetails() { - return sshDetails; + public String getVaultId() { + return vaultId; } - @com.fasterxml.jackson.annotation.JsonProperty("adminCredentials") - private final UpdateAdminCredentials adminCredentials; + /** The OCID of the key used in cryptographic operations. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; - public UpdateAdminCredentials getAdminCredentials() { - return adminCredentials; + /** + * The OCID of the key used in cryptographic operations. + * + * @return the value + */ + public String getKeyId() { + return keyId; } - @com.fasterxml.jackson.annotation.JsonProperty("replicationCredentials") - private final UpdateAdminCredentials replicationCredentials; + /** OCI resource ID. */ + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private final String subnetId; - public UpdateAdminCredentials getReplicationCredentials() { - return replicationCredentials; + /** + * OCI resource ID. + * + * @return the value + */ + public String getSubnetId() { + return subnetId; } - @com.fasterxml.jackson.annotation.JsonProperty("privateEndpoint") - private final UpdatePrivateEndpoint privateEndpoint; + /** An array of Network Security Group OCIDs used to define network access for Connections. */ + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private final java.util.List nsgIds; - public UpdatePrivateEndpoint getPrivateEndpoint() { - return privateEndpoint; + /** + * An array of Network Security Group OCIDs used to define network access for Connections. + * + * @return the value + */ + public java.util.List getNsgIds() { + return nsgIds; } - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final UpdateVaultDetails vaultDetails; - - public UpdateVaultDetails getVaultDetails() { - return vaultDetails; - } + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("username") + private final String username; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * The username (credential) used when creating or updating this resource. + * + * @return the value */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private final java.util.Map freeformTags; + public String getUsername() { + return username; + } + + /** The password (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("password") + private final String password; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * The password (credential) used when creating or updating this resource. * * @return the value */ - public java.util.Map getFreeformTags() { - return freeformTags; + public String getPassword() { + return password; } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private final java.util.Map> definedTags; + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private final String replicationUsername; /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: - * {@code {"foo-namespace": {"bar-key": "value"}}} + * The username (credential) used when creating or updating this resource. * * @return the value */ - public java.util.Map> getDefinedTags() { - return definedTags; + public String getReplicationUsername() { + return replicationUsername; } - /** An array of Network Security Group OCIDs used to define network access for Connections. */ - @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") - private final java.util.List nsgIds; + /** The password (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private final String replicationPassword; /** - * An array of Network Security Group OCIDs used to define network access for Connections. + * The password (credential) used when creating or updating this resource. * * @return the value */ - public java.util.List getNsgIds() { - return nsgIds; + public String getReplicationPassword() { + return replicationPassword; } @Override @@ -536,19 +266,17 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateConnectionDetails("); sb.append("super=").append(super.toString()); sb.append("displayName=").append(String.valueOf(this.displayName)); - sb.append(", databaseId=").append(String.valueOf(this.databaseId)); - sb.append(", connectDescriptor=").append(String.valueOf(this.connectDescriptor)); - sb.append(", certificateTdn=").append(String.valueOf(this.certificateTdn)); - sb.append(", tlsWallet=").append(String.valueOf(this.tlsWallet)); - sb.append(", tlsKeystore=").append(String.valueOf(this.tlsKeystore)); - sb.append(", sshDetails=").append(String.valueOf(this.sshDetails)); - sb.append(", adminCredentials=").append(String.valueOf(this.adminCredentials)); - sb.append(", replicationCredentials=").append(String.valueOf(this.replicationCredentials)); - sb.append(", privateEndpoint=").append(String.valueOf(this.privateEndpoint)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); + 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(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", subnetId=").append(String.valueOf(this.subnetId)); sb.append(", nsgIds=").append(String.valueOf(this.nsgIds)); + sb.append(", username=").append(String.valueOf(this.username)); + sb.append(", password=").append(""); + sb.append(", replicationUsername=").append(String.valueOf(this.replicationUsername)); + sb.append(", replicationPassword=").append(""); sb.append(")"); return sb.toString(); } @@ -564,20 +292,17 @@ public boolean equals(Object o) { UpdateConnectionDetails other = (UpdateConnectionDetails) o; return java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.databaseId, other.databaseId) - && java.util.Objects.equals(this.connectDescriptor, other.connectDescriptor) - && java.util.Objects.equals(this.certificateTdn, other.certificateTdn) - && java.util.Objects.equals(this.tlsWallet, other.tlsWallet) - && java.util.Objects.equals(this.tlsKeystore, other.tlsKeystore) - && java.util.Objects.equals(this.sshDetails, other.sshDetails) - && java.util.Objects.equals(this.adminCredentials, other.adminCredentials) - && java.util.Objects.equals( - this.replicationCredentials, other.replicationCredentials) - && java.util.Objects.equals(this.privateEndpoint, other.privateEndpoint) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) + && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.subnetId, other.subnetId) && java.util.Objects.equals(this.nsgIds, other.nsgIds) + && java.util.Objects.equals(this.username, other.username) + && java.util.Objects.equals(this.password, other.password) + && java.util.Objects.equals(this.replicationUsername, other.replicationUsername) + && java.util.Objects.equals(this.replicationPassword, other.replicationPassword) && super.equals(other); } @@ -586,31 +311,25 @@ public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); - result = - (result * PRIME) - + (this.connectDescriptor == null ? 43 : this.connectDescriptor.hashCode()); - result = - (result * PRIME) - + (this.certificateTdn == null ? 43 : this.certificateTdn.hashCode()); - result = (result * PRIME) + (this.tlsWallet == null ? 43 : this.tlsWallet.hashCode()); - result = (result * PRIME) + (this.tlsKeystore == null ? 43 : this.tlsKeystore.hashCode()); - result = (result * PRIME) + (this.sshDetails == null ? 43 : this.sshDetails.hashCode()); - result = - (result * PRIME) - + (this.adminCredentials == null ? 43 : this.adminCredentials.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) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.subnetId == null ? 43 : this.subnetId.hashCode()); + result = (result * PRIME) + (this.nsgIds == null ? 43 : this.nsgIds.hashCode()); + result = (result * PRIME) + (this.username == null ? 43 : this.username.hashCode()); + result = (result * PRIME) + (this.password == null ? 43 : this.password.hashCode()); result = (result * PRIME) - + (this.replicationCredentials == null + + (this.replicationUsername == null ? 43 - : this.replicationCredentials.hashCode()); + : this.replicationUsername.hashCode()); result = (result * PRIME) - + (this.privateEndpoint == null ? 43 : this.privateEndpoint.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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.nsgIds == null ? 43 : this.nsgIds.hashCode()); + + (this.replicationPassword == null + ? 43 + : this.replicationPassword.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateCurlTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateCurlTransferDetails.java index 3ee0e0fc32d..0c5bd07043b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateCurlTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateCurlTransferDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateCurlTransferDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpParameters.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpParameters.java index 001a6bc6a1a..989f7e1b223 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpParameters.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpParameters.java @@ -5,10 +5,8 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional parameters for Data Pump Export and Import. Refer to [Configuring Optional Initial Load - * Advanced - * Settings](https://docs-uat.us.oracle.com/en/cloud/paas/database-migration/dmsus/working-migration-resources.html#GUID-24BD3054-FDF8-48FF-8492-636C1D4B71ED) - * If an empty object is specified, the stored Data Pump Parameter details will be removed.
+ * Optional parameters for Data Pump Export and Import. If an empty object is specified, the stored + * Data Pump Parameter details will be removed.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -18,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDataPumpParameters.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( @@ -52,12 +50,12 @@ public UpdateDataPumpParameters( @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** Set to false to force Data Pump worker processes to run on one instance. */ + /** Set to false to force Data Pump worker process to run on one instance. */ @com.fasterxml.jackson.annotation.JsonProperty("isCluster") private Boolean isCluster; /** - * Set to false to force Data Pump worker processes to run on one instance. + * Set to false to force Data Pump worker process to run on one instance. * * @param isCluster the value to set * @return this builder @@ -101,14 +99,12 @@ public Builder tableExistsAction(DataPumpTableExistsAction tableExistsAction) { this.__explicitlySet__.add("tableExistsAction"); return this; } - /** - * Exclude paratemers for Export and Import. If specified, the stored list will be replaced. - */ + /** Exclude paratemers for Export and Import. */ @com.fasterxml.jackson.annotation.JsonProperty("excludeParameters") private java.util.List excludeParameters; /** - * Exclude paratemers for Export and Import. If specified, the stored list will be replaced. + * Exclude paratemers for Export and Import. * * @param excludeParameters the value to set * @return this builder @@ -207,12 +203,12 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** Set to false to force Data Pump worker processes to run on one instance. */ + /** Set to false to force Data Pump worker process to run on one instance. */ @com.fasterxml.jackson.annotation.JsonProperty("isCluster") private final Boolean isCluster; /** - * Set to false to force Data Pump worker processes to run on one instance. + * Set to false to force Data Pump worker process to run on one instance. * * @return the value */ @@ -248,12 +244,12 @@ public DataPumpTableExistsAction getTableExistsAction() { return tableExistsAction; } - /** Exclude paratemers for Export and Import. If specified, the stored list will be replaced. */ + /** Exclude paratemers for Export and Import. */ @com.fasterxml.jackson.annotation.JsonProperty("excludeParameters") private final java.util.List excludeParameters; /** - * Exclude paratemers for Export and Import. If specified, the stored list will be replaced. + * Exclude paratemers for Export and Import. * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataTransferMediumDetails.java deleted file mode 100644 index 638cda0a2e8..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataTransferMediumDetails.java +++ /dev/null @@ -1,188 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Data Transfer Medium details for the Migration. Only one type of data transfer medium can be - * specified, except for the case of Amazon RDS Oracle as source, where Object Storage Details along - * with AwsS3Details are required. If an empty object is specified, the stored Data Transfer Medium - * details will be removed.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDataTransferMediumDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateDataTransferMediumDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "databaseLinkDetails", - "objectStorageDetails", - "awsS3Details" - }) - public UpdateDataTransferMediumDetails( - UpdateDatabaseLinkDetails databaseLinkDetails, - UpdateObjectStoreBucket objectStorageDetails, - UpdateAwsS3Details awsS3Details) { - super(); - this.databaseLinkDetails = databaseLinkDetails; - this.objectStorageDetails = objectStorageDetails; - this.awsS3Details = awsS3Details; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("databaseLinkDetails") - private UpdateDatabaseLinkDetails databaseLinkDetails; - - public Builder databaseLinkDetails(UpdateDatabaseLinkDetails databaseLinkDetails) { - this.databaseLinkDetails = databaseLinkDetails; - this.__explicitlySet__.add("databaseLinkDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("objectStorageDetails") - private UpdateObjectStoreBucket objectStorageDetails; - - public Builder objectStorageDetails(UpdateObjectStoreBucket objectStorageDetails) { - this.objectStorageDetails = objectStorageDetails; - this.__explicitlySet__.add("objectStorageDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("awsS3Details") - private UpdateAwsS3Details awsS3Details; - - public Builder awsS3Details(UpdateAwsS3Details awsS3Details) { - this.awsS3Details = awsS3Details; - this.__explicitlySet__.add("awsS3Details"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateDataTransferMediumDetails build() { - UpdateDataTransferMediumDetails model = - new UpdateDataTransferMediumDetails( - this.databaseLinkDetails, this.objectStorageDetails, this.awsS3Details); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDataTransferMediumDetails model) { - if (model.wasPropertyExplicitlySet("databaseLinkDetails")) { - this.databaseLinkDetails(model.getDatabaseLinkDetails()); - } - if (model.wasPropertyExplicitlySet("objectStorageDetails")) { - this.objectStorageDetails(model.getObjectStorageDetails()); - } - if (model.wasPropertyExplicitlySet("awsS3Details")) { - this.awsS3Details(model.getAwsS3Details()); - } - 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("databaseLinkDetails") - private final UpdateDatabaseLinkDetails databaseLinkDetails; - - public UpdateDatabaseLinkDetails getDatabaseLinkDetails() { - return databaseLinkDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("objectStorageDetails") - private final UpdateObjectStoreBucket objectStorageDetails; - - public UpdateObjectStoreBucket getObjectStorageDetails() { - return objectStorageDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("awsS3Details") - private final UpdateAwsS3Details awsS3Details; - - public UpdateAwsS3Details getAwsS3Details() { - return awsS3Details; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDataTransferMediumDetails("); - sb.append("super=").append(super.toString()); - sb.append("databaseLinkDetails=").append(String.valueOf(this.databaseLinkDetails)); - sb.append(", objectStorageDetails=").append(String.valueOf(this.objectStorageDetails)); - sb.append(", awsS3Details=").append(String.valueOf(this.awsS3Details)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateDataTransferMediumDetails)) { - return false; - } - - UpdateDataTransferMediumDetails other = (UpdateDataTransferMediumDetails) o; - return java.util.Objects.equals(this.databaseLinkDetails, other.databaseLinkDetails) - && java.util.Objects.equals(this.objectStorageDetails, other.objectStorageDetails) - && java.util.Objects.equals(this.awsS3Details, other.awsS3Details) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.databaseLinkDetails == null - ? 43 - : this.databaseLinkDetails.hashCode()); - result = - (result * PRIME) - + (this.objectStorageDetails == null - ? 43 - : this.objectStorageDetails.hashCode()); - result = (result * PRIME) + (this.awsS3Details == null ? 43 : this.awsS3Details.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDirectoryObject.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDirectoryObject.java index bd4c5fc5029..0f8718c4ac6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDirectoryObject.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDirectoryObject.java @@ -19,7 +19,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateDirectoryObject.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateExtract.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateExtract.java index 5a24d980576..ee1aa4a93b0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateExtract.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateExtract.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UpdateExtract.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateDetails.java deleted file mode 100644 index 5c50c28a8e4..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateDetails.java +++ /dev/null @@ -1,146 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate Microservices. If an empty object is specified, the stored Golden - * Gate details will be removed.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateGoldenGateDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateGoldenGateDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"hub", "settings"}) - public UpdateGoldenGateDetails(UpdateGoldenGateHub hub, UpdateGoldenGateSettings settings) { - super(); - this.hub = hub; - this.settings = settings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("hub") - private UpdateGoldenGateHub hub; - - public Builder hub(UpdateGoldenGateHub hub) { - this.hub = hub; - this.__explicitlySet__.add("hub"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private UpdateGoldenGateSettings settings; - - public Builder settings(UpdateGoldenGateSettings settings) { - this.settings = settings; - this.__explicitlySet__.add("settings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateGoldenGateDetails build() { - UpdateGoldenGateDetails model = new UpdateGoldenGateDetails(this.hub, this.settings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateGoldenGateDetails model) { - if (model.wasPropertyExplicitlySet("hub")) { - this.hub(model.getHub()); - } - if (model.wasPropertyExplicitlySet("settings")) { - this.settings(model.getSettings()); - } - 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("hub") - private final UpdateGoldenGateHub hub; - - public UpdateGoldenGateHub getHub() { - return hub; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final UpdateGoldenGateSettings settings; - - public UpdateGoldenGateSettings getSettings() { - return settings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateGoldenGateDetails("); - sb.append("super=").append(super.toString()); - sb.append("hub=").append(String.valueOf(this.hub)); - sb.append(", settings=").append(String.valueOf(this.settings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateGoldenGateDetails)) { - return false; - } - - UpdateGoldenGateDetails other = (UpdateGoldenGateDetails) o; - return java.util.Objects.equals(this.hub, other.hub) - && java.util.Objects.equals(this.settings, other.settings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.hub == null ? 43 : this.hub.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHub.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHub.java deleted file mode 100644 index c40a62db5ae..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHub.java +++ /dev/null @@ -1,406 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about Oracle GoldenGate Microservices.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateGoldenGateHub.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateGoldenGateHub - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "restAdminCredentials", - "sourceDbAdminCredentials", - "sourceContainerDbAdminCredentials", - "targetDbAdminCredentials", - "url", - "sourceMicroservicesDeploymentName", - "targetMicroservicesDeploymentName", - "computeId" - }) - public UpdateGoldenGateHub( - UpdateAdminCredentials restAdminCredentials, - UpdateAdminCredentials sourceDbAdminCredentials, - UpdateAdminCredentials sourceContainerDbAdminCredentials, - UpdateAdminCredentials targetDbAdminCredentials, - String url, - String sourceMicroservicesDeploymentName, - String targetMicroservicesDeploymentName, - String computeId) { - super(); - this.restAdminCredentials = restAdminCredentials; - this.sourceDbAdminCredentials = sourceDbAdminCredentials; - this.sourceContainerDbAdminCredentials = sourceContainerDbAdminCredentials; - this.targetDbAdminCredentials = targetDbAdminCredentials; - this.url = url; - this.sourceMicroservicesDeploymentName = sourceMicroservicesDeploymentName; - this.targetMicroservicesDeploymentName = targetMicroservicesDeploymentName; - this.computeId = computeId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("restAdminCredentials") - private UpdateAdminCredentials restAdminCredentials; - - public Builder restAdminCredentials(UpdateAdminCredentials restAdminCredentials) { - this.restAdminCredentials = restAdminCredentials; - this.__explicitlySet__.add("restAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbAdminCredentials") - private UpdateAdminCredentials sourceDbAdminCredentials; - - public Builder sourceDbAdminCredentials(UpdateAdminCredentials sourceDbAdminCredentials) { - this.sourceDbAdminCredentials = sourceDbAdminCredentials; - this.__explicitlySet__.add("sourceDbAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbAdminCredentials") - private UpdateAdminCredentials sourceContainerDbAdminCredentials; - - public Builder sourceContainerDbAdminCredentials( - UpdateAdminCredentials sourceContainerDbAdminCredentials) { - this.sourceContainerDbAdminCredentials = sourceContainerDbAdminCredentials; - this.__explicitlySet__.add("sourceContainerDbAdminCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbAdminCredentials") - private UpdateAdminCredentials targetDbAdminCredentials; - - public Builder targetDbAdminCredentials(UpdateAdminCredentials targetDbAdminCredentials) { - this.targetDbAdminCredentials = targetDbAdminCredentials; - this.__explicitlySet__.add("targetDbAdminCredentials"); - return this; - } - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - */ - @com.fasterxml.jackson.annotation.JsonProperty("url") - private String url; - - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - * - * @param url the value to set - * @return this builder - */ - public Builder url(String url) { - this.url = url; - this.__explicitlySet__.add("url"); - return this; - } - /** Name of GoldenGate deployment to operate on source database */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceMicroservicesDeploymentName") - private String sourceMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on source database - * - * @param sourceMicroservicesDeploymentName the value to set - * @return this builder - */ - public Builder sourceMicroservicesDeploymentName(String sourceMicroservicesDeploymentName) { - this.sourceMicroservicesDeploymentName = sourceMicroservicesDeploymentName; - this.__explicitlySet__.add("sourceMicroservicesDeploymentName"); - return this; - } - /** Name of GoldenGate deployment to operate on target database */ - @com.fasterxml.jackson.annotation.JsonProperty("targetMicroservicesDeploymentName") - private String targetMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on target database - * - * @param targetMicroservicesDeploymentName the value to set - * @return this builder - */ - public Builder targetMicroservicesDeploymentName(String targetMicroservicesDeploymentName) { - this.targetMicroservicesDeploymentName = targetMicroservicesDeploymentName; - this.__explicitlySet__.add("targetMicroservicesDeploymentName"); - return this; - } - /** OCID of GoldenGate compute instance. An empty value will remove the stored computeId. */ - @com.fasterxml.jackson.annotation.JsonProperty("computeId") - private String computeId; - - /** - * OCID of GoldenGate compute instance. An empty value will remove the stored computeId. - * - * @param computeId the value to set - * @return this builder - */ - public Builder computeId(String computeId) { - this.computeId = computeId; - this.__explicitlySet__.add("computeId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateGoldenGateHub build() { - UpdateGoldenGateHub model = - new UpdateGoldenGateHub( - this.restAdminCredentials, - this.sourceDbAdminCredentials, - this.sourceContainerDbAdminCredentials, - this.targetDbAdminCredentials, - this.url, - this.sourceMicroservicesDeploymentName, - this.targetMicroservicesDeploymentName, - this.computeId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateGoldenGateHub model) { - if (model.wasPropertyExplicitlySet("restAdminCredentials")) { - this.restAdminCredentials(model.getRestAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceDbAdminCredentials")) { - this.sourceDbAdminCredentials(model.getSourceDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDbAdminCredentials")) { - this.sourceContainerDbAdminCredentials( - model.getSourceContainerDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("targetDbAdminCredentials")) { - this.targetDbAdminCredentials(model.getTargetDbAdminCredentials()); - } - if (model.wasPropertyExplicitlySet("url")) { - this.url(model.getUrl()); - } - if (model.wasPropertyExplicitlySet("sourceMicroservicesDeploymentName")) { - this.sourceMicroservicesDeploymentName( - model.getSourceMicroservicesDeploymentName()); - } - if (model.wasPropertyExplicitlySet("targetMicroservicesDeploymentName")) { - this.targetMicroservicesDeploymentName( - model.getTargetMicroservicesDeploymentName()); - } - if (model.wasPropertyExplicitlySet("computeId")) { - this.computeId(model.getComputeId()); - } - 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("restAdminCredentials") - private final UpdateAdminCredentials restAdminCredentials; - - public UpdateAdminCredentials getRestAdminCredentials() { - return restAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbAdminCredentials") - private final UpdateAdminCredentials sourceDbAdminCredentials; - - public UpdateAdminCredentials getSourceDbAdminCredentials() { - return sourceDbAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbAdminCredentials") - private final UpdateAdminCredentials sourceContainerDbAdminCredentials; - - public UpdateAdminCredentials getSourceContainerDbAdminCredentials() { - return sourceContainerDbAdminCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbAdminCredentials") - private final UpdateAdminCredentials targetDbAdminCredentials; - - public UpdateAdminCredentials getTargetDbAdminCredentials() { - return targetDbAdminCredentials; - } - - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - */ - @com.fasterxml.jackson.annotation.JsonProperty("url") - private final String url; - - /** - * Oracle GoldenGate hub's REST endpoint. Refer to - * https://docs.oracle.com/en/middleware/goldengate/core/19.1/securing/network.html#GUID-A709DA55-111D-455E-8942-C9BDD1E38CAA - * - * @return the value - */ - public String getUrl() { - return url; - } - - /** Name of GoldenGate deployment to operate on source database */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceMicroservicesDeploymentName") - private final String sourceMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on source database - * - * @return the value - */ - public String getSourceMicroservicesDeploymentName() { - return sourceMicroservicesDeploymentName; - } - - /** Name of GoldenGate deployment to operate on target database */ - @com.fasterxml.jackson.annotation.JsonProperty("targetMicroservicesDeploymentName") - private final String targetMicroservicesDeploymentName; - - /** - * Name of GoldenGate deployment to operate on target database - * - * @return the value - */ - public String getTargetMicroservicesDeploymentName() { - return targetMicroservicesDeploymentName; - } - - /** OCID of GoldenGate compute instance. An empty value will remove the stored computeId. */ - @com.fasterxml.jackson.annotation.JsonProperty("computeId") - private final String computeId; - - /** - * OCID of GoldenGate compute instance. An empty value will remove the stored computeId. - * - * @return the value - */ - public String getComputeId() { - return computeId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateGoldenGateHub("); - sb.append("super=").append(super.toString()); - sb.append("restAdminCredentials=").append(String.valueOf(this.restAdminCredentials)); - sb.append(", sourceDbAdminCredentials=") - .append(String.valueOf(this.sourceDbAdminCredentials)); - sb.append(", sourceContainerDbAdminCredentials=") - .append(String.valueOf(this.sourceContainerDbAdminCredentials)); - sb.append(", targetDbAdminCredentials=") - .append(String.valueOf(this.targetDbAdminCredentials)); - sb.append(", url=").append(String.valueOf(this.url)); - sb.append(", sourceMicroservicesDeploymentName=") - .append(String.valueOf(this.sourceMicroservicesDeploymentName)); - sb.append(", targetMicroservicesDeploymentName=") - .append(String.valueOf(this.targetMicroservicesDeploymentName)); - sb.append(", computeId=").append(String.valueOf(this.computeId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateGoldenGateHub)) { - return false; - } - - UpdateGoldenGateHub other = (UpdateGoldenGateHub) o; - return java.util.Objects.equals(this.restAdminCredentials, other.restAdminCredentials) - && java.util.Objects.equals( - this.sourceDbAdminCredentials, other.sourceDbAdminCredentials) - && java.util.Objects.equals( - this.sourceContainerDbAdminCredentials, - other.sourceContainerDbAdminCredentials) - && java.util.Objects.equals( - this.targetDbAdminCredentials, other.targetDbAdminCredentials) - && java.util.Objects.equals(this.url, other.url) - && java.util.Objects.equals( - this.sourceMicroservicesDeploymentName, - other.sourceMicroservicesDeploymentName) - && java.util.Objects.equals( - this.targetMicroservicesDeploymentName, - other.targetMicroservicesDeploymentName) - && java.util.Objects.equals(this.computeId, other.computeId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.restAdminCredentials == null - ? 43 - : this.restAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceDbAdminCredentials == null - ? 43 - : this.sourceDbAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDbAdminCredentials == null - ? 43 - : this.sourceContainerDbAdminCredentials.hashCode()); - result = - (result * PRIME) - + (this.targetDbAdminCredentials == null - ? 43 - : this.targetDbAdminCredentials.hashCode()); - result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); - result = - (result * PRIME) - + (this.sourceMicroservicesDeploymentName == null - ? 43 - : this.sourceMicroservicesDeploymentName.hashCode()); - result = - (result * PRIME) - + (this.targetMicroservicesDeploymentName == null - ? 43 - : this.targetMicroservicesDeploymentName.hashCode()); - result = (result * PRIME) + (this.computeId == null ? 43 : this.computeId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHubDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHubDetails.java new file mode 100644 index 00000000000..de6f6c481ca --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateHubDetails.java @@ -0,0 +1,383 @@ +/** + * 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.databasemigration.model; + +/** + * Details about Oracle GoldenGate Microservices.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateGoldenGateHubDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateGoldenGateHubDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "restAdminCredentials", + "url", + "computeId", + "vaultId", + "keyId", + "extract", + "replicat", + "acceptableLag" + }) + public UpdateGoldenGateHubDetails( + UpdateAdminCredentials restAdminCredentials, + String url, + String computeId, + String vaultId, + String keyId, + UpdateExtract extract, + UpdateReplicat replicat, + Integer acceptableLag) { + super(); + this.restAdminCredentials = restAdminCredentials; + this.url = url; + this.computeId = computeId; + this.vaultId = vaultId; + this.keyId = keyId; + this.extract = extract; + this.replicat = replicat; + this.acceptableLag = acceptableLag; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("restAdminCredentials") + private UpdateAdminCredentials restAdminCredentials; + + public Builder restAdminCredentials(UpdateAdminCredentials restAdminCredentials) { + this.restAdminCredentials = restAdminCredentials; + this.__explicitlySet__.add("restAdminCredentials"); + return this; + } + /** Endpoint URL. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private String url; + + /** + * Endpoint URL. + * + * @param url the value to set + * @return this builder + */ + public Builder url(String url) { + this.url = url; + this.__explicitlySet__.add("url"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeId") + private String computeId; + + /** + * The OCID of the resource being referenced. + * + * @param computeId the value to set + * @return this builder + */ + public Builder computeId(String computeId) { + this.computeId = computeId; + this.__explicitlySet__.add("computeId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + /** + * The OCID of the resource being referenced. + * + * @param vaultId the value to set + * @return this builder + */ + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + /** + * The OCID of the resource being referenced. + * + * @param keyId the value to set + * @return this builder + */ + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private UpdateExtract extract; + + public Builder extract(UpdateExtract extract) { + this.extract = extract; + this.__explicitlySet__.add("extract"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private UpdateReplicat replicat; + + public Builder replicat(UpdateReplicat replicat) { + this.replicat = replicat; + this.__explicitlySet__.add("replicat"); + return this; + } + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @param acceptableLag the value to set + * @return this builder + */ + public Builder acceptableLag(Integer acceptableLag) { + this.acceptableLag = acceptableLag; + this.__explicitlySet__.add("acceptableLag"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateGoldenGateHubDetails build() { + UpdateGoldenGateHubDetails model = + new UpdateGoldenGateHubDetails( + this.restAdminCredentials, + this.url, + this.computeId, + this.vaultId, + this.keyId, + this.extract, + this.replicat, + this.acceptableLag); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateGoldenGateHubDetails model) { + if (model.wasPropertyExplicitlySet("restAdminCredentials")) { + this.restAdminCredentials(model.getRestAdminCredentials()); + } + if (model.wasPropertyExplicitlySet("url")) { + this.url(model.getUrl()); + } + if (model.wasPropertyExplicitlySet("computeId")) { + this.computeId(model.getComputeId()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("extract")) { + this.extract(model.getExtract()); + } + if (model.wasPropertyExplicitlySet("replicat")) { + this.replicat(model.getReplicat()); + } + if (model.wasPropertyExplicitlySet("acceptableLag")) { + this.acceptableLag(model.getAcceptableLag()); + } + 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("restAdminCredentials") + private final UpdateAdminCredentials restAdminCredentials; + + public UpdateAdminCredentials getRestAdminCredentials() { + return restAdminCredentials; + } + + /** Endpoint URL. */ + @com.fasterxml.jackson.annotation.JsonProperty("url") + private final String url; + + /** + * Endpoint URL. + * + * @return the value + */ + public String getUrl() { + return url; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("computeId") + private final String computeId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getComputeId() { + return computeId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private final String vaultId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getVaultId() { + return vaultId; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private final String keyId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getKeyId() { + return keyId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("extract") + private final UpdateExtract extract; + + public UpdateExtract getExtract() { + return extract; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private final UpdateReplicat replicat; + + public UpdateReplicat getReplicat() { + return replicat; + } + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private final Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @return the value + */ + public Integer getAcceptableLag() { + return acceptableLag; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateGoldenGateHubDetails("); + sb.append("super=").append(super.toString()); + sb.append("restAdminCredentials=").append(String.valueOf(this.restAdminCredentials)); + sb.append(", url=").append(String.valueOf(this.url)); + sb.append(", computeId=").append(String.valueOf(this.computeId)); + sb.append(", vaultId=").append(String.valueOf(this.vaultId)); + sb.append(", keyId=").append(String.valueOf(this.keyId)); + sb.append(", extract=").append(String.valueOf(this.extract)); + sb.append(", replicat=").append(String.valueOf(this.replicat)); + sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateGoldenGateHubDetails)) { + return false; + } + + UpdateGoldenGateHubDetails other = (UpdateGoldenGateHubDetails) o; + return java.util.Objects.equals(this.restAdminCredentials, other.restAdminCredentials) + && java.util.Objects.equals(this.url, other.url) + && java.util.Objects.equals(this.computeId, other.computeId) + && java.util.Objects.equals(this.vaultId, other.vaultId) + && java.util.Objects.equals(this.keyId, other.keyId) + && java.util.Objects.equals(this.extract, other.extract) + && java.util.Objects.equals(this.replicat, other.replicat) + && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.restAdminCredentials == null + ? 43 + : this.restAdminCredentials.hashCode()); + result = (result * PRIME) + (this.url == null ? 43 : this.url.hashCode()); + result = (result * PRIME) + (this.computeId == null ? 43 : this.computeId.hashCode()); + result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); + result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); + result = (result * PRIME) + (this.extract == null ? 43 : this.extract.hashCode()); + result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); + result = + (result * PRIME) + + (this.acceptableLag == null ? 43 : this.acceptableLag.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateServiceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateServiceDetails.java deleted file mode 100644 index 1cff3c39313..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateServiceDetails.java +++ /dev/null @@ -1,221 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details about the Oracle GoldenGate Microservices. If an empty object is specified, the stored - * Golden Gate details will be removed.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateGoldenGateServiceDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateGoldenGateServiceDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({ - "sourceDbCredentials", - "sourceContainerDbCredentials", - "targetDbCredentials", - "settings" - }) - public UpdateGoldenGateServiceDetails( - DatabaseCredentials sourceDbCredentials, - DatabaseCredentials sourceContainerDbCredentials, - DatabaseCredentials targetDbCredentials, - UpdateGoldenGateSettings settings) { - super(); - this.sourceDbCredentials = sourceDbCredentials; - this.sourceContainerDbCredentials = sourceContainerDbCredentials; - this.targetDbCredentials = targetDbCredentials; - this.settings = settings; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - - @com.fasterxml.jackson.annotation.JsonProperty("sourceDbCredentials") - private DatabaseCredentials sourceDbCredentials; - - public Builder sourceDbCredentials(DatabaseCredentials sourceDbCredentials) { - this.sourceDbCredentials = sourceDbCredentials; - this.__explicitlySet__.add("sourceDbCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbCredentials") - private DatabaseCredentials sourceContainerDbCredentials; - - public Builder sourceContainerDbCredentials( - DatabaseCredentials sourceContainerDbCredentials) { - this.sourceContainerDbCredentials = sourceContainerDbCredentials; - this.__explicitlySet__.add("sourceContainerDbCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbCredentials") - private DatabaseCredentials targetDbCredentials; - - public Builder targetDbCredentials(DatabaseCredentials targetDbCredentials) { - this.targetDbCredentials = targetDbCredentials; - this.__explicitlySet__.add("targetDbCredentials"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private UpdateGoldenGateSettings settings; - - public Builder settings(UpdateGoldenGateSettings settings) { - this.settings = settings; - this.__explicitlySet__.add("settings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateGoldenGateServiceDetails build() { - UpdateGoldenGateServiceDetails model = - new UpdateGoldenGateServiceDetails( - this.sourceDbCredentials, - this.sourceContainerDbCredentials, - this.targetDbCredentials, - this.settings); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateGoldenGateServiceDetails model) { - if (model.wasPropertyExplicitlySet("sourceDbCredentials")) { - this.sourceDbCredentials(model.getSourceDbCredentials()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDbCredentials")) { - this.sourceContainerDbCredentials(model.getSourceContainerDbCredentials()); - } - if (model.wasPropertyExplicitlySet("targetDbCredentials")) { - this.targetDbCredentials(model.getTargetDbCredentials()); - } - if (model.wasPropertyExplicitlySet("settings")) { - this.settings(model.getSettings()); - } - 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("sourceDbCredentials") - private final DatabaseCredentials sourceDbCredentials; - - public DatabaseCredentials getSourceDbCredentials() { - return sourceDbCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDbCredentials") - private final DatabaseCredentials sourceContainerDbCredentials; - - public DatabaseCredentials getSourceContainerDbCredentials() { - return sourceContainerDbCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("targetDbCredentials") - private final DatabaseCredentials targetDbCredentials; - - public DatabaseCredentials getTargetDbCredentials() { - return targetDbCredentials; - } - - @com.fasterxml.jackson.annotation.JsonProperty("settings") - private final UpdateGoldenGateSettings settings; - - public UpdateGoldenGateSettings getSettings() { - return settings; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateGoldenGateServiceDetails("); - sb.append("super=").append(super.toString()); - sb.append("sourceDbCredentials=").append(String.valueOf(this.sourceDbCredentials)); - sb.append(", sourceContainerDbCredentials=") - .append(String.valueOf(this.sourceContainerDbCredentials)); - sb.append(", targetDbCredentials=").append(String.valueOf(this.targetDbCredentials)); - sb.append(", settings=").append(String.valueOf(this.settings)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateGoldenGateServiceDetails)) { - return false; - } - - UpdateGoldenGateServiceDetails other = (UpdateGoldenGateServiceDetails) o; - return java.util.Objects.equals(this.sourceDbCredentials, other.sourceDbCredentials) - && java.util.Objects.equals( - this.sourceContainerDbCredentials, other.sourceContainerDbCredentials) - && java.util.Objects.equals(this.targetDbCredentials, other.targetDbCredentials) - && java.util.Objects.equals(this.settings, other.settings) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.sourceDbCredentials == null - ? 43 - : this.sourceDbCredentials.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDbCredentials == null - ? 43 - : this.sourceContainerDbCredentials.hashCode()); - result = - (result * PRIME) - + (this.targetDbCredentials == null - ? 43 - : this.targetDbCredentials.hashCode()); - result = (result * PRIME) + (this.settings == null ? 43 : this.settings.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateHostDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateHostDumpTransferDetails.java index d889e6872ed..33fc67417cf 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateHostDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateHostDumpTransferDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer in source or target host. Default kind is CURL + * Optional additional properties for dump transfer in source or target host. Default kind is CURL. *
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, @@ -100,7 +100,7 @@ public int hashCode() { } /** - * Type of dump transfer to use during migration in source or target host. Default kind is CURL + * Type of dump transfer to use during migration in source or target host. Default kind is CURL. */ public enum Kind implements com.oracle.bmc.http.internal.BmcEnum { Curl("CURL"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateJobDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateJobDetails.java index 11781393a6e..c651274f065 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateJobDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateJobDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UpdateJobDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) @@ -51,15 +51,17 @@ public Builder displayName(String displayName) { return this; } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: + * {"Department": "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: + * {"Department": "Finance"} * * @param freeformTags the value to set * @return this builder @@ -140,15 +142,17 @@ public String getDisplayName() { } /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMigrationDetails.java index 491f070d530..ab6df317f50 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMigrationDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMigrationDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Update Migration resource parameters.
+ * Common Update Migration details.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,436 +15,79 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateMigrationDetails.Builder.class) +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination", + defaultImpl = UpdateMigrationDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateMySqlMigrationDetails.class, + name = "MYSQL"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleMigrationDetails.class, + name = "ORACLE") +}) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateMigrationDetails +public class UpdateMigrationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ + "description", "type", "displayName", - "agentId", "sourceDatabaseConnectionId", - "sourceContainerDatabaseConnectionId", "targetDatabaseConnectionId", - "dataTransferMediumDetailsV2", - "dataTransferMediumDetails", - "dumpTransferDetails", - "datapumpSettings", - "advisorSettings", - "excludeObjects", - "includeObjects", - "goldenGateServiceDetails", - "goldenGateDetails", - "vaultDetails", "freeformTags", "definedTags" }) - public UpdateMigrationDetails( + protected UpdateMigrationDetails( + String description, MigrationTypes type, String displayName, - String agentId, String sourceDatabaseConnectionId, - String sourceContainerDatabaseConnectionId, String targetDatabaseConnectionId, - DataTransferMediumDetailsV2 dataTransferMediumDetailsV2, - UpdateDataTransferMediumDetails dataTransferMediumDetails, - UpdateDumpTransferDetails dumpTransferDetails, - UpdateDataPumpSettings datapumpSettings, - UpdateAdvisorSettings advisorSettings, - java.util.List excludeObjects, - java.util.List includeObjects, - UpdateGoldenGateServiceDetails goldenGateServiceDetails, - UpdateGoldenGateDetails goldenGateDetails, - UpdateVaultDetails vaultDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); + this.description = description; this.type = type; this.displayName = displayName; - this.agentId = agentId; this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.dataTransferMediumDetailsV2 = dataTransferMediumDetailsV2; - this.dataTransferMediumDetails = dataTransferMediumDetails; - this.dumpTransferDetails = dumpTransferDetails; - this.datapumpSettings = datapumpSettings; - this.advisorSettings = advisorSettings; - this.excludeObjects = excludeObjects; - this.includeObjects = includeObjects; - this.goldenGateServiceDetails = goldenGateServiceDetails; - this.goldenGateDetails = goldenGateDetails; - this.vaultDetails = vaultDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Migration type. */ - @com.fasterxml.jackson.annotation.JsonProperty("type") - private MigrationTypes type; - - /** - * Migration type. - * - * @param type the value to set - * @return this builder - */ - public Builder type(MigrationTypes type) { - this.type = type; - this.__explicitlySet__.add("type"); - return this; - } - /** Migration Display Name */ - @com.fasterxml.jackson.annotation.JsonProperty("displayName") - private String displayName; - - /** - * Migration Display Name - * - * @param displayName the value to set - * @return this builder - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - this.__explicitlySet__.add("displayName"); - return this; - } - /** The OCID of the registered ODMS Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private String agentId; - - /** - * The OCID of the registered ODMS Agent. - * - * @param agentId the value to set - * @return this builder - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - this.__explicitlySet__.add("agentId"); - return this; - } - /** The OCID of the Source Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") - private String sourceDatabaseConnectionId; - - /** - * The OCID of the Source Database Connection. - * - * @param sourceDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { - this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; - this.__explicitlySet__.add("sourceDatabaseConnectionId"); - return this; - } - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. - * Only Connections of type Non-Autonomous can be used as source container databases. An - * empty value would remove the stored Connection ID. - */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. - * Only Connections of type Non-Autonomous can be used as source container databases. An - * empty value would remove the stored Connection ID. - * - * @param sourceContainerDatabaseConnectionId the value to set - * @return this builder - */ - public Builder sourceContainerDatabaseConnectionId( - String sourceContainerDatabaseConnectionId) { - this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; - this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); - return this; - } - /** The OCID of the Target Database Connection. */ - @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") - private String targetDatabaseConnectionId; - - /** - * The OCID of the Target Database Connection. - * - * @param targetDatabaseConnectionId the value to set - * @return this builder - */ - public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { - this.targetDatabaseConnectionId = targetDatabaseConnectionId; - this.__explicitlySet__.add("targetDatabaseConnectionId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetailsV2") - private DataTransferMediumDetailsV2 dataTransferMediumDetailsV2; - - public Builder dataTransferMediumDetailsV2( - DataTransferMediumDetailsV2 dataTransferMediumDetailsV2) { - this.dataTransferMediumDetailsV2 = dataTransferMediumDetailsV2; - this.__explicitlySet__.add("dataTransferMediumDetailsV2"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") - private UpdateDataTransferMediumDetails dataTransferMediumDetails; - - public Builder dataTransferMediumDetails( - UpdateDataTransferMediumDetails dataTransferMediumDetails) { - this.dataTransferMediumDetails = dataTransferMediumDetails; - this.__explicitlySet__.add("dataTransferMediumDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dumpTransferDetails") - private UpdateDumpTransferDetails dumpTransferDetails; - - public Builder dumpTransferDetails(UpdateDumpTransferDetails dumpTransferDetails) { - this.dumpTransferDetails = dumpTransferDetails; - this.__explicitlySet__.add("dumpTransferDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("datapumpSettings") - private UpdateDataPumpSettings datapumpSettings; - - public Builder datapumpSettings(UpdateDataPumpSettings datapumpSettings) { - this.datapumpSettings = datapumpSettings; - this.__explicitlySet__.add("datapumpSettings"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") - private UpdateAdvisorSettings advisorSettings; - - public Builder advisorSettings(UpdateAdvisorSettings advisorSettings) { - this.advisorSettings = advisorSettings; - this.__explicitlySet__.add("advisorSettings"); - return this; - } - /** - * Database objects to exclude from migration, cannot be specified alongside - * 'includeObjects'. If specified, the list will be replaced entirely. Empty list will - * remove stored excludeObjects details. - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private java.util.List excludeObjects; - - /** - * Database objects to exclude from migration, cannot be specified alongside - * 'includeObjects'. If specified, the list will be replaced entirely. Empty list will - * remove stored excludeObjects details. - * - * @param excludeObjects the value to set - * @return this builder - */ - public Builder excludeObjects(java.util.List excludeObjects) { - this.excludeObjects = excludeObjects; - this.__explicitlySet__.add("excludeObjects"); - return this; - } - /** - * Database objects to include from migration, cannot be specified alongside - * 'excludeObjects'. If specified, the list will be replaced entirely. Empty list will - * remove stored includeObjects details. - */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private java.util.List includeObjects; - - /** - * Database objects to include from migration, cannot be specified alongside - * 'excludeObjects'. If specified, the list will be replaced entirely. Empty list will - * remove stored includeObjects details. - * - * @param includeObjects the value to set - * @return this builder - */ - public Builder includeObjects(java.util.List includeObjects) { - this.includeObjects = includeObjects; - this.__explicitlySet__.add("includeObjects"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateServiceDetails") - private UpdateGoldenGateServiceDetails goldenGateServiceDetails; - - public Builder goldenGateServiceDetails( - UpdateGoldenGateServiceDetails goldenGateServiceDetails) { - this.goldenGateServiceDetails = goldenGateServiceDetails; - this.__explicitlySet__.add("goldenGateServiceDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateDetails") - private UpdateGoldenGateDetails goldenGateDetails; - - public Builder goldenGateDetails(UpdateGoldenGateDetails goldenGateDetails) { - this.goldenGateDetails = goldenGateDetails; - this.__explicitlySet__.add("goldenGateDetails"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private UpdateVaultDetails vaultDetails; - - public Builder vaultDetails(UpdateVaultDetails vaultDetails) { - this.vaultDetails = vaultDetails; - this.__explicitlySet__.add("vaultDetails"); - return this; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") - private java.util.Map freeformTags; - - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists - * for cross-compatibility only. Example: {@code {"bar-key": "value"}} - * - * @param freeformTags the value to set - * @return this builder - */ - public Builder freeformTags(java.util.Map freeformTags) { - this.freeformTags = freeformTags; - this.__explicitlySet__.add("freeformTags"); - return this; - } - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - */ - @com.fasterxml.jackson.annotation.JsonProperty("definedTags") - private java.util.Map> definedTags; - - /** - * Defined tags for this resource. Each key is predefined and scoped to a namespace. - * Example: {@code {"foo-namespace": {"bar-key": "value"}}} - * - * @param definedTags the value to set - * @return this builder - */ - public Builder definedTags( - java.util.Map> definedTags) { - this.definedTags = definedTags; - this.__explicitlySet__.add("definedTags"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateMigrationDetails build() { - UpdateMigrationDetails model = - new UpdateMigrationDetails( - this.type, - this.displayName, - this.agentId, - this.sourceDatabaseConnectionId, - this.sourceContainerDatabaseConnectionId, - this.targetDatabaseConnectionId, - this.dataTransferMediumDetailsV2, - this.dataTransferMediumDetails, - this.dumpTransferDetails, - this.datapumpSettings, - this.advisorSettings, - this.excludeObjects, - this.includeObjects, - this.goldenGateServiceDetails, - this.goldenGateDetails, - this.vaultDetails, - this.freeformTags, - this.definedTags); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateMigrationDetails model) { - if (model.wasPropertyExplicitlySet("type")) { - this.type(model.getType()); - } - if (model.wasPropertyExplicitlySet("displayName")) { - this.displayName(model.getDisplayName()); - } - if (model.wasPropertyExplicitlySet("agentId")) { - this.agentId(model.getAgentId()); - } - if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { - this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { - this.sourceContainerDatabaseConnectionId( - model.getSourceContainerDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { - this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); - } - if (model.wasPropertyExplicitlySet("dataTransferMediumDetailsV2")) { - this.dataTransferMediumDetailsV2(model.getDataTransferMediumDetailsV2()); - } - if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { - this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); - } - if (model.wasPropertyExplicitlySet("dumpTransferDetails")) { - this.dumpTransferDetails(model.getDumpTransferDetails()); - } - if (model.wasPropertyExplicitlySet("datapumpSettings")) { - this.datapumpSettings(model.getDatapumpSettings()); - } - if (model.wasPropertyExplicitlySet("advisorSettings")) { - this.advisorSettings(model.getAdvisorSettings()); - } - if (model.wasPropertyExplicitlySet("excludeObjects")) { - this.excludeObjects(model.getExcludeObjects()); - } - if (model.wasPropertyExplicitlySet("includeObjects")) { - this.includeObjects(model.getIncludeObjects()); - } - if (model.wasPropertyExplicitlySet("goldenGateServiceDetails")) { - this.goldenGateServiceDetails(model.getGoldenGateServiceDetails()); - } - if (model.wasPropertyExplicitlySet("goldenGateDetails")) { - this.goldenGateDetails(model.getGoldenGateDetails()); - } - if (model.wasPropertyExplicitlySet("vaultDetails")) { - this.vaultDetails(model.getVaultDetails()); - } - 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(); - } + /** + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; - public Builder toBuilder() { - return new Builder().copy(this); + /** + * A user-friendly description. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + * + * @return the value + */ + public String getDescription() { + return description; } - /** Migration type. */ + /** + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. + */ @com.fasterxml.jackson.annotation.JsonProperty("type") private final MigrationTypes type; /** - * Migration type. + * The type of the migration to be performed. Example: ONLINE if no downtime is preferred for a + * migration. This method uses Oracle GoldenGate for replication. * * @return the value */ @@ -452,12 +95,16 @@ public MigrationTypes getType() { return type; } - /** Migration Display Name */ + /** + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. + */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** - * Migration Display Name + * A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering + * confidential information. * * @return the value */ @@ -465,25 +112,12 @@ public String getDisplayName() { return displayName; } - /** The OCID of the registered ODMS Agent. */ - @com.fasterxml.jackson.annotation.JsonProperty("agentId") - private final String agentId; - - /** - * The OCID of the registered ODMS Agent. - * - * @return the value - */ - public String getAgentId() { - return agentId; - } - - /** The OCID of the Source Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") private final String sourceDatabaseConnectionId; /** - * The OCID of the Source Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -491,31 +125,12 @@ public String getSourceDatabaseConnectionId() { return sourceDatabaseConnectionId; } - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. Only - * Connections of type Non-Autonomous can be used as source container databases. An empty value - * would remove the stored Connection ID. - */ - @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") - private final String sourceContainerDatabaseConnectionId; - - /** - * The OCID of the Source Container Database Connection. Only used for Online migrations. Only - * Connections of type Non-Autonomous can be used as source container databases. An empty value - * would remove the stored Connection ID. - * - * @return the value - */ - public String getSourceContainerDatabaseConnectionId() { - return sourceContainerDatabaseConnectionId; - } - - /** The OCID of the Target Database Connection. */ + /** The OCID of the resource being referenced. */ @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") private final String targetDatabaseConnectionId; /** - * The OCID of the Target Database Connection. + * The OCID of the resource being referenced. * * @return the value */ @@ -523,110 +138,18 @@ public String getTargetDatabaseConnectionId() { return targetDatabaseConnectionId; } - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetailsV2") - private final DataTransferMediumDetailsV2 dataTransferMediumDetailsV2; - - public DataTransferMediumDetailsV2 getDataTransferMediumDetailsV2() { - return dataTransferMediumDetailsV2; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") - private final UpdateDataTransferMediumDetails dataTransferMediumDetails; - - public UpdateDataTransferMediumDetails getDataTransferMediumDetails() { - return dataTransferMediumDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("dumpTransferDetails") - private final UpdateDumpTransferDetails dumpTransferDetails; - - public UpdateDumpTransferDetails getDumpTransferDetails() { - return dumpTransferDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("datapumpSettings") - private final UpdateDataPumpSettings datapumpSettings; - - public UpdateDataPumpSettings getDatapumpSettings() { - return datapumpSettings; - } - - @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") - private final UpdateAdvisorSettings advisorSettings; - - public UpdateAdvisorSettings getAdvisorSettings() { - return advisorSettings; - } - - /** - * Database objects to exclude from migration, cannot be specified alongside 'includeObjects'. - * If specified, the list will be replaced entirely. Empty list will remove stored - * excludeObjects details. - */ - @com.fasterxml.jackson.annotation.JsonProperty("excludeObjects") - private final java.util.List excludeObjects; - - /** - * Database objects to exclude from migration, cannot be specified alongside 'includeObjects'. - * If specified, the list will be replaced entirely. Empty list will remove stored - * excludeObjects details. - * - * @return the value - */ - public java.util.List getExcludeObjects() { - return excludeObjects; - } - - /** - * Database objects to include from migration, cannot be specified alongside 'excludeObjects'. - * If specified, the list will be replaced entirely. Empty list will remove stored - * includeObjects details. - */ - @com.fasterxml.jackson.annotation.JsonProperty("includeObjects") - private final java.util.List includeObjects; - - /** - * Database objects to include from migration, cannot be specified alongside 'excludeObjects'. - * If specified, the list will be replaced entirely. Empty list will remove stored - * includeObjects details. - * - * @return the value - */ - public java.util.List getIncludeObjects() { - return includeObjects; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateServiceDetails") - private final UpdateGoldenGateServiceDetails goldenGateServiceDetails; - - public UpdateGoldenGateServiceDetails getGoldenGateServiceDetails() { - return goldenGateServiceDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("goldenGateDetails") - private final UpdateGoldenGateDetails goldenGateDetails; - - public UpdateGoldenGateDetails getGoldenGateDetails() { - return goldenGateDetails; - } - - @com.fasterxml.jackson.annotation.JsonProperty("vaultDetails") - private final UpdateVaultDetails vaultDetails; - - public UpdateVaultDetails getVaultDetails() { - return vaultDetails; - } - /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** - * Simple key-value pair that is applied without any predefined name, type or scope. Exists for - * cross-compatibility only. Example: {@code {"bar-key": "value"}} + * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined + * name, type, or namespace. For more information, see Resource Tags. Example: {"Department": + * "Finance"} * * @return the value */ @@ -666,28 +189,13 @@ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("UpdateMigrationDetails("); sb.append("super=").append(super.toString()); - sb.append("type=").append(String.valueOf(this.type)); + sb.append("description=").append(String.valueOf(this.description)); + sb.append(", type=").append(String.valueOf(this.type)); sb.append(", displayName=").append(String.valueOf(this.displayName)); - sb.append(", agentId=").append(String.valueOf(this.agentId)); sb.append(", sourceDatabaseConnectionId=") .append(String.valueOf(this.sourceDatabaseConnectionId)); - sb.append(", sourceContainerDatabaseConnectionId=") - .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); sb.append(", targetDatabaseConnectionId=") .append(String.valueOf(this.targetDatabaseConnectionId)); - sb.append(", dataTransferMediumDetailsV2=") - .append(String.valueOf(this.dataTransferMediumDetailsV2)); - sb.append(", dataTransferMediumDetails=") - .append(String.valueOf(this.dataTransferMediumDetails)); - sb.append(", dumpTransferDetails=").append(String.valueOf(this.dumpTransferDetails)); - sb.append(", datapumpSettings=").append(String.valueOf(this.datapumpSettings)); - sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); - sb.append(", excludeObjects=").append(String.valueOf(this.excludeObjects)); - sb.append(", includeObjects=").append(String.valueOf(this.includeObjects)); - sb.append(", goldenGateServiceDetails=") - .append(String.valueOf(this.goldenGateServiceDetails)); - sb.append(", goldenGateDetails=").append(String.valueOf(this.goldenGateDetails)); - sb.append(", vaultDetails=").append(String.valueOf(this.vaultDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); @@ -704,29 +212,13 @@ public boolean equals(Object o) { } UpdateMigrationDetails other = (UpdateMigrationDetails) o; - return java.util.Objects.equals(this.type, other.type) + return java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.type, other.type) && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.agentId, other.agentId) && java.util.Objects.equals( this.sourceDatabaseConnectionId, other.sourceDatabaseConnectionId) - && java.util.Objects.equals( - this.sourceContainerDatabaseConnectionId, - other.sourceContainerDatabaseConnectionId) && java.util.Objects.equals( this.targetDatabaseConnectionId, other.targetDatabaseConnectionId) - && java.util.Objects.equals( - this.dataTransferMediumDetailsV2, other.dataTransferMediumDetailsV2) - && java.util.Objects.equals( - this.dataTransferMediumDetails, other.dataTransferMediumDetails) - && java.util.Objects.equals(this.dumpTransferDetails, other.dumpTransferDetails) - && java.util.Objects.equals(this.datapumpSettings, other.datapumpSettings) - && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) - && java.util.Objects.equals(this.excludeObjects, other.excludeObjects) - && java.util.Objects.equals(this.includeObjects, other.includeObjects) - && java.util.Objects.equals( - this.goldenGateServiceDetails, other.goldenGateServiceDetails) - && java.util.Objects.equals(this.goldenGateDetails, other.goldenGateDetails) - && java.util.Objects.equals(this.vaultDetails, other.vaultDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); @@ -736,60 +228,19 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.type == null ? 43 : this.type.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); result = (result * PRIME) + (this.sourceDatabaseConnectionId == null ? 43 : this.sourceDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.sourceContainerDatabaseConnectionId == null - ? 43 - : this.sourceContainerDatabaseConnectionId.hashCode()); result = (result * PRIME) + (this.targetDatabaseConnectionId == null ? 43 : this.targetDatabaseConnectionId.hashCode()); - result = - (result * PRIME) - + (this.dataTransferMediumDetailsV2 == null - ? 43 - : this.dataTransferMediumDetailsV2.hashCode()); - result = - (result * PRIME) - + (this.dataTransferMediumDetails == null - ? 43 - : this.dataTransferMediumDetails.hashCode()); - result = - (result * PRIME) - + (this.dumpTransferDetails == null - ? 43 - : this.dumpTransferDetails.hashCode()); - result = - (result * PRIME) - + (this.datapumpSettings == null ? 43 : this.datapumpSettings.hashCode()); - result = - (result * PRIME) - + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); - result = - (result * PRIME) - + (this.excludeObjects == null ? 43 : this.excludeObjects.hashCode()); - result = - (result * PRIME) - + (this.includeObjects == null ? 43 : this.includeObjects.hashCode()); - result = - (result * PRIME) - + (this.goldenGateServiceDetails == null - ? 43 - : this.goldenGateServiceDetails.hashCode()); - result = - (result * PRIME) - + (this.goldenGateDetails == null ? 43 : this.goldenGateDetails.hashCode()); - result = (result * PRIME) + (this.vaultDetails == null ? 43 : this.vaultDetails.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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAdvisorSettings.java new file mode 100644 index 00000000000..fb0c3038bbc --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlAdvisorSettings.java @@ -0,0 +1,182 @@ +/** + * 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.databasemigration.model; + +/** + * Optional Pre-Migration advisor settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlAdvisorSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMySqlAdvisorSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) + public UpdateMySqlAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + super(); + this.isSkipAdvisor = isSkipAdvisor; + this.isIgnoreErrors = isIgnoreErrors; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** True to skip the Pre-Migration Advisor execution. Default is false. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipAdvisor") + private Boolean isSkipAdvisor; + + /** + * True to skip the Pre-Migration Advisor execution. Default is false. + * + * @param isSkipAdvisor the value to set + * @return this builder + */ + public Builder isSkipAdvisor(Boolean isSkipAdvisor) { + this.isSkipAdvisor = isSkipAdvisor; + this.__explicitlySet__.add("isSkipAdvisor"); + return this; + } + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreErrors") + private Boolean isIgnoreErrors; + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + * + * @param isIgnoreErrors the value to set + * @return this builder + */ + public Builder isIgnoreErrors(Boolean isIgnoreErrors) { + this.isIgnoreErrors = isIgnoreErrors; + this.__explicitlySet__.add("isIgnoreErrors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMySqlAdvisorSettings build() { + UpdateMySqlAdvisorSettings model = + new UpdateMySqlAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMySqlAdvisorSettings model) { + if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { + this.isSkipAdvisor(model.getIsSkipAdvisor()); + } + if (model.wasPropertyExplicitlySet("isIgnoreErrors")) { + this.isIgnoreErrors(model.getIsIgnoreErrors()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** True to skip the Pre-Migration Advisor execution. Default is false. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipAdvisor") + private final Boolean isSkipAdvisor; + + /** + * True to skip the Pre-Migration Advisor execution. Default is false. + * + * @return the value + */ + public Boolean getIsSkipAdvisor() { + return isSkipAdvisor; + } + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreErrors") + private final Boolean isIgnoreErrors; + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + * + * @return the value + */ + public Boolean getIsIgnoreErrors() { + return isIgnoreErrors; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMySqlAdvisorSettings("); + sb.append("super=").append(super.toString()); + sb.append("isSkipAdvisor=").append(String.valueOf(this.isSkipAdvisor)); + sb.append(", isIgnoreErrors=").append(String.valueOf(this.isIgnoreErrors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMySqlAdvisorSettings)) { + return false; + } + + UpdateMySqlAdvisorSettings other = (UpdateMySqlAdvisorSettings) o; + return java.util.Objects.equals(this.isSkipAdvisor, other.isSkipAdvisor) + && java.util.Objects.equals(this.isIgnoreErrors, other.isIgnoreErrors) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isSkipAdvisor == null ? 43 : this.isSkipAdvisor.hashCode()); + result = + (result * PRIME) + + (this.isIgnoreErrors == null ? 43 : this.isIgnoreErrors.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlDataTransferMediumDetails.java new file mode 100644 index 00000000000..15bd33f3dfc --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlDataTransferMediumDetails.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.databasemigration.model; + +/** + * Optional additional properties for data transfer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateMySqlDataTransferMediumDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateMySqlObjectStorageDataTransferMediumDetails.class, + name = "OBJECT_STORAGE") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateMySqlDataTransferMediumDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateMySqlDataTransferMediumDetails() { + 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("UpdateMySqlDataTransferMediumDetails("); + 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 UpdateMySqlDataTransferMediumDetails)) { + return false; + } + + UpdateMySqlDataTransferMediumDetails other = (UpdateMySqlDataTransferMediumDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the data transfer medium to use. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + ObjectStorage("OBJECT_STORAGE"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlGgsDeploymentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlGgsDeploymentDetails.java new file mode 100644 index 00000000000..64ba01d0707 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlGgsDeploymentDetails.java @@ -0,0 +1,168 @@ +/** + * 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.databasemigration.model; + +/** + * Optional settings for Oracle GoldenGate processes
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlGgsDeploymentDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMySqlGgsDeploymentDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"replicat", "acceptableLag"}) + public UpdateMySqlGgsDeploymentDetails(UpdateReplicat replicat, Integer acceptableLag) { + super(); + this.replicat = replicat; + this.acceptableLag = acceptableLag; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("replicat") + private UpdateReplicat replicat; + + public Builder replicat(UpdateReplicat replicat) { + this.replicat = replicat; + this.__explicitlySet__.add("replicat"); + return this; + } + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @param acceptableLag the value to set + * @return this builder + */ + public Builder acceptableLag(Integer acceptableLag) { + this.acceptableLag = acceptableLag; + this.__explicitlySet__.add("acceptableLag"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMySqlGgsDeploymentDetails build() { + UpdateMySqlGgsDeploymentDetails model = + new UpdateMySqlGgsDeploymentDetails(this.replicat, this.acceptableLag); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMySqlGgsDeploymentDetails model) { + if (model.wasPropertyExplicitlySet("replicat")) { + this.replicat(model.getReplicat()); + } + if (model.wasPropertyExplicitlySet("acceptableLag")) { + this.acceptableLag(model.getAcceptableLag()); + } + 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("replicat") + private final UpdateReplicat replicat; + + public UpdateReplicat getReplicat() { + return replicat; + } + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + */ + @com.fasterxml.jackson.annotation.JsonProperty("acceptableLag") + private final Integer acceptableLag; + + /** + * ODMS will monitor GoldenGate end-to-end latency until the lag time is lower than the + * specified value in seconds. + * + * @return the value + */ + public Integer getAcceptableLag() { + return acceptableLag; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMySqlGgsDeploymentDetails("); + sb.append("super=").append(super.toString()); + sb.append("replicat=").append(String.valueOf(this.replicat)); + sb.append(", acceptableLag=").append(String.valueOf(this.acceptableLag)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMySqlGgsDeploymentDetails)) { + return false; + } + + UpdateMySqlGgsDeploymentDetails other = (UpdateMySqlGgsDeploymentDetails) o; + return java.util.Objects.equals(this.replicat, other.replicat) + && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.replicat == null ? 43 : this.replicat.hashCode()); + result = + (result * PRIME) + + (this.acceptableLag == null ? 43 : this.acceptableLag.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlInitialLoadSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlInitialLoadSettings.java new file mode 100644 index 00000000000..a7792a88038 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlInitialLoadSettings.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.databasemigration.model; + +/** + * Optional dump settings
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlInitialLoadSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMySqlInitialLoadSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "isConsistent", + "isTzUtc", + "compatibility", + "primaryKeyCompatibility", + "isIgnoreExistingObjects", + "handleGrantErrors", + "jobMode" + }) + public UpdateMySqlInitialLoadSettings( + Boolean isConsistent, + Boolean isTzUtc, + java.util.List compatibility, + PrimaryKeyCompatibility primaryKeyCompatibility, + Boolean isIgnoreExistingObjects, + HandleGrantErrors handleGrantErrors, + JobModeMySql jobMode) { + super(); + this.isConsistent = isConsistent; + this.isTzUtc = isTzUtc; + this.compatibility = compatibility; + this.primaryKeyCompatibility = primaryKeyCompatibility; + this.isIgnoreExistingObjects = isIgnoreExistingObjects; + this.handleGrantErrors = handleGrantErrors; + this.jobMode = jobMode; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isConsistent") + private Boolean isConsistent; + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + * + * @param isConsistent the value to set + * @return this builder + */ + public Builder isConsistent(Boolean isConsistent) { + this.isConsistent = isConsistent; + this.__explicitlySet__.add("isConsistent"); + return this; + } + /** Include a statement at the start of the dump to set the time zone to UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("isTzUtc") + private Boolean isTzUtc; + + /** + * Include a statement at the start of the dump to set the time zone to UTC. + * + * @param isTzUtc the value to set + * @return this builder + */ + public Builder isTzUtc(Boolean isTzUtc) { + this.isTzUtc = isTzUtc; + this.__explicitlySet__.add("isTzUtc"); + return this; + } + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all + * tables in the dump output, altering the dump files as necessary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compatibility") + private java.util.List compatibility; + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all + * tables in the dump output, altering the dump files as necessary. + * + * @param compatibility the value to set + * @return this builder + */ + public Builder compatibility(java.util.List compatibility) { + this.compatibility = compatibility; + this.__explicitlySet__.add("compatibility"); + return this; + } + /** Primary key compatibility option */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryKeyCompatibility") + private PrimaryKeyCompatibility primaryKeyCompatibility; + + /** + * Primary key compatibility option + * + * @param primaryKeyCompatibility the value to set + * @return this builder + */ + public Builder primaryKeyCompatibility(PrimaryKeyCompatibility primaryKeyCompatibility) { + this.primaryKeyCompatibility = primaryKeyCompatibility; + this.__explicitlySet__.add("primaryKeyCompatibility"); + return this; + } + /** + * Import the dump even if it contains objects that already exist in the target schema in + * the MySQL instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreExistingObjects") + private Boolean isIgnoreExistingObjects; + + /** + * Import the dump even if it contains objects that already exist in the target schema in + * the MySQL instance. + * + * @param isIgnoreExistingObjects the value to set + * @return this builder + */ + public Builder isIgnoreExistingObjects(Boolean isIgnoreExistingObjects) { + this.isIgnoreExistingObjects = isIgnoreExistingObjects; + this.__explicitlySet__.add("isIgnoreExistingObjects"); + return this; + } + /** The action taken in the event of errors related to GRANT or REVOKE errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("handleGrantErrors") + private HandleGrantErrors handleGrantErrors; + + /** + * The action taken in the event of errors related to GRANT or REVOKE errors. + * + * @param handleGrantErrors the value to set + * @return this builder + */ + public Builder handleGrantErrors(HandleGrantErrors handleGrantErrors) { + this.handleGrantErrors = handleGrantErrors; + this.__explicitlySet__.add("handleGrantErrors"); + return this; + } + /** MySql Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private JobModeMySql jobMode; + + /** + * MySql Job Mode + * + * @param jobMode the value to set + * @return this builder + */ + public Builder jobMode(JobModeMySql jobMode) { + this.jobMode = jobMode; + this.__explicitlySet__.add("jobMode"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMySqlInitialLoadSettings build() { + UpdateMySqlInitialLoadSettings model = + new UpdateMySqlInitialLoadSettings( + this.isConsistent, + this.isTzUtc, + this.compatibility, + this.primaryKeyCompatibility, + this.isIgnoreExistingObjects, + this.handleGrantErrors, + this.jobMode); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMySqlInitialLoadSettings model) { + if (model.wasPropertyExplicitlySet("isConsistent")) { + this.isConsistent(model.getIsConsistent()); + } + if (model.wasPropertyExplicitlySet("isTzUtc")) { + this.isTzUtc(model.getIsTzUtc()); + } + if (model.wasPropertyExplicitlySet("compatibility")) { + this.compatibility(model.getCompatibility()); + } + if (model.wasPropertyExplicitlySet("primaryKeyCompatibility")) { + this.primaryKeyCompatibility(model.getPrimaryKeyCompatibility()); + } + if (model.wasPropertyExplicitlySet("isIgnoreExistingObjects")) { + this.isIgnoreExistingObjects(model.getIsIgnoreExistingObjects()); + } + if (model.wasPropertyExplicitlySet("handleGrantErrors")) { + this.handleGrantErrors(model.getHandleGrantErrors()); + } + if (model.wasPropertyExplicitlySet("jobMode")) { + this.jobMode(model.getJobMode()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isConsistent") + private final Boolean isConsistent; + + /** + * Enable (true) or disable (false) consistent data dumps by locking the instance for backup + * during the dump. + * + * @return the value + */ + public Boolean getIsConsistent() { + return isConsistent; + } + + /** Include a statement at the start of the dump to set the time zone to UTC. */ + @com.fasterxml.jackson.annotation.JsonProperty("isTzUtc") + private final Boolean isTzUtc; + + /** + * Include a statement at the start of the dump to set the time zone to UTC. + * + * @return the value + */ + public Boolean getIsTzUtc() { + return isTzUtc; + } + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all tables + * in the dump output, altering the dump files as necessary. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compatibility") + private final java.util.List compatibility; + + /** + * Apply the specified requirements for compatibility with MySQL Database Service for all tables + * in the dump output, altering the dump files as necessary. + * + * @return the value + */ + public java.util.List getCompatibility() { + return compatibility; + } + + /** Primary key compatibility option */ + @com.fasterxml.jackson.annotation.JsonProperty("primaryKeyCompatibility") + private final PrimaryKeyCompatibility primaryKeyCompatibility; + + /** + * Primary key compatibility option + * + * @return the value + */ + public PrimaryKeyCompatibility getPrimaryKeyCompatibility() { + return primaryKeyCompatibility; + } + + /** + * Import the dump even if it contains objects that already exist in the target schema in the + * MySQL instance. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreExistingObjects") + private final Boolean isIgnoreExistingObjects; + + /** + * Import the dump even if it contains objects that already exist in the target schema in the + * MySQL instance. + * + * @return the value + */ + public Boolean getIsIgnoreExistingObjects() { + return isIgnoreExistingObjects; + } + + /** The action taken in the event of errors related to GRANT or REVOKE errors. */ + @com.fasterxml.jackson.annotation.JsonProperty("handleGrantErrors") + private final HandleGrantErrors handleGrantErrors; + + /** + * The action taken in the event of errors related to GRANT or REVOKE errors. + * + * @return the value + */ + public HandleGrantErrors getHandleGrantErrors() { + return handleGrantErrors; + } + + /** MySql Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private final JobModeMySql jobMode; + + /** + * MySql Job Mode + * + * @return the value + */ + public JobModeMySql getJobMode() { + return jobMode; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMySqlInitialLoadSettings("); + sb.append("super=").append(super.toString()); + sb.append("isConsistent=").append(String.valueOf(this.isConsistent)); + sb.append(", isTzUtc=").append(String.valueOf(this.isTzUtc)); + sb.append(", compatibility=").append(String.valueOf(this.compatibility)); + sb.append(", primaryKeyCompatibility=") + .append(String.valueOf(this.primaryKeyCompatibility)); + sb.append(", isIgnoreExistingObjects=") + .append(String.valueOf(this.isIgnoreExistingObjects)); + sb.append(", handleGrantErrors=").append(String.valueOf(this.handleGrantErrors)); + sb.append(", jobMode=").append(String.valueOf(this.jobMode)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMySqlInitialLoadSettings)) { + return false; + } + + UpdateMySqlInitialLoadSettings other = (UpdateMySqlInitialLoadSettings) o; + return java.util.Objects.equals(this.isConsistent, other.isConsistent) + && java.util.Objects.equals(this.isTzUtc, other.isTzUtc) + && java.util.Objects.equals(this.compatibility, other.compatibility) + && java.util.Objects.equals( + this.primaryKeyCompatibility, other.primaryKeyCompatibility) + && java.util.Objects.equals( + this.isIgnoreExistingObjects, other.isIgnoreExistingObjects) + && java.util.Objects.equals(this.handleGrantErrors, other.handleGrantErrors) + && java.util.Objects.equals(this.jobMode, other.jobMode) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.isConsistent == null ? 43 : this.isConsistent.hashCode()); + result = (result * PRIME) + (this.isTzUtc == null ? 43 : this.isTzUtc.hashCode()); + result = + (result * PRIME) + + (this.compatibility == null ? 43 : this.compatibility.hashCode()); + result = + (result * PRIME) + + (this.primaryKeyCompatibility == null + ? 43 + : this.primaryKeyCompatibility.hashCode()); + result = + (result * PRIME) + + (this.isIgnoreExistingObjects == null + ? 43 + : this.isIgnoreExistingObjects.hashCode()); + result = + (result * PRIME) + + (this.handleGrantErrors == null ? 43 : this.handleGrantErrors.hashCode()); + result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlMigrationDetails.java new file mode 100644 index 00000000000..9bf449238a8 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlMigrationDetails.java @@ -0,0 +1,344 @@ +/** + * 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.databasemigration.model; + +/** + * Update Migration parameters.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMySqlMigrationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateMySqlMigrationDetails extends UpdateMigrationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateMySqlDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateMySqlDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateMySqlInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateMySqlInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateMySqlAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateMySqlAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private UpdateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(UpdateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private UpdateMySqlGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(UpdateMySqlGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMySqlMigrationDetails build() { + UpdateMySqlMigrationDetails model = + new UpdateMySqlMigrationDetails( + this.description, + this.type, + this.displayName, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.freeformTags, + this.definedTags, + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMySqlMigrationDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateMySqlMigrationDetails( + String description, + MigrationTypes type, + String displayName, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + java.util.Map freeformTags, + java.util.Map> definedTags, + UpdateMySqlDataTransferMediumDetails dataTransferMediumDetails, + UpdateMySqlInitialLoadSettings initialLoadSettings, + UpdateMySqlAdvisorSettings advisorSettings, + UpdateGoldenGateHubDetails hubDetails, + UpdateMySqlGgsDeploymentDetails ggsDetails) { + super( + description, + type, + displayName, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + freeformTags, + definedTags); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateMySqlDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateMySqlDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateMySqlInitialLoadSettings initialLoadSettings; + + public UpdateMySqlInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateMySqlAdvisorSettings advisorSettings; + + public UpdateMySqlAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final UpdateGoldenGateHubDetails hubDetails; + + public UpdateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final UpdateMySqlGgsDeploymentDetails ggsDetails; + + public UpdateMySqlGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMySqlMigrationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMySqlMigrationDetails)) { + return false; + } + + UpdateMySqlMigrationDetails other = (UpdateMySqlMigrationDetails) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeAgentCompartmentDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlObjectStorageDataTransferMediumDetails.java similarity index 54% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeAgentCompartmentDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlObjectStorageDataTransferMediumDetails.java index b65f64d3138..3a24321d8ca 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/ChangeAgentCompartmentDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMySqlObjectStorageDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Change Agent compartment details
+ * OCI Object Storage bucket will be used to store dump files for the migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,44 +15,35 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = ChangeAgentCompartmentDetails.Builder.class) + builder = UpdateMySqlObjectStorageDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class ChangeAgentCompartmentDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId"}) - public ChangeAgentCompartmentDetails(String compartmentId) { - super(); - this.compartmentId = compartmentId; - } - +public final class UpdateMySqlObjectStorageDataTransferMediumDetails + extends UpdateMySqlDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** The OCID of the compartment to move the resource to. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The OCID of the compartment to move the resource to. - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private UpdateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(UpdateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public ChangeAgentCompartmentDetails build() { - ChangeAgentCompartmentDetails model = - new ChangeAgentCompartmentDetails(this.compartmentId); + public UpdateMySqlObjectStorageDataTransferMediumDetails build() { + UpdateMySqlObjectStorageDataTransferMediumDetails model = + new UpdateMySqlObjectStorageDataTransferMediumDetails(this.objectStorageBucket); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -60,9 +51,9 @@ public ChangeAgentCompartmentDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(ChangeAgentCompartmentDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); + public Builder copy(UpdateMySqlObjectStorageDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); } return this; } @@ -77,17 +68,18 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** The OCID of the compartment to move the resource to. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; + @Deprecated + public UpdateMySqlObjectStorageDataTransferMediumDetails( + UpdateObjectStoreBucket objectStorageBucket) { + super(); + this.objectStorageBucket = objectStorageBucket; + } - /** - * The OCID of the compartment to move the resource to. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final UpdateObjectStoreBucket objectStorageBucket; + + public UpdateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; } @Override @@ -103,9 +95,9 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("ChangeAgentCompartmentDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append("UpdateMySqlObjectStorageDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); sb.append(")"); return sb.toString(); } @@ -115,23 +107,25 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof ChangeAgentCompartmentDetails)) { + if (!(o instanceof UpdateMySqlObjectStorageDataTransferMediumDetails)) { return false; } - ChangeAgentCompartmentDetails other = (ChangeAgentCompartmentDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) + UpdateMySqlObjectStorageDataTransferMediumDetails other = + (UpdateMySqlObjectStorageDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); result = (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + super.hashCode(); + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMysqlConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMysqlConnectionDetails.java new file mode 100644 index 00000000000..4e080d537f4 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateMysqlConnectionDetails.java @@ -0,0 +1,722 @@ +/** + * 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.databasemigration.model; + +/** + * The information to update a MySQL Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateMysqlConnectionDetails.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 UpdateMysqlConnectionDetails extends UpdateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private String replicationUsername; + + public Builder replicationUsername(String replicationUsername) { + this.replicationUsername = replicationUsername; + this.__explicitlySet__.add("replicationUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private String replicationPassword; + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = replicationPassword; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private String host; + + /** + * The IP Address of the host. + * + * @param host the value to set + * @return this builder + */ + public Builder host(String host) { + this.host = host; + this.__explicitlySet__.add("host"); + return this; + } + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private Integer port; + + /** + * The port to be used for the connection. + * + * @param port the value to set + * @return this builder + */ + public Builder port(Integer port) { + this.port = port; + this.__explicitlySet__.add("port"); + return this; + } + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private String databaseName; + + /** + * The name of the database being referenced. + * + * @param databaseName the value to set + * @return this builder + */ + public Builder databaseName(String databaseName) { + this.databaseName = databaseName; + this.__explicitlySet__.add("databaseName"); + return this; + } + /** Security Type for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private MysqlConnection.SecurityProtocol securityProtocol; + + /** + * Security Type for MySQL. + * + * @param securityProtocol the value to set + * @return this builder + */ + public Builder securityProtocol(MysqlConnection.SecurityProtocol securityProtocol) { + this.securityProtocol = securityProtocol; + this.__explicitlySet__.add("securityProtocol"); + return this; + } + /** SSL modes for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private MysqlConnection.SslMode sslMode; + + /** + * SSL modes for MySQL. + * + * @param sslMode the value to set + * @return this builder + */ + public Builder sslMode(MysqlConnection.SslMode sslMode) { + this.sslMode = sslMode; + this.__explicitlySet__.add("sslMode"); + return this; + } + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") + private String sslCa; + + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + * + * @param sslCa the value to set + * @return this builder + */ + public Builder sslCa(String sslCa) { + this.sslCa = sslCa; + this.__explicitlySet__.add("sslCa"); + return this; + } + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on + * this list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable + * if TLS/MTLS option is selected. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") + private String sslCrl; + + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on + * this list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable + * if TLS/MTLS option is selected. + * + * @param sslCrl the value to set + * @return this builder + */ + public Builder sslCrl(String sslCrl) { + this.sslCrl = sslCrl; + this.__explicitlySet__.add("sslCrl"); + return this; + } + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the + * client public key (for 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") + private String sslCert; + + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the + * client public key (for 2-way SSL). + * + * @param sslCert the value to set + * @return this builder + */ + public Builder sslCert(String sslCert) { + this.sslCert = sslCert; + this.__explicitlySet__.add("sslCert"); + return this; + } + /** Client Key - The client-key.pem containing the client private key (for 2-way SSL). */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + private String sslKey; + + /** + * Client Key - The client-key.pem containing the client private key (for 2-way SSL). + * + * @param sslKey the value to set + * @return this builder + */ + public Builder sslKey(String sslKey) { + this.sslKey = sslKey; + this.__explicitlySet__.add("sslKey"); + return this; + } + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @param additionalAttributes the value to set + * @return this builder + */ + public Builder additionalAttributes(java.util.List additionalAttributes) { + this.additionalAttributes = additionalAttributes; + this.__explicitlySet__.add("additionalAttributes"); + return this; + } + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @param dbSystemId the value to set + * @return this builder + */ + public Builder dbSystemId(String dbSystemId) { + this.dbSystemId = dbSystemId; + this.__explicitlySet__.add("dbSystemId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateMysqlConnectionDetails build() { + UpdateMysqlConnectionDetails model = + new UpdateMysqlConnectionDetails( + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.vaultId, + this.keyId, + this.subnetId, + this.nsgIds, + this.username, + this.password, + this.replicationUsername, + this.replicationPassword, + this.host, + this.port, + this.databaseName, + this.securityProtocol, + this.sslMode, + this.sslCa, + this.sslCrl, + this.sslCert, + this.sslKey, + this.additionalAttributes, + this.dbSystemId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateMysqlConnectionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("replicationUsername")) { + this.replicationUsername(model.getReplicationUsername()); + } + if (model.wasPropertyExplicitlySet("replicationPassword")) { + this.replicationPassword(model.getReplicationPassword()); + } + if (model.wasPropertyExplicitlySet("host")) { + this.host(model.getHost()); + } + if (model.wasPropertyExplicitlySet("port")) { + this.port(model.getPort()); + } + if (model.wasPropertyExplicitlySet("databaseName")) { + this.databaseName(model.getDatabaseName()); + } + if (model.wasPropertyExplicitlySet("securityProtocol")) { + this.securityProtocol(model.getSecurityProtocol()); + } + if (model.wasPropertyExplicitlySet("sslMode")) { + this.sslMode(model.getSslMode()); + } + if (model.wasPropertyExplicitlySet("sslCa")) { + this.sslCa(model.getSslCa()); + } + if (model.wasPropertyExplicitlySet("sslCrl")) { + this.sslCrl(model.getSslCrl()); + } + if (model.wasPropertyExplicitlySet("sslCert")) { + this.sslCert(model.getSslCert()); + } + if (model.wasPropertyExplicitlySet("sslKey")) { + this.sslKey(model.getSslKey()); + } + if (model.wasPropertyExplicitlySet("additionalAttributes")) { + this.additionalAttributes(model.getAdditionalAttributes()); + } + if (model.wasPropertyExplicitlySet("dbSystemId")) { + this.dbSystemId(model.getDbSystemId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateMysqlConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + String host, + Integer port, + String databaseName, + MysqlConnection.SecurityProtocol securityProtocol, + MysqlConnection.SslMode sslMode, + String sslCa, + String sslCrl, + String sslCert, + String sslKey, + java.util.List additionalAttributes, + String dbSystemId) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + subnetId, + nsgIds, + username, + password, + replicationUsername, + replicationPassword); + this.host = host; + this.port = port; + this.databaseName = databaseName; + this.securityProtocol = securityProtocol; + this.sslMode = sslMode; + this.sslCa = sslCa; + this.sslCrl = sslCrl; + this.sslCert = sslCert; + this.sslKey = sslKey; + this.additionalAttributes = additionalAttributes; + this.dbSystemId = dbSystemId; + } + + /** The IP Address of the host. */ + @com.fasterxml.jackson.annotation.JsonProperty("host") + private final String host; + + /** + * The IP Address of the host. + * + * @return the value + */ + public String getHost() { + return host; + } + + /** The port to be used for the connection. */ + @com.fasterxml.jackson.annotation.JsonProperty("port") + private final Integer port; + + /** + * The port to be used for the connection. + * + * @return the value + */ + public Integer getPort() { + return port; + } + + /** The name of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseName") + private final String databaseName; + + /** + * The name of the database being referenced. + * + * @return the value + */ + public String getDatabaseName() { + return databaseName; + } + + /** Security Type for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("securityProtocol") + private final MysqlConnection.SecurityProtocol securityProtocol; + + /** + * Security Type for MySQL. + * + * @return the value + */ + public MysqlConnection.SecurityProtocol getSecurityProtocol() { + return securityProtocol; + } + + /** SSL modes for MySQL. */ + @com.fasterxml.jackson.annotation.JsonProperty("sslMode") + private final MysqlConnection.SslMode sslMode; + + /** + * SSL modes for MySQL. + * + * @return the value + */ + public MysqlConnection.SslMode getSslMode() { + return sslMode; + } + + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCa") + private final String sslCa; + + /** + * Database Certificate - The base64 encoded content of mysql.pem file containing the server + * public key (for 1 and 2-way SSL). + * + * @return the value + */ + public String getSslCa() { + return sslCa; + } + + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on this + * list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable if + * TLS/MTLS option is selected. + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCrl") + private final String sslCrl; + + /** + * Certificates revoked by certificate authorities (CA). Server certificate must not be on this + * list (for 1 and 2-way SSL). Note: This is an optional and that too only applicable if + * TLS/MTLS option is selected. + * + * @return the value + */ + public String getSslCrl() { + return sslCrl; + } + + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the client + * public key (for 2-way SSL). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sslCert") + private final String sslCert; + + /** + * Client Certificate - The base64 encoded content of client-cert.pem file containing the client + * public key (for 2-way SSL). + * + * @return the value + */ + public String getSslCert() { + return sslCert; + } + + /** Client Key - The client-key.pem containing the client private key (for 2-way SSL). */ + @com.fasterxml.jackson.annotation.JsonProperty("sslKey") + private final String sslKey; + + /** + * Client Key - The client-key.pem containing the client private key (for 2-way SSL). + * + * @return the value + */ + public String getSslKey() { + return sslKey; + } + + /** An array of name-value pair attribute entries. */ + @com.fasterxml.jackson.annotation.JsonProperty("additionalAttributes") + private final java.util.List additionalAttributes; + + /** + * An array of name-value pair attribute entries. + * + * @return the value + */ + public java.util.List getAdditionalAttributes() { + return additionalAttributes; + } + + /** The OCID of the database system being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemId") + private final String dbSystemId; + + /** + * The OCID of the database system being referenced. + * + * @return the value + */ + public String getDbSystemId() { + return dbSystemId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateMysqlConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", host=").append(String.valueOf(this.host)); + sb.append(", port=").append(String.valueOf(this.port)); + sb.append(", databaseName=").append(String.valueOf(this.databaseName)); + sb.append(", securityProtocol=").append(String.valueOf(this.securityProtocol)); + sb.append(", sslMode=").append(String.valueOf(this.sslMode)); + sb.append(", sslCa=").append(String.valueOf(this.sslCa)); + sb.append(", sslCrl=").append(String.valueOf(this.sslCrl)); + sb.append(", sslCert=").append(String.valueOf(this.sslCert)); + sb.append(", sslKey=").append(String.valueOf(this.sslKey)); + sb.append(", additionalAttributes=").append(String.valueOf(this.additionalAttributes)); + sb.append(", dbSystemId=").append(String.valueOf(this.dbSystemId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateMysqlConnectionDetails)) { + return false; + } + + UpdateMysqlConnectionDetails other = (UpdateMysqlConnectionDetails) o; + return java.util.Objects.equals(this.host, other.host) + && java.util.Objects.equals(this.port, other.port) + && java.util.Objects.equals(this.databaseName, other.databaseName) + && java.util.Objects.equals(this.securityProtocol, other.securityProtocol) + && java.util.Objects.equals(this.sslMode, other.sslMode) + && java.util.Objects.equals(this.sslCa, other.sslCa) + && java.util.Objects.equals(this.sslCrl, other.sslCrl) + && java.util.Objects.equals(this.sslCert, other.sslCert) + && java.util.Objects.equals(this.sslKey, other.sslKey) + && java.util.Objects.equals(this.additionalAttributes, other.additionalAttributes) + && java.util.Objects.equals(this.dbSystemId, other.dbSystemId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); + result = (result * PRIME) + (this.port == null ? 43 : this.port.hashCode()); + result = (result * PRIME) + (this.databaseName == null ? 43 : this.databaseName.hashCode()); + result = + (result * PRIME) + + (this.securityProtocol == null ? 43 : this.securityProtocol.hashCode()); + result = (result * PRIME) + (this.sslMode == null ? 43 : this.sslMode.hashCode()); + result = (result * PRIME) + (this.sslCa == null ? 43 : this.sslCa.hashCode()); + result = (result * PRIME) + (this.sslCrl == null ? 43 : this.sslCrl.hashCode()); + result = (result * PRIME) + (this.sslCert == null ? 43 : this.sslCert.hashCode()); + result = (result * PRIME) + (this.sslKey == null ? 43 : this.sslKey.hashCode()); + result = + (result * PRIME) + + (this.additionalAttributes == null + ? 43 + : this.additionalAttributes.hashCode()); + result = (result * PRIME) + (this.dbSystemId == null ? 43 : this.dbSystemId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBAutoCreateTablespaceDetails.java index 13b2712f4d1..7007ef6428f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBAutoCreateTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateNonADBAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBRemapTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBRemapTablespaceDetails.java index 817bbbea729..6f155d5dc41 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBRemapTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateNonADBRemapTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateNonADBRemapTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateObjectStoreBucket.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateObjectStoreBucket.java index 8c6b1e7c901..eca9c23ce7c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateObjectStoreBucket.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateObjectStoreBucket.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateObjectStoreBucket.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOciCliDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOciCliDumpTransferDetails.java index d89daed1809..203ee542715 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOciCliDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOciCliDumpTransferDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateOciCliDumpTransferDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAdvisorSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAdvisorSettings.java new file mode 100644 index 00000000000..690e8d74663 --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAdvisorSettings.java @@ -0,0 +1,182 @@ +/** + * 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.databasemigration.model; + +/** + * Optional Pre-Migration advisor settings.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleAdvisorSettings.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOracleAdvisorSettings + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"isSkipAdvisor", "isIgnoreErrors"}) + public UpdateOracleAdvisorSettings(Boolean isSkipAdvisor, Boolean isIgnoreErrors) { + super(); + this.isSkipAdvisor = isSkipAdvisor; + this.isIgnoreErrors = isIgnoreErrors; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** True to skip the Pre-Migration Advisor execution. Default is false. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipAdvisor") + private Boolean isSkipAdvisor; + + /** + * True to skip the Pre-Migration Advisor execution. Default is false. + * + * @param isSkipAdvisor the value to set + * @return this builder + */ + public Builder isSkipAdvisor(Boolean isSkipAdvisor) { + this.isSkipAdvisor = isSkipAdvisor; + this.__explicitlySet__.add("isSkipAdvisor"); + return this; + } + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreErrors") + private Boolean isIgnoreErrors; + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + * + * @param isIgnoreErrors the value to set + * @return this builder + */ + public Builder isIgnoreErrors(Boolean isIgnoreErrors) { + this.isIgnoreErrors = isIgnoreErrors; + this.__explicitlySet__.add("isIgnoreErrors"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleAdvisorSettings build() { + UpdateOracleAdvisorSettings model = + new UpdateOracleAdvisorSettings(this.isSkipAdvisor, this.isIgnoreErrors); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleAdvisorSettings model) { + if (model.wasPropertyExplicitlySet("isSkipAdvisor")) { + this.isSkipAdvisor(model.getIsSkipAdvisor()); + } + if (model.wasPropertyExplicitlySet("isIgnoreErrors")) { + this.isIgnoreErrors(model.getIsIgnoreErrors()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** True to skip the Pre-Migration Advisor execution. Default is false. */ + @com.fasterxml.jackson.annotation.JsonProperty("isSkipAdvisor") + private final Boolean isSkipAdvisor; + + /** + * True to skip the Pre-Migration Advisor execution. Default is false. + * + * @return the value + */ + public Boolean getIsSkipAdvisor() { + return isSkipAdvisor; + } + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + */ + @com.fasterxml.jackson.annotation.JsonProperty("isIgnoreErrors") + private final Boolean isIgnoreErrors; + + /** + * True to not interrupt migration execution due to Pre-Migration Advisor errors. Default is + * false. + * + * @return the value + */ + public Boolean getIsIgnoreErrors() { + return isIgnoreErrors; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleAdvisorSettings("); + sb.append("super=").append(super.toString()); + sb.append("isSkipAdvisor=").append(String.valueOf(this.isSkipAdvisor)); + sb.append(", isIgnoreErrors=").append(String.valueOf(this.isIgnoreErrors)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleAdvisorSettings)) { + return false; + } + + UpdateOracleAdvisorSettings other = (UpdateOracleAdvisorSettings) o; + return java.util.Objects.equals(this.isSkipAdvisor, other.isSkipAdvisor) + && java.util.Objects.equals(this.isIgnoreErrors, other.isIgnoreErrors) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.isSkipAdvisor == null ? 43 : this.isSkipAdvisor.hashCode()); + result = + (result * PRIME) + + (this.isIgnoreErrors == null ? 43 : this.isIgnoreErrors.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAwsS3Details.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java similarity index 77% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAwsS3Details.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java index 87a6f08a308..6648eecae44 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateAwsS3Details.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleAwsS3DataTransferMediumDetails.java @@ -16,24 +16,17 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateAwsS3Details.Builder.class) + builder = UpdateOracleAwsS3DataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateAwsS3Details - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "region", "accessKeyId", "secretAccessKey"}) - public UpdateAwsS3Details( - String name, String region, String accessKeyId, String secretAccessKey) { - super(); - this.name = name; - this.region = region; - this.accessKeyId = accessKeyId; - this.secretAccessKey = secretAccessKey; - } - +public final class UpdateOracleAwsS3DataTransferMediumDetails + extends UpdateOracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** S3 bucket name. */ @@ -111,13 +104,26 @@ public Builder secretAccessKey(String secretAccessKey) { return this; } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private ObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(ObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateAwsS3Details build() { - UpdateAwsS3Details model = - new UpdateAwsS3Details( - this.name, this.region, this.accessKeyId, this.secretAccessKey); + public UpdateOracleAwsS3DataTransferMediumDetails build() { + UpdateOracleAwsS3DataTransferMediumDetails model = + new UpdateOracleAwsS3DataTransferMediumDetails( + this.name, + this.region, + this.accessKeyId, + this.secretAccessKey, + this.objectStorageBucket); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -125,7 +131,7 @@ public UpdateAwsS3Details build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateAwsS3Details model) { + public Builder copy(UpdateOracleAwsS3DataTransferMediumDetails model) { if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } @@ -138,6 +144,9 @@ public Builder copy(UpdateAwsS3Details model) { if (model.wasPropertyExplicitlySet("secretAccessKey")) { this.secretAccessKey(model.getSecretAccessKey()); } + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } return this; } } @@ -151,6 +160,21 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public UpdateOracleAwsS3DataTransferMediumDetails( + String name, + String region, + String accessKeyId, + String secretAccessKey, + ObjectStoreBucket objectStorageBucket) { + super(); + this.name = name; + this.region = region; + this.accessKeyId = accessKeyId; + this.secretAccessKey = secretAccessKey; + this.objectStorageBucket = objectStorageBucket; + } + /** S3 bucket name. */ @com.fasterxml.jackson.annotation.JsonProperty("name") private final String name; @@ -217,6 +241,13 @@ public String getSecretAccessKey() { return secretAccessKey; } + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final ObjectStoreBucket objectStorageBucket; + + public ObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + @Override public String toString() { return this.toString(true); @@ -230,12 +261,13 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateAwsS3Details("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); + sb.append("UpdateOracleAwsS3DataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", name=").append(String.valueOf(this.name)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", accessKeyId=").append(""); sb.append(", secretAccessKey=").append(""); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); sb.append(")"); return sb.toString(); } @@ -245,29 +277,35 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAwsS3Details)) { + if (!(o instanceof UpdateOracleAwsS3DataTransferMediumDetails)) { return false; } - UpdateAwsS3Details other = (UpdateAwsS3Details) o; + UpdateOracleAwsS3DataTransferMediumDetails other = + (UpdateOracleAwsS3DataTransferMediumDetails) o; return java.util.Objects.equals(this.name, other.name) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.accessKeyId, other.accessKeyId) && java.util.Objects.equals(this.secretAccessKey, other.secretAccessKey) + && java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.accessKeyId == null ? 43 : this.accessKeyId.hashCode()); result = (result * PRIME) + (this.secretAccessKey == null ? 43 : this.secretAccessKey.hashCode()); - result = (result * PRIME) + super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleConnectionDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleConnectionDetails.java new file mode 100644 index 00000000000..59844b629bd --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleConnectionDetails.java @@ -0,0 +1,552 @@ +/** + * 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.databasemigration.model; + +/** + * The information to update an Oracle Database Connection.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleConnectionDetails.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 UpdateOracleConnectionDetails extends UpdateConnectionDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("vaultId") + private String vaultId; + + public Builder vaultId(String vaultId) { + this.vaultId = vaultId; + this.__explicitlySet__.add("vaultId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("keyId") + private String keyId; + + public Builder keyId(String keyId) { + this.keyId = keyId; + this.__explicitlySet__.add("keyId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("subnetId") + private String subnetId; + + public Builder subnetId(String subnetId) { + this.subnetId = subnetId; + this.__explicitlySet__.add("subnetId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("nsgIds") + private java.util.List nsgIds; + + public Builder nsgIds(java.util.List nsgIds) { + this.nsgIds = nsgIds; + this.__explicitlySet__.add("nsgIds"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("username") + private String username; + + public Builder username(String username) { + this.username = username; + this.__explicitlySet__.add("username"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("password") + private String password; + + public Builder password(String password) { + this.password = password; + this.__explicitlySet__.add("password"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationUsername") + private String replicationUsername; + + public Builder replicationUsername(String replicationUsername) { + this.replicationUsername = replicationUsername; + this.__explicitlySet__.add("replicationUsername"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("replicationPassword") + private String replicationPassword; + + public Builder replicationPassword(String replicationPassword) { + this.replicationPassword = replicationPassword; + this.__explicitlySet__.add("replicationPassword"); + return this; + } + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @param connectionString the value to set + * @return this builder + */ + public Builder connectionString(String connectionString) { + this.connectionString = connectionString; + this.__explicitlySet__.add("connectionString"); + return this; + } + /** + * The wallet contents used to make connections to a database. This attribute is expected to + * be base64 encoded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + private String wallet; + + /** + * The wallet contents used to make connections to a database. This attribute is expected to + * be base64 encoded. + * + * @param wallet the value to set + * @return this builder + */ + public Builder wallet(String wallet) { + this.wallet = wallet; + this.__explicitlySet__.add("wallet"); + return this; + } + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private String databaseId; + + /** + * The OCID of the database being referenced. + * + * @param databaseId the value to set + * @return this builder + */ + public Builder databaseId(String databaseId) { + this.databaseId = databaseId; + this.__explicitlySet__.add("databaseId"); + return this; + } + /** Name of the host the SSH key is valid for. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshHost") + private String sshHost; + + /** + * Name of the host the SSH key is valid for. + * + * @param sshHost the value to set + * @return this builder + */ + public Builder sshHost(String sshHost) { + this.sshHost = sshHost; + this.__explicitlySet__.add("sshHost"); + return this; + } + /** Private SSH key string. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshKey") + private String sshKey; + + /** + * Private SSH key string. + * + * @param sshKey the value to set + * @return this builder + */ + public Builder sshKey(String sshKey) { + this.sshKey = sshKey; + this.__explicitlySet__.add("sshKey"); + return this; + } + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshUser") + private String sshUser; + + /** + * The username (credential) used when creating or updating this resource. + * + * @param sshUser the value to set + * @return this builder + */ + public Builder sshUser(String sshUser) { + this.sshUser = sshUser; + this.__explicitlySet__.add("sshUser"); + return this; + } + /** Sudo location */ + @com.fasterxml.jackson.annotation.JsonProperty("sshSudoLocation") + private String sshSudoLocation; + + /** + * Sudo location + * + * @param sshSudoLocation the value to set + * @return this builder + */ + public Builder sshSudoLocation(String sshSudoLocation) { + this.sshSudoLocation = sshSudoLocation; + this.__explicitlySet__.add("sshSudoLocation"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleConnectionDetails build() { + UpdateOracleConnectionDetails model = + new UpdateOracleConnectionDetails( + this.displayName, + this.description, + this.freeformTags, + this.definedTags, + this.vaultId, + this.keyId, + this.subnetId, + this.nsgIds, + this.username, + this.password, + this.replicationUsername, + this.replicationPassword, + this.connectionString, + this.wallet, + this.databaseId, + this.sshHost, + this.sshKey, + this.sshUser, + this.sshSudoLocation); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleConnectionDetails model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("vaultId")) { + this.vaultId(model.getVaultId()); + } + if (model.wasPropertyExplicitlySet("keyId")) { + this.keyId(model.getKeyId()); + } + if (model.wasPropertyExplicitlySet("subnetId")) { + this.subnetId(model.getSubnetId()); + } + if (model.wasPropertyExplicitlySet("nsgIds")) { + this.nsgIds(model.getNsgIds()); + } + if (model.wasPropertyExplicitlySet("username")) { + this.username(model.getUsername()); + } + if (model.wasPropertyExplicitlySet("password")) { + this.password(model.getPassword()); + } + if (model.wasPropertyExplicitlySet("replicationUsername")) { + this.replicationUsername(model.getReplicationUsername()); + } + if (model.wasPropertyExplicitlySet("replicationPassword")) { + this.replicationPassword(model.getReplicationPassword()); + } + if (model.wasPropertyExplicitlySet("connectionString")) { + this.connectionString(model.getConnectionString()); + } + if (model.wasPropertyExplicitlySet("wallet")) { + this.wallet(model.getWallet()); + } + if (model.wasPropertyExplicitlySet("databaseId")) { + this.databaseId(model.getDatabaseId()); + } + if (model.wasPropertyExplicitlySet("sshHost")) { + this.sshHost(model.getSshHost()); + } + if (model.wasPropertyExplicitlySet("sshKey")) { + this.sshKey(model.getSshKey()); + } + if (model.wasPropertyExplicitlySet("sshUser")) { + this.sshUser(model.getSshUser()); + } + if (model.wasPropertyExplicitlySet("sshSudoLocation")) { + this.sshSudoLocation(model.getSshSudoLocation()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleConnectionDetails( + String displayName, + String description, + java.util.Map freeformTags, + java.util.Map> definedTags, + String vaultId, + String keyId, + String subnetId, + java.util.List nsgIds, + String username, + String password, + String replicationUsername, + String replicationPassword, + String connectionString, + String wallet, + String databaseId, + String sshHost, + String sshKey, + String sshUser, + String sshSudoLocation) { + super( + displayName, + description, + freeformTags, + definedTags, + vaultId, + keyId, + subnetId, + nsgIds, + username, + password, + replicationUsername, + replicationPassword); + this.connectionString = connectionString; + this.wallet = wallet; + this.databaseId = databaseId; + this.sshHost = sshHost; + this.sshKey = sshKey; + this.sshUser = sshUser; + this.sshSudoLocation = sshSudoLocation; + } + + /** Connect descriptor or Easy Connect Naming method used to connect to a database. */ + @com.fasterxml.jackson.annotation.JsonProperty("connectionString") + private final String connectionString; + + /** + * Connect descriptor or Easy Connect Naming method used to connect to a database. + * + * @return the value + */ + public String getConnectionString() { + return connectionString; + } + + /** + * The wallet contents used to make connections to a database. This attribute is expected to be + * base64 encoded. + */ + @com.fasterxml.jackson.annotation.JsonProperty("wallet") + private final String wallet; + + /** + * The wallet contents used to make connections to a database. This attribute is expected to be + * base64 encoded. + * + * @return the value + */ + public String getWallet() { + return wallet; + } + + /** The OCID of the database being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("databaseId") + private final String databaseId; + + /** + * The OCID of the database being referenced. + * + * @return the value + */ + public String getDatabaseId() { + return databaseId; + } + + /** Name of the host the SSH key is valid for. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshHost") + private final String sshHost; + + /** + * Name of the host the SSH key is valid for. + * + * @return the value + */ + public String getSshHost() { + return sshHost; + } + + /** Private SSH key string. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshKey") + private final String sshKey; + + /** + * Private SSH key string. + * + * @return the value + */ + public String getSshKey() { + return sshKey; + } + + /** The username (credential) used when creating or updating this resource. */ + @com.fasterxml.jackson.annotation.JsonProperty("sshUser") + private final String sshUser; + + /** + * The username (credential) used when creating or updating this resource. + * + * @return the value + */ + public String getSshUser() { + return sshUser; + } + + /** Sudo location */ + @com.fasterxml.jackson.annotation.JsonProperty("sshSudoLocation") + private final String sshSudoLocation; + + /** + * Sudo location + * + * @return the value + */ + public String getSshSudoLocation() { + return sshSudoLocation; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleConnectionDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", connectionString=").append(String.valueOf(this.connectionString)); + sb.append(", wallet=").append(String.valueOf(this.wallet)); + sb.append(", databaseId=").append(String.valueOf(this.databaseId)); + sb.append(", sshHost=").append(String.valueOf(this.sshHost)); + sb.append(", sshKey=").append(String.valueOf(this.sshKey)); + sb.append(", sshUser=").append(String.valueOf(this.sshUser)); + sb.append(", sshSudoLocation=").append(String.valueOf(this.sshSudoLocation)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleConnectionDetails)) { + return false; + } + + UpdateOracleConnectionDetails other = (UpdateOracleConnectionDetails) o; + return java.util.Objects.equals(this.connectionString, other.connectionString) + && java.util.Objects.equals(this.wallet, other.wallet) + && java.util.Objects.equals(this.databaseId, other.databaseId) + && java.util.Objects.equals(this.sshHost, other.sshHost) + && java.util.Objects.equals(this.sshKey, other.sshKey) + && java.util.Objects.equals(this.sshUser, other.sshUser) + && java.util.Objects.equals(this.sshSudoLocation, other.sshSudoLocation) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.connectionString == null ? 43 : this.connectionString.hashCode()); + result = (result * PRIME) + (this.wallet == null ? 43 : this.wallet.hashCode()); + result = (result * PRIME) + (this.databaseId == null ? 43 : this.databaseId.hashCode()); + result = (result * PRIME) + (this.sshHost == null ? 43 : this.sshHost.hashCode()); + result = (result * PRIME) + (this.sshKey == null ? 43 : this.sshKey.hashCode()); + result = (result * PRIME) + (this.sshUser == null ? 43 : this.sshUser.hashCode()); + result = + (result * PRIME) + + (this.sshSudoLocation == null ? 43 : this.sshSudoLocation.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDataTransferMediumDetails.java new file mode 100644 index 00000000000..e966028bfbb --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDataTransferMediumDetails.java @@ -0,0 +1,123 @@ +/** + * 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.databasemigration.model; + +/** + * Optional additional properties for data transfer.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type", + defaultImpl = UpdateOracleDataTransferMediumDetails.class) +@com.fasterxml.jackson.annotation.JsonSubTypes({ + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleAwsS3DataTransferMediumDetails.class, + name = "AWS_S3"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleNfsDataTransferMediumDetails.class, + name = "NFS"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleObjectStorageDataTransferMediumDetails.class, + name = "OBJECT_STORAGE"), + @com.fasterxml.jackson.annotation.JsonSubTypes.Type( + value = UpdateOracleDbLinkDataTransferMediumDetails.class, + name = "DBLINK") +}) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public class UpdateOracleDataTransferMediumDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({}) + protected UpdateOracleDataTransferMediumDetails() { + 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("UpdateOracleDataTransferMediumDetails("); + 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 UpdateOracleDataTransferMediumDetails)) { + return false; + } + + UpdateOracleDataTransferMediumDetails other = (UpdateOracleDataTransferMediumDetails) o; + return super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + super.hashCode(); + return result; + } + + /** Type of the data transfer medium to use. */ + public enum Type implements com.oracle.bmc.http.internal.BmcEnum { + Dblink("DBLINK"), + ObjectStorage("OBJECT_STORAGE"), + AwsS3("AWS_S3"), + Nfs("NFS"), + ; + + private final String value; + private static java.util.Map map; + + static { + map = new java.util.HashMap<>(); + for (Type v : Type.values()) { + map.put(v.getValue(), v); + } + } + + Type(String value) { + this.value = value; + } + + @com.fasterxml.jackson.annotation.JsonValue + public String getValue() { + return value; + } + + @com.fasterxml.jackson.annotation.JsonCreator + public static Type create(String key) { + if (map.containsKey(key)) { + return map.get(key); + } + throw new IllegalArgumentException("Invalid Type: " + key); + } + }; +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDatabaseLinkDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDbLinkDataTransferMediumDetails.java similarity index 62% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDatabaseLinkDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDbLinkDataTransferMediumDetails.java index d2f9d3a6f87..aca79864163 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDatabaseLinkDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleDbLinkDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional details for updating a network database link from OCI database to on-premise database. + * Optional details for creating a network database link from OCI database to on-premise 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 @@ -16,23 +16,28 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDatabaseLinkDetails.Builder.class) + builder = UpdateOracleDbLinkDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateDatabaseLinkDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"name", "walletBucket"}) - public UpdateDatabaseLinkDetails(String name, UpdateObjectStoreBucket walletBucket) { - super(); - this.name = name; - this.walletBucket = walletBucket; - } - +public final class UpdateOracleDbLinkDataTransferMediumDetails + extends UpdateOracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private UpdateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(UpdateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } /** * Name of database link from OCI database to on-premise database. ODMS will create link, if * the link does not already exist. @@ -53,21 +58,13 @@ public Builder name(String name) { return this; } - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private UpdateObjectStoreBucket walletBucket; - - public Builder walletBucket(UpdateObjectStoreBucket walletBucket) { - this.walletBucket = walletBucket; - this.__explicitlySet__.add("walletBucket"); - return this; - } - @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateDatabaseLinkDetails build() { - UpdateDatabaseLinkDetails model = - new UpdateDatabaseLinkDetails(this.name, this.walletBucket); + public UpdateOracleDbLinkDataTransferMediumDetails build() { + UpdateOracleDbLinkDataTransferMediumDetails model = + new UpdateOracleDbLinkDataTransferMediumDetails( + this.objectStorageBucket, this.name); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -75,13 +72,13 @@ public UpdateDatabaseLinkDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDatabaseLinkDetails model) { + public Builder copy(UpdateOracleDbLinkDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } if (model.wasPropertyExplicitlySet("name")) { this.name(model.getName()); } - if (model.wasPropertyExplicitlySet("walletBucket")) { - this.walletBucket(model.getWalletBucket()); - } return this; } } @@ -95,6 +92,21 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public UpdateOracleDbLinkDataTransferMediumDetails( + UpdateObjectStoreBucket objectStorageBucket, String name) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.name = name; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final UpdateObjectStoreBucket objectStorageBucket; + + public UpdateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + /** * Name of database link from OCI database to on-premise database. ODMS will create link, if the * link does not already exist. @@ -112,13 +124,6 @@ public String getName() { return name; } - @com.fasterxml.jackson.annotation.JsonProperty("walletBucket") - private final UpdateObjectStoreBucket walletBucket; - - public UpdateObjectStoreBucket getWalletBucket() { - return walletBucket; - } - @Override public String toString() { return this.toString(true); @@ -132,10 +137,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDatabaseLinkDetails("); - sb.append("super=").append(super.toString()); - sb.append("name=").append(String.valueOf(this.name)); - sb.append(", walletBucket=").append(String.valueOf(this.walletBucket)); + sb.append("UpdateOracleDbLinkDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", name=").append(String.valueOf(this.name)); sb.append(")"); return sb.toString(); } @@ -145,23 +150,27 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDatabaseLinkDetails)) { + if (!(o instanceof UpdateOracleDbLinkDataTransferMediumDetails)) { return false; } - UpdateDatabaseLinkDetails other = (UpdateDatabaseLinkDetails) o; - return java.util.Objects.equals(this.name, other.name) - && java.util.Objects.equals(this.walletBucket, other.walletBucket) + UpdateOracleDbLinkDataTransferMediumDetails other = + (UpdateOracleDbLinkDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.name, other.name) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); result = (result * PRIME) + (this.name == null ? 43 : this.name.hashCode()); - result = (result * PRIME) + (this.walletBucket == null ? 43 : this.walletBucket.hashCode()); - result = (result * PRIME) + super.hashCode(); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleGgsDeploymentDetails.java similarity index 89% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleGgsDeploymentDetails.java index 6d5820df0b5..0bffca6bdee 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateGoldenGateSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleGgsDeploymentDetails.java @@ -5,8 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional settings for Oracle GoldenGate processes If an empty object is specified, the stored - * GoldenGate Settings details will be removed.
+ * Optional settings for Oracle GoldenGate processes
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -16,16 +15,16 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateGoldenGateSettings.Builder.class) + builder = UpdateOracleGgsDeploymentDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateGoldenGateSettings +public final class UpdateOracleGgsDeploymentDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"extract", "replicat", "acceptableLag"}) - public UpdateGoldenGateSettings( + public UpdateOracleGgsDeploymentDetails( UpdateExtract extract, UpdateReplicat replicat, Integer acceptableLag) { super(); this.extract = extract; @@ -76,9 +75,10 @@ public Builder acceptableLag(Integer acceptableLag) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateGoldenGateSettings build() { - UpdateGoldenGateSettings model = - new UpdateGoldenGateSettings(this.extract, this.replicat, this.acceptableLag); + public UpdateOracleGgsDeploymentDetails build() { + UpdateOracleGgsDeploymentDetails model = + new UpdateOracleGgsDeploymentDetails( + this.extract, this.replicat, this.acceptableLag); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -86,7 +86,7 @@ public UpdateGoldenGateSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateGoldenGateSettings model) { + public Builder copy(UpdateOracleGgsDeploymentDetails model) { if (model.wasPropertyExplicitlySet("extract")) { this.extract(model.getExtract()); } @@ -153,7 +153,7 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateGoldenGateSettings("); + sb.append("UpdateOracleGgsDeploymentDetails("); sb.append("super=").append(super.toString()); sb.append("extract=").append(String.valueOf(this.extract)); sb.append(", replicat=").append(String.valueOf(this.replicat)); @@ -167,11 +167,11 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateGoldenGateSettings)) { + if (!(o instanceof UpdateOracleGgsDeploymentDetails)) { return false; } - UpdateGoldenGateSettings other = (UpdateGoldenGateSettings) o; + UpdateOracleGgsDeploymentDetails other = (UpdateOracleGgsDeploymentDetails) o; return java.util.Objects.equals(this.extract, other.extract) && java.util.Objects.equals(this.replicat, other.replicat) && java.util.Objects.equals(this.acceptableLag, other.acceptableLag) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpSettings.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleInitialLoadSettings.java similarity index 73% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpSettings.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleInitialLoadSettings.java index f1422b1316d..f56a2c0558b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateDataPumpSettings.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleInitialLoadSettings.java @@ -15,59 +15,40 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateDataPumpSettings.Builder.class) + builder = UpdateOracleInitialLoadSettings.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateDataPumpSettings +public final class UpdateOracleInitialLoadSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ - "jobMode", "dataPumpParameters", - "metadataRemaps", "tablespaceDetails", "exportDirectoryObject", - "importDirectoryObject" + "importDirectoryObject", + "jobMode", + "metadataRemaps" }) - public UpdateDataPumpSettings( - DataPumpJobMode jobMode, + public UpdateOracleInitialLoadSettings( UpdateDataPumpParameters dataPumpParameters, - java.util.List metadataRemaps, UpdateTargetTypeTablespaceDetails tablespaceDetails, UpdateDirectoryObject exportDirectoryObject, - UpdateDirectoryObject importDirectoryObject) { + UpdateDirectoryObject importDirectoryObject, + JobModeOracle jobMode, + java.util.List metadataRemaps) { super(); - this.jobMode = jobMode; this.dataPumpParameters = dataPumpParameters; - this.metadataRemaps = metadataRemaps; this.tablespaceDetails = tablespaceDetails; this.exportDirectoryObject = exportDirectoryObject; this.importDirectoryObject = importDirectoryObject; + this.jobMode = jobMode; + this.metadataRemaps = metadataRemaps; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - */ - @com.fasterxml.jackson.annotation.JsonProperty("jobMode") - private DataPumpJobMode jobMode; - - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - * - * @param jobMode the value to set - * @return this builder - */ - public Builder jobMode(DataPumpJobMode jobMode) { - this.jobMode = jobMode; - this.__explicitlySet__.add("jobMode"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("dataPumpParameters") private UpdateDataPumpParameters dataPumpParameters; @@ -77,31 +58,6 @@ public Builder dataPumpParameters(UpdateDataPumpParameters dataPumpParameters) { this.__explicitlySet__.add("dataPumpParameters"); return this; } - /** - * Defines remappings to be applied to objects as they are processed. Refer to - * [METADATA_REMAP Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - * If specified, the list will be replaced entirely. Empty list will remove stored Metadata - * Remap details. - */ - @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") - private java.util.List metadataRemaps; - - /** - * Defines remappings to be applied to objects as they are processed. Refer to - * [METADATA_REMAP Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - * If specified, the list will be replaced entirely. Empty list will remove stored Metadata - * Remap details. - * - * @param metadataRemaps the value to set - * @return this builder - */ - public Builder metadataRemaps(java.util.List metadataRemaps) { - this.metadataRemaps = metadataRemaps; - this.__explicitlySet__.add("metadataRemaps"); - return this; - } @com.fasterxml.jackson.annotation.JsonProperty("tablespaceDetails") private UpdateTargetTypeTablespaceDetails tablespaceDetails; @@ -129,19 +85,49 @@ public Builder importDirectoryObject(UpdateDirectoryObject importDirectoryObject this.__explicitlySet__.add("importDirectoryObject"); return this; } + /** Oracle Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private JobModeOracle jobMode; + + /** + * Oracle Job Mode + * + * @param jobMode the value to set + * @return this builder + */ + public Builder jobMode(JobModeOracle jobMode) { + this.jobMode = jobMode; + this.__explicitlySet__.add("jobMode"); + return this; + } + /** Defines remapping to be applied to objects as they are processed. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") + private java.util.List metadataRemaps; + + /** + * Defines remapping to be applied to objects as they are processed. + * + * @param metadataRemaps the value to set + * @return this builder + */ + public Builder metadataRemaps(java.util.List metadataRemaps) { + this.metadataRemaps = metadataRemaps; + this.__explicitlySet__.add("metadataRemaps"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public UpdateDataPumpSettings build() { - UpdateDataPumpSettings model = - new UpdateDataPumpSettings( - this.jobMode, + public UpdateOracleInitialLoadSettings build() { + UpdateOracleInitialLoadSettings model = + new UpdateOracleInitialLoadSettings( this.dataPumpParameters, - this.metadataRemaps, this.tablespaceDetails, this.exportDirectoryObject, - this.importDirectoryObject); + this.importDirectoryObject, + this.jobMode, + this.metadataRemaps); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -149,16 +135,10 @@ public UpdateDataPumpSettings build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateDataPumpSettings model) { - if (model.wasPropertyExplicitlySet("jobMode")) { - this.jobMode(model.getJobMode()); - } + public Builder copy(UpdateOracleInitialLoadSettings model) { if (model.wasPropertyExplicitlySet("dataPumpParameters")) { this.dataPumpParameters(model.getDataPumpParameters()); } - if (model.wasPropertyExplicitlySet("metadataRemaps")) { - this.metadataRemaps(model.getMetadataRemaps()); - } if (model.wasPropertyExplicitlySet("tablespaceDetails")) { this.tablespaceDetails(model.getTablespaceDetails()); } @@ -168,6 +148,12 @@ public Builder copy(UpdateDataPumpSettings model) { if (model.wasPropertyExplicitlySet("importDirectoryObject")) { this.importDirectoryObject(model.getImportDirectoryObject()); } + if (model.wasPropertyExplicitlySet("jobMode")) { + this.jobMode(model.getJobMode()); + } + if (model.wasPropertyExplicitlySet("metadataRemaps")) { + this.metadataRemaps(model.getMetadataRemaps()); + } return this; } } @@ -181,23 +167,6 @@ public Builder toBuilder() { return new Builder().copy(this); } - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - */ - @com.fasterxml.jackson.annotation.JsonProperty("jobMode") - private final DataPumpJobMode jobMode; - - /** - * Data Pump job mode. Refer to [Data Pump Export Modes - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-data-pump-export-utility.html#GUID-8E497131-6B9B-4CC8-AA50-35F480CAC2C4) - * - * @return the value - */ - public DataPumpJobMode getJobMode() { - return jobMode; - } - @com.fasterxml.jackson.annotation.JsonProperty("dataPumpParameters") private final UpdateDataPumpParameters dataPumpParameters; @@ -205,29 +174,6 @@ public UpdateDataPumpParameters getDataPumpParameters() { return dataPumpParameters; } - /** - * Defines remappings to be applied to objects as they are processed. Refer to [METADATA_REMAP - * Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - * If specified, the list will be replaced entirely. Empty list will remove stored Metadata - * Remap details. - */ - @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") - private final java.util.List metadataRemaps; - - /** - * Defines remappings to be applied to objects as they are processed. Refer to [METADATA_REMAP - * Procedure - * ](https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATAPUMP.html#GUID-0FC32790-91E6-4781-87A3-229DE024CB3D) - * If specified, the list will be replaced entirely. Empty list will remove stored Metadata - * Remap details. - * - * @return the value - */ - public java.util.List getMetadataRemaps() { - return metadataRemaps; - } - @com.fasterxml.jackson.annotation.JsonProperty("tablespaceDetails") private final UpdateTargetTypeTablespaceDetails tablespaceDetails; @@ -249,6 +195,32 @@ public UpdateDirectoryObject getImportDirectoryObject() { return importDirectoryObject; } + /** Oracle Job Mode */ + @com.fasterxml.jackson.annotation.JsonProperty("jobMode") + private final JobModeOracle jobMode; + + /** + * Oracle Job Mode + * + * @return the value + */ + public JobModeOracle getJobMode() { + return jobMode; + } + + /** Defines remapping to be applied to objects as they are processed. */ + @com.fasterxml.jackson.annotation.JsonProperty("metadataRemaps") + private final java.util.List metadataRemaps; + + /** + * Defines remapping to be applied to objects as they are processed. + * + * @return the value + */ + public java.util.List getMetadataRemaps() { + return metadataRemaps; + } + @Override public String toString() { return this.toString(true); @@ -262,14 +234,14 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateDataPumpSettings("); + sb.append("UpdateOracleInitialLoadSettings("); sb.append("super=").append(super.toString()); - sb.append("jobMode=").append(String.valueOf(this.jobMode)); - sb.append(", dataPumpParameters=").append(String.valueOf(this.dataPumpParameters)); - sb.append(", metadataRemaps=").append(String.valueOf(this.metadataRemaps)); + sb.append("dataPumpParameters=").append(String.valueOf(this.dataPumpParameters)); sb.append(", tablespaceDetails=").append(String.valueOf(this.tablespaceDetails)); sb.append(", exportDirectoryObject=").append(String.valueOf(this.exportDirectoryObject)); sb.append(", importDirectoryObject=").append(String.valueOf(this.importDirectoryObject)); + sb.append(", jobMode=").append(String.valueOf(this.jobMode)); + sb.append(", metadataRemaps=").append(String.valueOf(this.metadataRemaps)); sb.append(")"); return sb.toString(); } @@ -279,17 +251,17 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateDataPumpSettings)) { + if (!(o instanceof UpdateOracleInitialLoadSettings)) { return false; } - UpdateDataPumpSettings other = (UpdateDataPumpSettings) o; - return java.util.Objects.equals(this.jobMode, other.jobMode) - && java.util.Objects.equals(this.dataPumpParameters, other.dataPumpParameters) - && java.util.Objects.equals(this.metadataRemaps, other.metadataRemaps) + UpdateOracleInitialLoadSettings other = (UpdateOracleInitialLoadSettings) o; + return java.util.Objects.equals(this.dataPumpParameters, other.dataPumpParameters) && java.util.Objects.equals(this.tablespaceDetails, other.tablespaceDetails) && java.util.Objects.equals(this.exportDirectoryObject, other.exportDirectoryObject) && java.util.Objects.equals(this.importDirectoryObject, other.importDirectoryObject) + && java.util.Objects.equals(this.jobMode, other.jobMode) + && java.util.Objects.equals(this.metadataRemaps, other.metadataRemaps) && super.equals(other); } @@ -297,15 +269,11 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = 1; - result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); result = (result * PRIME) + (this.dataPumpParameters == null ? 43 : this.dataPumpParameters.hashCode()); - result = - (result * PRIME) - + (this.metadataRemaps == null ? 43 : this.metadataRemaps.hashCode()); result = (result * PRIME) + (this.tablespaceDetails == null ? 43 : this.tablespaceDetails.hashCode()); @@ -319,6 +287,10 @@ public int hashCode() { + (this.importDirectoryObject == null ? 43 : this.importDirectoryObject.hashCode()); + result = (result * PRIME) + (this.jobMode == null ? 43 : this.jobMode.hashCode()); + result = + (result * PRIME) + + (this.metadataRemaps == null ? 43 : this.metadataRemaps.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java new file mode 100644 index 00000000000..f1b2bc2c77e --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleMigrationDetails.java @@ -0,0 +1,390 @@ +/** + * 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.databasemigration.model; + +/** + * Create Migration resource parameters.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleMigrationDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "databaseCombination") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOracleMigrationDetails extends UpdateMigrationDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("type") + private MigrationTypes type; + + public Builder type(MigrationTypes type) { + this.type = type; + this.__explicitlySet__.add("type"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("sourceDatabaseConnectionId") + private String sourceDatabaseConnectionId; + + public Builder sourceDatabaseConnectionId(String sourceDatabaseConnectionId) { + this.sourceDatabaseConnectionId = sourceDatabaseConnectionId; + this.__explicitlySet__.add("sourceDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("targetDatabaseConnectionId") + private String targetDatabaseConnectionId; + + public Builder targetDatabaseConnectionId(String targetDatabaseConnectionId) { + this.targetDatabaseConnectionId = targetDatabaseConnectionId; + this.__explicitlySet__.add("targetDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") + private java.util.Map freeformTags; + + public Builder freeformTags(java.util.Map freeformTags) { + this.freeformTags = freeformTags; + this.__explicitlySet__.add("freeformTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("definedTags") + private java.util.Map> definedTags; + + public Builder definedTags( + java.util.Map> definedTags) { + this.definedTags = definedTags; + this.__explicitlySet__.add("definedTags"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public Builder dataTransferMediumDetails( + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails) { + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.__explicitlySet__.add("dataTransferMediumDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private UpdateOracleInitialLoadSettings initialLoadSettings; + + public Builder initialLoadSettings(UpdateOracleInitialLoadSettings initialLoadSettings) { + this.initialLoadSettings = initialLoadSettings; + this.__explicitlySet__.add("initialLoadSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private UpdateOracleAdvisorSettings advisorSettings; + + public Builder advisorSettings(UpdateOracleAdvisorSettings advisorSettings) { + this.advisorSettings = advisorSettings; + this.__explicitlySet__.add("advisorSettings"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private UpdateGoldenGateHubDetails hubDetails; + + public Builder hubDetails(UpdateGoldenGateHubDetails hubDetails) { + this.hubDetails = hubDetails; + this.__explicitlySet__.add("hubDetails"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private UpdateOracleGgsDeploymentDetails ggsDetails; + + public Builder ggsDetails(UpdateOracleGgsDeploymentDetails ggsDetails) { + this.ggsDetails = ggsDetails; + this.__explicitlySet__.add("ggsDetails"); + return this; + } + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @param sourceContainerDatabaseConnectionId the value to set + * @return this builder + */ + public Builder sourceContainerDatabaseConnectionId( + String sourceContainerDatabaseConnectionId) { + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + this.__explicitlySet__.add("sourceContainerDatabaseConnectionId"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleMigrationDetails build() { + UpdateOracleMigrationDetails model = + new UpdateOracleMigrationDetails( + this.description, + this.type, + this.displayName, + this.sourceDatabaseConnectionId, + this.targetDatabaseConnectionId, + this.freeformTags, + this.definedTags, + this.dataTransferMediumDetails, + this.initialLoadSettings, + this.advisorSettings, + this.hubDetails, + this.ggsDetails, + this.sourceContainerDatabaseConnectionId); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleMigrationDetails model) { + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("type")) { + this.type(model.getType()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourceDatabaseConnectionId")) { + this.sourceDatabaseConnectionId(model.getSourceDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("targetDatabaseConnectionId")) { + this.targetDatabaseConnectionId(model.getTargetDatabaseConnectionId()); + } + if (model.wasPropertyExplicitlySet("freeformTags")) { + this.freeformTags(model.getFreeformTags()); + } + if (model.wasPropertyExplicitlySet("definedTags")) { + this.definedTags(model.getDefinedTags()); + } + if (model.wasPropertyExplicitlySet("dataTransferMediumDetails")) { + this.dataTransferMediumDetails(model.getDataTransferMediumDetails()); + } + if (model.wasPropertyExplicitlySet("initialLoadSettings")) { + this.initialLoadSettings(model.getInitialLoadSettings()); + } + if (model.wasPropertyExplicitlySet("advisorSettings")) { + this.advisorSettings(model.getAdvisorSettings()); + } + if (model.wasPropertyExplicitlySet("hubDetails")) { + this.hubDetails(model.getHubDetails()); + } + if (model.wasPropertyExplicitlySet("ggsDetails")) { + this.ggsDetails(model.getGgsDetails()); + } + if (model.wasPropertyExplicitlySet("sourceContainerDatabaseConnectionId")) { + this.sourceContainerDatabaseConnectionId( + model.getSourceContainerDatabaseConnectionId()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleMigrationDetails( + String description, + MigrationTypes type, + String displayName, + String sourceDatabaseConnectionId, + String targetDatabaseConnectionId, + java.util.Map freeformTags, + java.util.Map> definedTags, + UpdateOracleDataTransferMediumDetails dataTransferMediumDetails, + UpdateOracleInitialLoadSettings initialLoadSettings, + UpdateOracleAdvisorSettings advisorSettings, + UpdateGoldenGateHubDetails hubDetails, + UpdateOracleGgsDeploymentDetails ggsDetails, + String sourceContainerDatabaseConnectionId) { + super( + description, + type, + displayName, + sourceDatabaseConnectionId, + targetDatabaseConnectionId, + freeformTags, + definedTags); + this.dataTransferMediumDetails = dataTransferMediumDetails; + this.initialLoadSettings = initialLoadSettings; + this.advisorSettings = advisorSettings; + this.hubDetails = hubDetails; + this.ggsDetails = ggsDetails; + this.sourceContainerDatabaseConnectionId = sourceContainerDatabaseConnectionId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dataTransferMediumDetails") + private final UpdateOracleDataTransferMediumDetails dataTransferMediumDetails; + + public UpdateOracleDataTransferMediumDetails getDataTransferMediumDetails() { + return dataTransferMediumDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("initialLoadSettings") + private final UpdateOracleInitialLoadSettings initialLoadSettings; + + public UpdateOracleInitialLoadSettings getInitialLoadSettings() { + return initialLoadSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("advisorSettings") + private final UpdateOracleAdvisorSettings advisorSettings; + + public UpdateOracleAdvisorSettings getAdvisorSettings() { + return advisorSettings; + } + + @com.fasterxml.jackson.annotation.JsonProperty("hubDetails") + private final UpdateGoldenGateHubDetails hubDetails; + + public UpdateGoldenGateHubDetails getHubDetails() { + return hubDetails; + } + + @com.fasterxml.jackson.annotation.JsonProperty("ggsDetails") + private final UpdateOracleGgsDeploymentDetails ggsDetails; + + public UpdateOracleGgsDeploymentDetails getGgsDetails() { + return ggsDetails; + } + + /** The OCID of the resource being referenced. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceContainerDatabaseConnectionId") + private final String sourceContainerDatabaseConnectionId; + + /** + * The OCID of the resource being referenced. + * + * @return the value + */ + public String getSourceContainerDatabaseConnectionId() { + return sourceContainerDatabaseConnectionId; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleMigrationDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", dataTransferMediumDetails=") + .append(String.valueOf(this.dataTransferMediumDetails)); + sb.append(", initialLoadSettings=").append(String.valueOf(this.initialLoadSettings)); + sb.append(", advisorSettings=").append(String.valueOf(this.advisorSettings)); + sb.append(", hubDetails=").append(String.valueOf(this.hubDetails)); + sb.append(", ggsDetails=").append(String.valueOf(this.ggsDetails)); + sb.append(", sourceContainerDatabaseConnectionId=") + .append(String.valueOf(this.sourceContainerDatabaseConnectionId)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleMigrationDetails)) { + return false; + } + + UpdateOracleMigrationDetails other = (UpdateOracleMigrationDetails) o; + return java.util.Objects.equals( + this.dataTransferMediumDetails, other.dataTransferMediumDetails) + && java.util.Objects.equals(this.initialLoadSettings, other.initialLoadSettings) + && java.util.Objects.equals(this.advisorSettings, other.advisorSettings) + && java.util.Objects.equals(this.hubDetails, other.hubDetails) + && java.util.Objects.equals(this.ggsDetails, other.ggsDetails) + && java.util.Objects.equals( + this.sourceContainerDatabaseConnectionId, + other.sourceContainerDatabaseConnectionId) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.dataTransferMediumDetails == null + ? 43 + : this.dataTransferMediumDetails.hashCode()); + result = + (result * PRIME) + + (this.initialLoadSettings == null + ? 43 + : this.initialLoadSettings.hashCode()); + result = + (result * PRIME) + + (this.advisorSettings == null ? 43 : this.advisorSettings.hashCode()); + result = (result * PRIME) + (this.hubDetails == null ? 43 : this.hubDetails.hashCode()); + result = (result * PRIME) + (this.ggsDetails == null ? 43 : this.ggsDetails.hashCode()); + result = + (result * PRIME) + + (this.sourceContainerDatabaseConnectionId == null + ? 43 + : this.sourceContainerDatabaseConnectionId.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDumpTransferDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleNfsDataTransferMediumDetails.java similarity index 63% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDumpTransferDetails.java rename to bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleNfsDataTransferMediumDetails.java index 0768313652e..97d7d868a28 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/CreateDumpTransferDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleNfsDataTransferMediumDetails.java @@ -5,7 +5,7 @@ package com.oracle.bmc.databasemigration.model; /** - * Optional additional properties for dump transfer.
+ * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a @@ -15,41 +15,42 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = CreateDumpTransferDetails.Builder.class) + builder = UpdateOracleNfsDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class CreateDumpTransferDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"source", "target", "sharedStorageMountTargetId"}) - public CreateDumpTransferDetails( - CreateHostDumpTransferDetails source, - CreateHostDumpTransferDetails target, - String sharedStorageMountTargetId) { - super(); - this.source = source; - this.target = target; - this.sharedStorageMountTargetId = sharedStorageMountTargetId; - } - +public final class UpdateOracleNfsDataTransferMediumDetails + extends UpdateOracleDataTransferMediumDetails { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private UpdateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(UpdateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + @com.fasterxml.jackson.annotation.JsonProperty("source") - private CreateHostDumpTransferDetails source; + private HostDumpTransferDetails source; - public Builder source(CreateHostDumpTransferDetails source) { + public Builder source(HostDumpTransferDetails source) { this.source = source; this.__explicitlySet__.add("source"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("target") - private CreateHostDumpTransferDetails target; + private HostDumpTransferDetails target; - public Builder target(CreateHostDumpTransferDetails target) { + public Builder target(HostDumpTransferDetails target) { this.target = target; this.__explicitlySet__.add("target"); return this; @@ -73,10 +74,13 @@ public Builder sharedStorageMountTargetId(String sharedStorageMountTargetId) { @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - public CreateDumpTransferDetails build() { - CreateDumpTransferDetails model = - new CreateDumpTransferDetails( - this.source, this.target, this.sharedStorageMountTargetId); + public UpdateOracleNfsDataTransferMediumDetails build() { + UpdateOracleNfsDataTransferMediumDetails model = + new UpdateOracleNfsDataTransferMediumDetails( + this.objectStorageBucket, + this.source, + this.target, + this.sharedStorageMountTargetId); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -84,7 +88,10 @@ public CreateDumpTransferDetails build() { } @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(CreateDumpTransferDetails model) { + public Builder copy(UpdateOracleNfsDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } if (model.wasPropertyExplicitlySet("source")) { this.source(model.getSource()); } @@ -107,17 +114,37 @@ public Builder toBuilder() { return new Builder().copy(this); } + @Deprecated + public UpdateOracleNfsDataTransferMediumDetails( + UpdateObjectStoreBucket objectStorageBucket, + HostDumpTransferDetails source, + HostDumpTransferDetails target, + String sharedStorageMountTargetId) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.source = source; + this.target = target; + this.sharedStorageMountTargetId = sharedStorageMountTargetId; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final UpdateObjectStoreBucket objectStorageBucket; + + public UpdateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + @com.fasterxml.jackson.annotation.JsonProperty("source") - private final CreateHostDumpTransferDetails source; + private final HostDumpTransferDetails source; - public CreateHostDumpTransferDetails getSource() { + public HostDumpTransferDetails getSource() { return source; } @com.fasterxml.jackson.annotation.JsonProperty("target") - private final CreateHostDumpTransferDetails target; + private final HostDumpTransferDetails target; - public CreateHostDumpTransferDetails getTarget() { + public HostDumpTransferDetails getTarget() { return target; } @@ -147,9 +174,10 @@ public String toString() { */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("CreateDumpTransferDetails("); - sb.append("super=").append(super.toString()); - sb.append("source=").append(String.valueOf(this.source)); + sb.append("UpdateOracleNfsDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", source=").append(String.valueOf(this.source)); sb.append(", target=").append(String.valueOf(this.target)); sb.append(", sharedStorageMountTargetId=") .append(String.valueOf(this.sharedStorageMountTargetId)); @@ -162,12 +190,14 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof CreateDumpTransferDetails)) { + if (!(o instanceof UpdateOracleNfsDataTransferMediumDetails)) { return false; } - CreateDumpTransferDetails other = (CreateDumpTransferDetails) o; - return java.util.Objects.equals(this.source, other.source) + UpdateOracleNfsDataTransferMediumDetails other = + (UpdateOracleNfsDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.source, other.source) && java.util.Objects.equals(this.target, other.target) && java.util.Objects.equals( this.sharedStorageMountTargetId, other.sharedStorageMountTargetId) @@ -177,7 +207,12 @@ public boolean equals(Object o) { @Override public int hashCode() { final int PRIME = 59; - int result = 1; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); result = @@ -185,7 +220,6 @@ public int hashCode() { + (this.sharedStorageMountTargetId == null ? 43 : this.sharedStorageMountTargetId.hashCode()); - result = (result * PRIME) + super.hashCode(); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleObjectStorageDataTransferMediumDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleObjectStorageDataTransferMediumDetails.java new file mode 100644 index 00000000000..0348158f26f --- /dev/null +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateOracleObjectStorageDataTransferMediumDetails.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.databasemigration.model; + +/** + * OCI Object Storage bucket will be used to store Data Pump dump files for the migration.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = UpdateOracleObjectStorageDataTransferMediumDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonTypeInfo( + use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, + include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, + property = "type") +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class UpdateOracleObjectStorageDataTransferMediumDetails + extends UpdateOracleDataTransferMediumDetails { + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private UpdateObjectStoreBucket objectStorageBucket; + + public Builder objectStorageBucket(UpdateObjectStoreBucket objectStorageBucket) { + this.objectStorageBucket = objectStorageBucket; + this.__explicitlySet__.add("objectStorageBucket"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private HostDumpTransferDetails source; + + public Builder source(HostDumpTransferDetails source) { + this.source = source; + this.__explicitlySet__.add("source"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("target") + private HostDumpTransferDetails target; + + public Builder target(HostDumpTransferDetails target) { + this.target = target; + this.__explicitlySet__.add("target"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public UpdateOracleObjectStorageDataTransferMediumDetails build() { + UpdateOracleObjectStorageDataTransferMediumDetails model = + new UpdateOracleObjectStorageDataTransferMediumDetails( + this.objectStorageBucket, this.source, this.target); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(UpdateOracleObjectStorageDataTransferMediumDetails model) { + if (model.wasPropertyExplicitlySet("objectStorageBucket")) { + this.objectStorageBucket(model.getObjectStorageBucket()); + } + if (model.wasPropertyExplicitlySet("source")) { + this.source(model.getSource()); + } + if (model.wasPropertyExplicitlySet("target")) { + this.target(model.getTarget()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + @Deprecated + public UpdateOracleObjectStorageDataTransferMediumDetails( + UpdateObjectStoreBucket objectStorageBucket, + HostDumpTransferDetails source, + HostDumpTransferDetails target) { + super(); + this.objectStorageBucket = objectStorageBucket; + this.source = source; + this.target = target; + } + + @com.fasterxml.jackson.annotation.JsonProperty("objectStorageBucket") + private final UpdateObjectStoreBucket objectStorageBucket; + + public UpdateObjectStoreBucket getObjectStorageBucket() { + return objectStorageBucket; + } + + @com.fasterxml.jackson.annotation.JsonProperty("source") + private final HostDumpTransferDetails source; + + public HostDumpTransferDetails getSource() { + return source; + } + + @com.fasterxml.jackson.annotation.JsonProperty("target") + private final HostDumpTransferDetails target; + + public HostDumpTransferDetails getTarget() { + return target; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("UpdateOracleObjectStorageDataTransferMediumDetails("); + sb.append("super=").append(super.toString(includeByteArrayContents)); + sb.append(", objectStorageBucket=").append(String.valueOf(this.objectStorageBucket)); + sb.append(", source=").append(String.valueOf(this.source)); + sb.append(", target=").append(String.valueOf(this.target)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof UpdateOracleObjectStorageDataTransferMediumDetails)) { + return false; + } + + UpdateOracleObjectStorageDataTransferMediumDetails other = + (UpdateOracleObjectStorageDataTransferMediumDetails) o; + return java.util.Objects.equals(this.objectStorageBucket, other.objectStorageBucket) + && java.util.Objects.equals(this.source, other.source) + && java.util.Objects.equals(this.target, other.target) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = super.hashCode(); + result = + (result * PRIME) + + (this.objectStorageBucket == null + ? 43 + : this.objectStorageBucket.hashCode()); + result = (result * PRIME) + (this.source == null ? 43 : this.source.hashCode()); + result = (result * PRIME) + (this.target == null ? 43 : this.target.hashCode()); + return result; + } +} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdatePrivateEndpoint.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdatePrivateEndpoint.java deleted file mode 100644 index 210f21fe7bd..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdatePrivateEndpoint.java +++ /dev/null @@ -1,232 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * OCI Private Endpoint configuration details. An empty object would result in the removal of the - * stored details.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdatePrivateEndpoint.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdatePrivateEndpoint - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "vcnId", "subnetId"}) - public UpdatePrivateEndpoint(String compartmentId, String vcnId, String subnetId) { - super(); - this.compartmentId = compartmentId; - this.vcnId = vcnId; - this.subnetId = subnetId; - } - - @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 - * compartment to contain the private endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - * - * @param compartmentId the value to set - * @return this builder - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - this.__explicitlySet__.add("compartmentId"); - return this; - } - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * VCN where the Private Endpoint will be bound to. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private String vcnId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * VCN where the Private Endpoint will be bound to. - * - * @param vcnId the value to set - * @return this builder - */ - public Builder vcnId(String vcnId) { - this.vcnId = vcnId; - this.__explicitlySet__.add("vcnId"); - return this; - } - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - */ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private String subnetId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - * - * @param subnetId the value to set - * @return this builder - */ - public Builder subnetId(String subnetId) { - this.subnetId = subnetId; - this.__explicitlySet__.add("subnetId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdatePrivateEndpoint build() { - UpdatePrivateEndpoint model = - new UpdatePrivateEndpoint(this.compartmentId, this.vcnId, this.subnetId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdatePrivateEndpoint model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("vcnId")) { - this.vcnId(model.getVcnId()); - } - if (model.wasPropertyExplicitlySet("subnetId")) { - this.subnetId(model.getSubnetId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * compartment to contain the private endpoint. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN - * where the Private Endpoint will be bound to. - */ - @com.fasterxml.jackson.annotation.JsonProperty("vcnId") - private final String vcnId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the VCN - * where the Private Endpoint will be bound to. - * - * @return the value - */ - public String getVcnId() { - return vcnId; - } - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - */ - @com.fasterxml.jackson.annotation.JsonProperty("subnetId") - private final String subnetId; - - /** - * The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the - * customer's subnet where the private endpoint VNIC will reside. - * - * @return the value - */ - public String getSubnetId() { - return subnetId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdatePrivateEndpoint("); - sb.append("super=").append(super.toString()); - 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(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdatePrivateEndpoint)) { - return false; - } - - UpdatePrivateEndpoint other = (UpdatePrivateEndpoint) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.vcnId, other.vcnId) - && java.util.Objects.equals(this.subnetId, other.subnetId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.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) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateReplicat.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateReplicat.java index e42ca7d090a..8c41c2acf3e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateReplicat.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateReplicat.java @@ -16,29 +16,17 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UpdateReplicat.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class UpdateReplicat extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated - @java.beans.ConstructorProperties({ - "performanceProfile", - "mapParallelism", - "minApplyParallelism", - "maxApplyParallelism" - }) - public UpdateReplicat( - ReplicatPerformanceProfile performanceProfile, - Integer mapParallelism, - Integer minApplyParallelism, - Integer maxApplyParallelism) { + @java.beans.ConstructorProperties({"performanceProfile"}) + public UpdateReplicat(ReplicatPerformanceProfile performanceProfile) { super(); this.performanceProfile = performanceProfile; - this.mapParallelism = mapParallelism; - this.minApplyParallelism = minApplyParallelism; - this.maxApplyParallelism = maxApplyParallelism; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -58,70 +46,12 @@ public Builder performanceProfile(ReplicatPerformanceProfile performanceProfile) this.__explicitlySet__.add("performanceProfile"); return this; } - /** Number of threads used to read trail files (valid for Parallel Replicat) */ - @com.fasterxml.jackson.annotation.JsonProperty("mapParallelism") - private Integer mapParallelism; - - /** - * Number of threads used to read trail files (valid for Parallel Replicat) - * - * @param mapParallelism the value to set - * @return this builder - */ - public Builder mapParallelism(Integer mapParallelism) { - this.mapParallelism = mapParallelism; - this.__explicitlySet__.add("mapParallelism"); - return this; - } - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("minApplyParallelism") - private Integer minApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - * - * @param minApplyParallelism the value to set - * @return this builder - */ - public Builder minApplyParallelism(Integer minApplyParallelism) { - this.minApplyParallelism = minApplyParallelism; - this.__explicitlySet__.add("minApplyParallelism"); - return this; - } - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("maxApplyParallelism") - private Integer maxApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid - * for Parallel Replicat) - * - * @param maxApplyParallelism the value to set - * @return this builder - */ - public Builder maxApplyParallelism(Integer maxApplyParallelism) { - this.maxApplyParallelism = maxApplyParallelism; - this.__explicitlySet__.add("maxApplyParallelism"); - return this; - } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public UpdateReplicat build() { - UpdateReplicat model = - new UpdateReplicat( - this.performanceProfile, - this.mapParallelism, - this.minApplyParallelism, - this.maxApplyParallelism); + UpdateReplicat model = new UpdateReplicat(this.performanceProfile); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -133,15 +63,6 @@ public Builder copy(UpdateReplicat model) { if (model.wasPropertyExplicitlySet("performanceProfile")) { this.performanceProfile(model.getPerformanceProfile()); } - if (model.wasPropertyExplicitlySet("mapParallelism")) { - this.mapParallelism(model.getMapParallelism()); - } - if (model.wasPropertyExplicitlySet("minApplyParallelism")) { - this.minApplyParallelism(model.getMinApplyParallelism()); - } - if (model.wasPropertyExplicitlySet("maxApplyParallelism")) { - this.maxApplyParallelism(model.getMaxApplyParallelism()); - } return this; } } @@ -168,53 +89,6 @@ public ReplicatPerformanceProfile getPerformanceProfile() { return performanceProfile; } - /** Number of threads used to read trail files (valid for Parallel Replicat) */ - @com.fasterxml.jackson.annotation.JsonProperty("mapParallelism") - private final Integer mapParallelism; - - /** - * Number of threads used to read trail files (valid for Parallel Replicat) - * - * @return the value - */ - public Integer getMapParallelism() { - return mapParallelism; - } - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("minApplyParallelism") - private final Integer minApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - * - * @return the value - */ - public Integer getMinApplyParallelism() { - return minApplyParallelism; - } - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - */ - @com.fasterxml.jackson.annotation.JsonProperty("maxApplyParallelism") - private final Integer maxApplyParallelism; - - /** - * Defines the range in which Replicat automatically adjusts its apply parallelism (valid for - * Parallel Replicat) - * - * @return the value - */ - public Integer getMaxApplyParallelism() { - return maxApplyParallelism; - } - @Override public String toString() { return this.toString(true); @@ -231,9 +105,6 @@ public String toString(boolean includeByteArrayContents) { sb.append("UpdateReplicat("); sb.append("super=").append(super.toString()); sb.append("performanceProfile=").append(String.valueOf(this.performanceProfile)); - sb.append(", mapParallelism=").append(String.valueOf(this.mapParallelism)); - sb.append(", minApplyParallelism=").append(String.valueOf(this.minApplyParallelism)); - sb.append(", maxApplyParallelism=").append(String.valueOf(this.maxApplyParallelism)); sb.append(")"); return sb.toString(); } @@ -249,9 +120,6 @@ public boolean equals(Object o) { UpdateReplicat other = (UpdateReplicat) o; return java.util.Objects.equals(this.performanceProfile, other.performanceProfile) - && java.util.Objects.equals(this.mapParallelism, other.mapParallelism) - && java.util.Objects.equals(this.minApplyParallelism, other.minApplyParallelism) - && java.util.Objects.equals(this.maxApplyParallelism, other.maxApplyParallelism) && super.equals(other); } @@ -264,19 +132,6 @@ public int hashCode() { + (this.performanceProfile == null ? 43 : this.performanceProfile.hashCode()); - result = - (result * PRIME) - + (this.mapParallelism == null ? 43 : this.mapParallelism.hashCode()); - result = - (result * PRIME) - + (this.minApplyParallelism == null - ? 43 - : this.minApplyParallelism.hashCode()); - result = - (result * PRIME) - + (this.maxApplyParallelism == null - ? 43 - : this.maxApplyParallelism.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateSshDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateSshDetails.java deleted file mode 100644 index 9d401d9e609..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateSshDetails.java +++ /dev/null @@ -1,239 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * Details of the SSH key that will be used.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = UpdateSshDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateSshDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"host", "sshkey", "user", "sudoLocation"}) - public UpdateSshDetails(String host, String sshkey, String user, String sudoLocation) { - super(); - this.host = host; - this.sshkey = sshkey; - this.user = user; - this.sudoLocation = sudoLocation; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** Name of the host the SSH key is valid for. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private String host; - - /** - * Name of the host the SSH key is valid for. - * - * @param host the value to set - * @return this builder - */ - public Builder host(String host) { - this.host = host; - this.__explicitlySet__.add("host"); - return this; - } - /** Private SSH key string. */ - @com.fasterxml.jackson.annotation.JsonProperty("sshkey") - private String sshkey; - - /** - * Private SSH key string. - * - * @param sshkey the value to set - * @return this builder - */ - public Builder sshkey(String sshkey) { - this.sshkey = sshkey; - this.__explicitlySet__.add("sshkey"); - return this; - } - /** SSH user */ - @com.fasterxml.jackson.annotation.JsonProperty("user") - private String user; - - /** - * SSH user - * - * @param user the value to set - * @return this builder - */ - public Builder user(String user) { - this.user = user; - this.__explicitlySet__.add("user"); - return this; - } - /** Sudo location */ - @com.fasterxml.jackson.annotation.JsonProperty("sudoLocation") - private String sudoLocation; - - /** - * Sudo location - * - * @param sudoLocation the value to set - * @return this builder - */ - public Builder sudoLocation(String sudoLocation) { - this.sudoLocation = sudoLocation; - this.__explicitlySet__.add("sudoLocation"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateSshDetails build() { - UpdateSshDetails model = - new UpdateSshDetails(this.host, this.sshkey, this.user, this.sudoLocation); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateSshDetails model) { - if (model.wasPropertyExplicitlySet("host")) { - this.host(model.getHost()); - } - if (model.wasPropertyExplicitlySet("sshkey")) { - this.sshkey(model.getSshkey()); - } - if (model.wasPropertyExplicitlySet("user")) { - this.user(model.getUser()); - } - if (model.wasPropertyExplicitlySet("sudoLocation")) { - this.sudoLocation(model.getSudoLocation()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** Name of the host the SSH key is valid for. */ - @com.fasterxml.jackson.annotation.JsonProperty("host") - private final String host; - - /** - * Name of the host the SSH key is valid for. - * - * @return the value - */ - public String getHost() { - return host; - } - - /** Private SSH key string. */ - @com.fasterxml.jackson.annotation.JsonProperty("sshkey") - private final String sshkey; - - /** - * Private SSH key string. - * - * @return the value - */ - public String getSshkey() { - return sshkey; - } - - /** SSH user */ - @com.fasterxml.jackson.annotation.JsonProperty("user") - private final String user; - - /** - * SSH user - * - * @return the value - */ - public String getUser() { - return user; - } - - /** Sudo location */ - @com.fasterxml.jackson.annotation.JsonProperty("sudoLocation") - private final String sudoLocation; - - /** - * Sudo location - * - * @return the value - */ - public String getSudoLocation() { - return sudoLocation; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateSshDetails("); - sb.append("super=").append(super.toString()); - sb.append("host=").append(String.valueOf(this.host)); - sb.append(", sshkey=").append(String.valueOf(this.sshkey)); - sb.append(", user=").append(String.valueOf(this.user)); - sb.append(", sudoLocation=").append(String.valueOf(this.sudoLocation)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateSshDetails)) { - return false; - } - - UpdateSshDetails other = (UpdateSshDetails) o; - return java.util.Objects.equals(this.host, other.host) - && java.util.Objects.equals(this.sshkey, other.sshkey) - && java.util.Objects.equals(this.user, other.user) - && java.util.Objects.equals(this.sudoLocation, other.sudoLocation) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = (result * PRIME) + (this.host == null ? 43 : this.host.hashCode()); - result = (result * PRIME) + (this.sshkey == null ? 43 : this.sshkey.hashCode()); - result = (result * PRIME) + (this.user == null ? 43 : this.user.hashCode()); - result = (result * PRIME) + (this.sudoLocation == null ? 43 : this.sudoLocation.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsAutoCreateTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsAutoCreateTablespaceDetails.java index 250806e9f63..bb50a6686c2 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsAutoCreateTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsAutoCreateTablespaceDetails.java @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateTargetDefaultsAutoCreateTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsRemapTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsRemapTablespaceDetails.java index 75a6d303f68..34ce8e20688 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsRemapTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetDefaultsRemapTablespaceDetails.java @@ -18,7 +18,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = UpdateTargetDefaultsRemapTablespaceDetails.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetTypeTablespaceDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetTypeTablespaceDetails.java index 4fdeff10af7..3d258576826 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetTypeTablespaceDetails.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateTargetTypeTablespaceDetails.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateVaultDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateVaultDetails.java deleted file mode 100644 index 49ae9d83fa5..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/UpdateVaultDetails.java +++ /dev/null @@ -1,208 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * OCI Vault details to store migration and connection credentials secrets. An empty object would - * result in the removal of the stored details.
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize( - builder = UpdateVaultDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class UpdateVaultDetails - extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "vaultId", "keyId"}) - public UpdateVaultDetails(String compartmentId, String vaultId, String keyId) { - super(); - this.compartmentId = compartmentId; - this.vaultId = vaultId; - this.keyId = keyId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** OCID of the compartment where the secret containing the credentials will be created. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment where the secret containing the credentials will 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; - } - /** OCID of the vault */ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * OCID of the vault - * - * @param vaultId the value to set - * @return this builder - */ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** OCID of the vault encryption key */ - @com.fasterxml.jackson.annotation.JsonProperty("keyId") - private String keyId; - - /** - * OCID of the vault encryption key - * - * @param keyId the value to set - * @return this builder - */ - public Builder keyId(String keyId) { - this.keyId = keyId; - this.__explicitlySet__.add("keyId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public UpdateVaultDetails build() { - UpdateVaultDetails model = - new UpdateVaultDetails(this.compartmentId, this.vaultId, this.keyId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(UpdateVaultDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("keyId")) { - this.keyId(model.getKeyId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** OCID of the compartment where the secret containing the credentials will be created. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * OCID of the compartment where the secret containing the credentials will be created. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** OCID of the vault */ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * OCID of the vault - * - * @return the value - */ - public String getVaultId() { - return vaultId; - } - - /** OCID of the vault encryption key */ - @com.fasterxml.jackson.annotation.JsonProperty("keyId") - private final String keyId; - - /** - * OCID of the vault encryption key - * - * @return the value - */ - public String getKeyId() { - return keyId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("UpdateVaultDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", keyId=").append(String.valueOf(this.keyId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateVaultDetails)) { - return false; - } - - UpdateVaultDetails other = (UpdateVaultDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.keyId, other.keyId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/VaultDetails.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/VaultDetails.java deleted file mode 100644 index 1e026eda849..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/VaultDetails.java +++ /dev/null @@ -1,204 +0,0 @@ -/** - * 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.databasemigration.model; - -/** - * OCI Vault details to store migration and connection credentials secrets
- * Note: Objects should always be created or deserialized using the {@link Builder}. This model - * distinguishes fields that are {@code null} because they are unset from fields that are explicitly - * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a - * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link - * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set - * fields into account. The constructor, on the other hand, does not take the explicitly set fields - * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code - * null}). - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = VaultDetails.Builder.class) -@com.fasterxml.jackson.annotation.JsonFilter( - com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) -public final class VaultDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { - @Deprecated - @java.beans.ConstructorProperties({"compartmentId", "vaultId", "keyId"}) - public VaultDetails(String compartmentId, String vaultId, String keyId) { - super(); - this.compartmentId = compartmentId; - this.vaultId = vaultId; - this.keyId = keyId; - } - - @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") - public static class Builder { - /** OCID of the compartment where the secret containing the credentials will be created. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private String compartmentId; - - /** - * OCID of the compartment where the secret containing the credentials will 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; - } - /** OCID of the vault */ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private String vaultId; - - /** - * OCID of the vault - * - * @param vaultId the value to set - * @return this builder - */ - public Builder vaultId(String vaultId) { - this.vaultId = vaultId; - this.__explicitlySet__.add("vaultId"); - return this; - } - /** OCID of the vault encryption key */ - @com.fasterxml.jackson.annotation.JsonProperty("keyId") - private String keyId; - - /** - * OCID of the vault encryption key - * - * @param keyId the value to set - * @return this builder - */ - public Builder keyId(String keyId) { - this.keyId = keyId; - this.__explicitlySet__.add("keyId"); - return this; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - private final java.util.Set __explicitlySet__ = new java.util.HashSet(); - - public VaultDetails build() { - VaultDetails model = new VaultDetails(this.compartmentId, this.vaultId, this.keyId); - for (String explicitlySetProperty : this.__explicitlySet__) { - model.markPropertyAsExplicitlySet(explicitlySetProperty); - } - return model; - } - - @com.fasterxml.jackson.annotation.JsonIgnore - public Builder copy(VaultDetails model) { - if (model.wasPropertyExplicitlySet("compartmentId")) { - this.compartmentId(model.getCompartmentId()); - } - if (model.wasPropertyExplicitlySet("vaultId")) { - this.vaultId(model.getVaultId()); - } - if (model.wasPropertyExplicitlySet("keyId")) { - this.keyId(model.getKeyId()); - } - return this; - } - } - - /** Create a new builder. */ - public static Builder builder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder().copy(this); - } - - /** OCID of the compartment where the secret containing the credentials will be created. */ - @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") - private final String compartmentId; - - /** - * OCID of the compartment where the secret containing the credentials will be created. - * - * @return the value - */ - public String getCompartmentId() { - return compartmentId; - } - - /** OCID of the vault */ - @com.fasterxml.jackson.annotation.JsonProperty("vaultId") - private final String vaultId; - - /** - * OCID of the vault - * - * @return the value - */ - public String getVaultId() { - return vaultId; - } - - /** OCID of the vault encryption key */ - @com.fasterxml.jackson.annotation.JsonProperty("keyId") - private final String keyId; - - /** - * OCID of the vault encryption key - * - * @return the value - */ - public String getKeyId() { - return keyId; - } - - @Override - public String toString() { - return this.toString(true); - } - - /** - * Return a string representation of the object. - * - * @param includeByteArrayContents true to include the full contents of byte arrays - * @return string representation - */ - public String toString(boolean includeByteArrayContents) { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("VaultDetails("); - sb.append("super=").append(super.toString()); - sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(", vaultId=").append(String.valueOf(this.vaultId)); - sb.append(", keyId=").append(String.valueOf(this.keyId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof VaultDetails)) { - return false; - } - - VaultDetails other = (VaultDetails) o; - return java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.vaultId, other.vaultId) - && java.util.Objects.equals(this.keyId, other.keyId) - && super.equals(other); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = 1; - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.vaultId == null ? 43 : this.vaultId.hashCode()); - result = (result * PRIME) + (this.keyId == null ? 43 : this.keyId.hashCode()); - result = (result * PRIME) + super.hashCode(); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequest.java index f99a040a25e..f84dd382915 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequest.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequest.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestCollection.java index 13d83711634..a8307b806c0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestError.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestError.java index 09c07b519f4..892b65df1c7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestError.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestError.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = WorkRequestError.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestErrorCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestErrorCollection.java index a5403e8ffbd..b2fbb99ad99 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestErrorCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestErrorCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestErrorCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntry.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntry.java index aab2d17f475..4309dff1f25 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntry.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntry.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntry.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntryCollection.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntryCollection.java index c09e01ecaea..f8e7839be55 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntryCollection.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestLogEntryCollection.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestLogEntryCollection.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestResource.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestResource.java index 7ab65bb82b6..b89364edb3f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestResource.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestResource.java @@ -16,7 +16,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestResource.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestSummary.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestSummary.java index 8b42b1a4f70..7819600ef03 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestSummary.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/model/WorkRequestSummary.java @@ -15,7 +15,7 @@ * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = WorkRequestSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AbortJobRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AbortJobRequest.java index ff8d39fe023..fb05e85dc85 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AbortJobRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AbortJobRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/AbortJobExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use AbortJobRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AbortJobRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AddMigrationObjectsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AddMigrationObjectsRequest.java index 8dcbf786255..5c01ec04c78 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AddMigrationObjectsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/AddMigrationObjectsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/AddMigrationObjectsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use AddMigrationObjectsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AddMigrationObjectsRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.MigrationObjectCollection> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeAgentCompartmentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeAgentCompartmentRequest.java deleted file mode 100644 index 380600e1f98..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeAgentCompartmentRequest.java +++ /dev/null @@ -1,365 +0,0 @@ -/** - * 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.databasemigration.requests; - -import com.oracle.bmc.databasemigration.model.*; -/** - * Example: Click here to see how to use - * ChangeAgentCompartmentRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ChangeAgentCompartmentRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails> { - - /** The OCID of the agent */ - private String agentId; - - /** The OCID of the agent */ - public String getAgentId() { - return agentId; - } - /** Details to change the compartment. */ - private com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - changeAgentCompartmentDetails; - - /** Details to change the compartment. */ - public com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - getChangeAgentCompartmentDetails() { - return changeAgentCompartmentDetails; - } - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a - * resource has been deleted and purged from the system, then a retry of the original creation - * request might be rejected. - */ - private String opcRetryToken; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a - * resource has been deleted and purged from the system, then a retry of the original creation - * request might be rejected. - */ - public String getOpcRetryToken() { - return opcRetryToken; - } - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST response for that - * 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.databasemigration.model.ChangeAgentCompartmentDetails getBody$() { - return changeAgentCompartmentDetails; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ChangeAgentCompartmentRequest, - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails> { - private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** The OCID of the agent */ - private String agentId = null; - - /** - * The OCID of the agent - * - * @param agentId the value to set - * @return this builder instance - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - return this; - } - - /** Details to change the compartment. */ - private com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - changeAgentCompartmentDetails = null; - - /** - * Details to change the compartment. - * - * @param changeAgentCompartmentDetails the value to set - * @return this builder instance - */ - public Builder changeAgentCompartmentDetails( - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails - changeAgentCompartmentDetails) { - this.changeAgentCompartmentDetails = changeAgentCompartmentDetails; - return this; - } - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, - * if a resource has been deleted and purged from the system, then a retry of the original - * creation request might be rejected. - */ - private String opcRetryToken = null; - - /** - * A token that uniquely identifies a request so it can be retried in case of a timeout or - * server error without risk of executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, - * if a resource has been deleted and purged from the system, then a retry of the original - * creation request might be rejected. - * - * @param opcRetryToken the value to set - * @return this builder instance - */ - public Builder opcRetryToken(String opcRetryToken) { - this.opcRetryToken = opcRetryToken; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId = null; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the - * {@code if-match} parameter to the value of the etag from a previous GET or POST response - * for that 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(ChangeAgentCompartmentRequest o) { - agentId(o.getAgentId()); - changeAgentCompartmentDetails(o.getChangeAgentCompartmentDetails()); - opcRetryToken(o.getOpcRetryToken()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ChangeAgentCompartmentRequest 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 ChangeAgentCompartmentRequest - */ - public ChangeAgentCompartmentRequest build() { - ChangeAgentCompartmentRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Alternative setter for the body parameter. - * - * @param body the body parameter - * @return this builder instance - */ - @com.oracle.bmc.InternalSdk - public Builder body$( - com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails body) { - changeAgentCompartmentDetails(body); - return this; - } - - /** - * Build the instance of ChangeAgentCompartmentRequest 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 ChangeAgentCompartmentRequest - */ - public ChangeAgentCompartmentRequest buildWithoutInvocationCallback() { - ChangeAgentCompartmentRequest request = new ChangeAgentCompartmentRequest(); - request.agentId = agentId; - request.changeAgentCompartmentDetails = changeAgentCompartmentDetails; - request.opcRetryToken = opcRetryToken; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new ChangeAgentCompartmentRequest(agentId, changeAgentCompartmentDetails, - // opcRetryToken, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .agentId(agentId) - .changeAgentCompartmentDetails(changeAgentCompartmentDetails) - .opcRetryToken(opcRetryToken) - .opcRequestId(opcRequestId) - .ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",agentId=").append(String.valueOf(this.agentId)); - sb.append(",changeAgentCompartmentDetails=") - .append(String.valueOf(this.changeAgentCompartmentDetails)); - sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ChangeAgentCompartmentRequest)) { - return false; - } - - ChangeAgentCompartmentRequest other = (ChangeAgentCompartmentRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.agentId, other.agentId) - && java.util.Objects.equals( - this.changeAgentCompartmentDetails, other.changeAgentCompartmentDetails) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); - result = - (result * PRIME) - + (this.changeAgentCompartmentDetails == null - ? 43 - : this.changeAgentCompartmentDetails.hashCode()); - result = - (result * PRIME) - + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeConnectionCompartmentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeConnectionCompartmentRequest.java index 6c3137feda4..4841a91338e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeConnectionCompartmentRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeConnectionCompartmentRequest.java @@ -11,15 +11,15 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeConnectionCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ChangeConnectionCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.ChangeConnectionCompartmentDetails> { - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ public String getConnectionId() { return connectionId; } @@ -100,11 +100,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId = null; /** - * The OCID of the database connection + * The OCID of the database connection. * * @param connectionId the value to set * @return this builder instance diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeMigrationCompartmentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeMigrationCompartmentRequest.java index 4feb809656f..da7b5a7c139 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeMigrationCompartmentRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ChangeMigrationCompartmentRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ChangeMigrationCompartmentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ChangeMigrationCompartmentRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.ChangeMigrationCompartmentDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CloneMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CloneMigrationRequest.java index 0e6219f76da..8780a8fef31 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CloneMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CloneMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/CloneMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use CloneMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CloneMigrationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.CloneMigrationDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ConnectionDiagnosticsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ConnectionDiagnosticsRequest.java index 5fa7e9846e2..e02cf5bab8f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ConnectionDiagnosticsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ConnectionDiagnosticsRequest.java @@ -11,14 +11,14 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ConnectionDiagnosticsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ConnectionDiagnosticsRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ public String getConnectionId() { return connectionId; } @@ -78,11 +78,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId = null; /** - * The OCID of the database connection + * The OCID of the database connection. * * @param connectionId the value to set * @return this builder instance diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateConnectionRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateConnectionRequest.java index 7e9c4f902ea..13b7e52092c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateConnectionRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateConnectionRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/CreateConnectionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use CreateConnectionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateConnectionRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.CreateConnectionDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateMigrationRequest.java index 08fd3821310..c232dd0f27c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/CreateMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/CreateMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use CreateMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateMigrationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.CreateMigrationDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteAgentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteAgentRequest.java deleted file mode 100644 index fb83436ad58..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteAgentRequest.java +++ /dev/null @@ -1,244 +0,0 @@ -/** - * 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.databasemigration.requests; - -import com.oracle.bmc.databasemigration.model.*; -/** - * Example: Click here to see how to use DeleteAgentRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class DeleteAgentRequest extends com.oracle.bmc.requests.BmcRequest { - - /** The OCID of the agent */ - private String agentId; - - /** The OCID of the agent */ - public String getAgentId() { - return agentId; - } - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - public String getOpcRequestId() { - return opcRequestId; - } - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST response for that - * resource. The resource will be updated or deleted only if the etag you provide matches the - * resource's current etag value. - */ - private String ifMatch; - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code - * if-match} parameter to the value of the etag from a previous GET or POST response for that - * resource. The resource will be updated or deleted only if the etag you provide matches the - * resource's current etag value. - */ - public String getIfMatch() { - return ifMatch; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - DeleteAgentRequest, java.lang.Void> { - private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** The OCID of the agent */ - private String agentId = null; - - /** - * The OCID of the agent - * - * @param agentId the value to set - * @return this builder instance - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId = null; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the - * {@code if-match} parameter to the value of the etag from a previous GET or POST response - * for that resource. The resource will be updated or deleted only if the etag you provide - * matches the resource's current etag value. - */ - private String ifMatch = null; - - /** - * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the - * {@code if-match} parameter to the value of the etag from a previous GET or POST response - * for that resource. The resource will be updated or deleted only if the etag you provide - * matches the resource's current etag value. - * - * @param ifMatch the value to set - * @return this builder instance - */ - public Builder ifMatch(String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - public Builder copy(DeleteAgentRequest o) { - agentId(o.getAgentId()); - opcRequestId(o.getOpcRequestId()); - ifMatch(o.getIfMatch()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of DeleteAgentRequest 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 DeleteAgentRequest - */ - public DeleteAgentRequest build() { - DeleteAgentRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of DeleteAgentRequest 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 DeleteAgentRequest - */ - public DeleteAgentRequest buildWithoutInvocationCallback() { - DeleteAgentRequest request = new DeleteAgentRequest(); - request.agentId = agentId; - request.opcRequestId = opcRequestId; - request.ifMatch = ifMatch; - return request; - // new DeleteAgentRequest(agentId, opcRequestId, ifMatch); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder().agentId(agentId).opcRequestId(opcRequestId).ifMatch(ifMatch); - } - - /** - * Return a new builder for this request object. - * - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",agentId=").append(String.valueOf(this.agentId)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof DeleteAgentRequest)) { - return false; - } - - DeleteAgentRequest other = (DeleteAgentRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.agentId, other.agentId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteConnectionRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteConnectionRequest.java index c2c4f88b11c..f433df761d4 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteConnectionRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteConnectionRequest.java @@ -10,13 +10,13 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/DeleteConnectionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use DeleteConnectionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteConnectionRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ public String getConnectionId() { return connectionId; } @@ -57,11 +57,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId = null; /** - * The OCID of the database connection + * The OCID of the database connection. * * @param connectionId the value to set * @return this builder instance diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteJobRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteJobRequest.java index ed34a23ff8f..84609dbbf54 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteJobRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteJobRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/DeleteJobExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use DeleteJobRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteJobRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteMigrationRequest.java index 8c32a9a8461..690403c7ad9 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/DeleteMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/DeleteMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use DeleteMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteMigrationRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the migration */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/EvaluateMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/EvaluateMigrationRequest.java index 5598ce5e4f7..b28da406cb5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/EvaluateMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/EvaluateMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/EvaluateMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use EvaluateMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class EvaluateMigrationRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the migration */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAdvisorReportRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAdvisorReportRequest.java index 448c48d9ffa..017bf154e72 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAdvisorReportRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAdvisorReportRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/GetAdvisorReportExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetAdvisorReportRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetAdvisorReportRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAgentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAgentRequest.java deleted file mode 100644 index f6f504cc854..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetAgentRequest.java +++ /dev/null @@ -1,199 +0,0 @@ -/** - * 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.databasemigration.requests; - -import com.oracle.bmc.databasemigration.model.*; -/** - * Example: Click here to see how to use GetAgentRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class GetAgentRequest extends com.oracle.bmc.requests.BmcRequest { - - /** The OCID of the agent */ - private String agentId; - - /** The OCID of the agent */ - public String getAgentId() { - return agentId; - } - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder { - private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** The OCID of the agent */ - private String agentId = null; - - /** - * The OCID of the agent - * - * @param agentId the value to set - * @return this builder instance - */ - public Builder agentId(String agentId) { - this.agentId = agentId; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId = null; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - public Builder copy(GetAgentRequest o) { - agentId(o.getAgentId()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of GetAgentRequest 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 GetAgentRequest - */ - public GetAgentRequest build() { - GetAgentRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of GetAgentRequest 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 GetAgentRequest - */ - public GetAgentRequest buildWithoutInvocationCallback() { - GetAgentRequest request = new GetAgentRequest(); - request.agentId = agentId; - request.opcRequestId = opcRequestId; - return request; - // new GetAgentRequest(agentId, 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().agentId(agentId).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(",agentId=").append(String.valueOf(this.agentId)); - 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 GetAgentRequest)) { - return false; - } - - GetAgentRequest other = (GetAgentRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.agentId, other.agentId) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetConnectionRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetConnectionRequest.java index bf6f87a84b4..2fb9905652e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetConnectionRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetConnectionRequest.java @@ -10,13 +10,13 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/GetConnectionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetConnectionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetConnectionRequest extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ public String getConnectionId() { return connectionId; } @@ -40,11 +40,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId = null; /** - * The OCID of the database connection + * The OCID of the database connection. * * @param connectionId the value to set * @return this builder instance diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobOutputContentRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobOutputContentRequest.java index 642a13feecd..25df38d77e0 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobOutputContentRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobOutputContentRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/GetJobOutputContentExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetJobOutputContentRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobOutputContentRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobRequest.java index 5cce0e59114..e8b4a9e616a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetJobRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/GetJobExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetJobRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetMigrationRequest.java index f46cf169a7c..4f9fa6bdef6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/GetMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetMigrationRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the migration */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetWorkRequestRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetWorkRequestRequest.java index 8838581d33e..446cef654d8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetWorkRequestRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/GetWorkRequestRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/GetWorkRequestExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use GetWorkRequestRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetWorkRequestRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the asynchronous request. */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentImagesRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentImagesRequest.java deleted file mode 100644 index 28ab5fd7423..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentImagesRequest.java +++ /dev/null @@ -1,266 +0,0 @@ -/** - * 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.databasemigration.requests; - -import com.oracle.bmc.databasemigration.model.*; -/** - * Example: Click here to see how to use ListAgentImagesRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentImagesRequest extends com.oracle.bmc.requests.BmcRequest { - - /** The maximum number of items to return. */ - private Integer limit; - - /** The maximum number of items to return. */ - public Integer getLimit() { - return limit; - } - /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. - */ - private String page; - - /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. - */ - public String getPage() { - return page; - } - /** The sort order to use, either 'asc' or 'desc'. */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; - - /** The sort order to use, either 'asc' or 'desc'. */ - public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { - return sortOrder; - } - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListAgentImagesRequest, java.lang.Void> { - private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** The maximum number of items to return. */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. - */ - private String page = null; - - /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. - * - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** The sort order to use, either 'asc' or 'desc'. */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; - - /** - * The sort order to use, either 'asc' or 'desc'. - * - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId = null; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - public Builder copy(ListAgentImagesRequest o) { - limit(o.getLimit()); - page(o.getPage()); - sortOrder(o.getSortOrder()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ListAgentImagesRequest 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 ListAgentImagesRequest - */ - public ListAgentImagesRequest build() { - ListAgentImagesRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ListAgentImagesRequest 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 ListAgentImagesRequest - */ - public ListAgentImagesRequest buildWithoutInvocationCallback() { - ListAgentImagesRequest request = new ListAgentImagesRequest(); - request.limit = limit; - request.page = page; - request.sortOrder = sortOrder; - request.opcRequestId = opcRequestId; - return request; - // new ListAgentImagesRequest(limit, page, sortOrder, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .limit(limit) - .page(page) - .sortOrder(sortOrder) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListAgentImagesRequest)) { - return false; - } - - ListAgentImagesRequest other = (ListAgentImagesRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentsRequest.java deleted file mode 100644 index 4841d1b79c1..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListAgentsRequest.java +++ /dev/null @@ -1,432 +0,0 @@ -/** - * 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.databasemigration.requests; - -import com.oracle.bmc.databasemigration.model.*; -/** - * Example: Click here to see how to use ListAgentsRequest. - */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentsRequest extends com.oracle.bmc.requests.BmcRequest { - - /** The ID of the compartment in which to list resources. */ - private String compartmentId; - - /** The ID of the compartment in which to list resources. */ - public String getCompartmentId() { - return compartmentId; - } - /** The maximum number of items to return. */ - private Integer limit; - - /** The maximum number of items to return. */ - public Integer getLimit() { - return limit; - } - /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. - */ - private String page; - - /** - * The page token representing the page at which to start retrieving results. This is usually - * retrieved from a previous list call. - */ - public String getPage() { - return page; - } - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is - * descending. Default order for displayName is ascending. If no value is specified timeCreated - * is default. - */ - private SortBy sortBy; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is - * descending. Default order for displayName is ascending. If no value is specified timeCreated - * is default. - */ - public enum SortBy implements com.oracle.bmc.http.internal.BmcEnum { - TimeCreated("timeCreated"), - DisplayName("displayName"), - ; - - private final String value; - private static java.util.Map map; - - static { - map = new java.util.HashMap<>(); - for (SortBy v : SortBy.values()) { - map.put(v.getValue(), v); - } - } - - SortBy(String value) { - this.value = value; - } - - @com.fasterxml.jackson.annotation.JsonValue - public String getValue() { - return value; - } - - @com.fasterxml.jackson.annotation.JsonCreator - public static SortBy create(String key) { - if (map.containsKey(key)) { - return map.get(key); - } - throw new IllegalArgumentException("Invalid SortBy: " + key); - } - }; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated is - * descending. Default order for displayName is ascending. If no value is specified timeCreated - * is default. - */ - public SortBy getSortBy() { - return sortBy; - } - /** The sort order to use, either 'asc' or 'desc'. */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder; - - /** The sort order to use, either 'asc' or 'desc'. */ - public com.oracle.bmc.databasemigration.model.SortOrders getSortOrder() { - return sortOrder; - } - /** A filter to return only resources that match the entire display name given. */ - private String displayName; - - /** A filter to return only resources that match the entire display name given. */ - public String getDisplayName() { - return displayName; - } - /** The current state of the Database Migration Deployment. */ - private com.oracle.bmc.databasemigration.model.LifecycleStates lifecycleState; - - /** The current state of the Database Migration Deployment. */ - public com.oracle.bmc.databasemigration.model.LifecycleStates getLifecycleState() { - return lifecycleState; - } - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - public String getOpcRequestId() { - return opcRequestId; - } - - public static class Builder - implements com.oracle.bmc.requests.BmcRequest.Builder< - ListAgentsRequest, java.lang.Void> { - private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; - private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - - /** The ID of the compartment in which to list resources. */ - private String compartmentId = null; - - /** - * The ID of the compartment in which to list resources. - * - * @param compartmentId the value to set - * @return this builder instance - */ - public Builder compartmentId(String compartmentId) { - this.compartmentId = compartmentId; - return this; - } - - /** The maximum number of items to return. */ - private Integer limit = null; - - /** - * The maximum number of items to return. - * - * @param limit the value to set - * @return this builder instance - */ - public Builder limit(Integer limit) { - this.limit = limit; - return this; - } - - /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. - */ - private String page = null; - - /** - * The page token representing the page at which to start retrieving results. This is - * usually retrieved from a previous list call. - * - * @param page the value to set - * @return this builder instance - */ - public Builder page(String page) { - this.page = page; - return this; - } - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated - * is descending. Default order for displayName is ascending. If no value is specified - * timeCreated is default. - */ - private SortBy sortBy = null; - - /** - * The field to sort by. Only one sort order may be provided. Default order for timeCreated - * is descending. Default order for displayName is ascending. If no value is specified - * timeCreated is default. - * - * @param sortBy the value to set - * @return this builder instance - */ - public Builder sortBy(SortBy sortBy) { - this.sortBy = sortBy; - return this; - } - - /** The sort order to use, either 'asc' or 'desc'. */ - private com.oracle.bmc.databasemigration.model.SortOrders sortOrder = null; - - /** - * The sort order to use, either 'asc' or 'desc'. - * - * @param sortOrder the value to set - * @return this builder instance - */ - public Builder sortOrder(com.oracle.bmc.databasemigration.model.SortOrders sortOrder) { - this.sortOrder = sortOrder; - return this; - } - - /** A filter to return only resources that match the entire display name given. */ - private String displayName = null; - - /** - * A filter to return only resources that match the entire display name given. - * - * @param displayName the value to set - * @return this builder instance - */ - public Builder displayName(String displayName) { - this.displayName = displayName; - return this; - } - - /** The current state of the Database Migration Deployment. */ - private com.oracle.bmc.databasemigration.model.LifecycleStates lifecycleState = null; - - /** - * The current state of the Database Migration Deployment. - * - * @param lifecycleState the value to set - * @return this builder instance - */ - public Builder lifecycleState( - com.oracle.bmc.databasemigration.model.LifecycleStates lifecycleState) { - this.lifecycleState = lifecycleState; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId = null; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder instance - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * Set the invocation callback for the request to be built. - * - * @param invocationCallback the invocation callback to be set for the request - * @return this builder instance - */ - public Builder invocationCallback( - com.oracle.bmc.http.client.RequestInterceptor invocationCallback) { - this.invocationCallback = invocationCallback; - return this; - } - - /** - * Set the retry configuration for the request to be built. - * - * @param retryConfiguration the retry configuration to be used for the request - * @return this builder instance - */ - public Builder retryConfiguration( - com.oracle.bmc.retrier.RetryConfiguration retryConfiguration) { - this.retryConfiguration = retryConfiguration; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - public Builder copy(ListAgentsRequest o) { - compartmentId(o.getCompartmentId()); - limit(o.getLimit()); - page(o.getPage()); - sortBy(o.getSortBy()); - sortOrder(o.getSortOrder()); - displayName(o.getDisplayName()); - lifecycleState(o.getLifecycleState()); - opcRequestId(o.getOpcRequestId()); - invocationCallback(o.getInvocationCallback()); - retryConfiguration(o.getRetryConfiguration()); - return this; - } - - /** - * Build the instance of ListAgentsRequest 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 ListAgentsRequest - */ - public ListAgentsRequest build() { - ListAgentsRequest request = buildWithoutInvocationCallback(); - request.setInvocationCallback(invocationCallback); - request.setRetryConfiguration(retryConfiguration); - return request; - } - - /** - * Build the instance of ListAgentsRequest 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 ListAgentsRequest - */ - public ListAgentsRequest buildWithoutInvocationCallback() { - ListAgentsRequest request = new ListAgentsRequest(); - request.compartmentId = compartmentId; - request.limit = limit; - request.page = page; - request.sortBy = sortBy; - request.sortOrder = sortOrder; - request.displayName = displayName; - request.lifecycleState = lifecycleState; - request.opcRequestId = opcRequestId; - return request; - // new ListAgentsRequest(compartmentId, limit, page, sortBy, sortOrder, displayName, - // lifecycleState, opcRequestId); - } - } - - /** - * Return an instance of {@link Builder} that allows you to modify request properties. - * - * @return instance of {@link Builder} that allows you to modify request properties. - */ - public Builder toBuilder() { - return new Builder() - .compartmentId(compartmentId) - .limit(limit) - .page(page) - .sortBy(sortBy) - .sortOrder(sortOrder) - .displayName(displayName) - .lifecycleState(lifecycleState) - .opcRequestId(opcRequestId); - } - - /** - * Return a new builder for this request object. - * - * @return builder for the request object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); - sb.append(",limit=").append(String.valueOf(this.limit)); - sb.append(",page=").append(String.valueOf(this.page)); - sb.append(",sortBy=").append(String.valueOf(this.sortBy)); - sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); - sb.append(",displayName=").append(String.valueOf(this.displayName)); - sb.append(",lifecycleState=").append(String.valueOf(this.lifecycleState)); - 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 ListAgentsRequest)) { - return false; - } - - ListAgentsRequest other = (ListAgentsRequest) o; - return super.equals(o) - && java.util.Objects.equals(this.compartmentId, other.compartmentId) - && java.util.Objects.equals(this.limit, other.limit) - && java.util.Objects.equals(this.page, other.page) - && java.util.Objects.equals(this.sortBy, other.sortBy) - && java.util.Objects.equals(this.sortOrder, other.sortOrder) - && java.util.Objects.equals(this.displayName, other.displayName) - && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = - (result * PRIME) - + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); - result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); - result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); - result = (result * PRIME) + (this.sortBy == null ? 43 : this.sortBy.hashCode()); - result = (result * PRIME) + (this.sortOrder == null ? 43 : this.sortOrder.hashCode()); - result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); - result = - (result * PRIME) - + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListConnectionsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListConnectionsRequest.java index d408eee1e75..5ce84985a98 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListConnectionsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListConnectionsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListConnectionsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListConnectionsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListConnectionsRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the compartment in which to list resources. */ @@ -33,6 +33,29 @@ public String getCompartmentId() { public String getOpcRequestId() { return opcRequestId; } + /** The array of technology types. */ + private java.util.List technologyType; + + /** The array of technology types. */ + public java.util.List + getTechnologyType() { + return technologyType; + } + /** The array of connection types. */ + private java.util.List connectionType; + + /** The array of connection types. */ + public java.util.List + getConnectionType() { + return connectionType; + } + /** The OCID of the source database connection. */ + private String sourceConnectionId; + + /** The OCID of the source database connection. */ + public String getSourceConnectionId() { + return sourceConnectionId; + } /** A filter to return only resources that match the entire display name given. */ private String displayName; @@ -166,6 +189,74 @@ public Builder opcRequestId(String opcRequestId) { return this; } + /** The array of technology types. */ + private java.util.List + technologyType = null; + + /** + * The array of technology types. + * + * @param technologyType the value to set + * @return this builder instance + */ + public Builder technologyType( + java.util.List + technologyType) { + this.technologyType = technologyType; + return this; + } + + /** + * Singular setter. The array of technology types. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder technologyType(TechnologyType singularValue) { + return this.technologyType(java.util.Arrays.asList(singularValue)); + } + + /** The array of connection types. */ + private java.util.List + connectionType = null; + + /** + * The array of connection types. + * + * @param connectionType the value to set + * @return this builder instance + */ + public Builder connectionType( + java.util.List + connectionType) { + this.connectionType = connectionType; + return this; + } + + /** + * Singular setter. The array of connection types. + * + * @param singularValue the singular value to set + * @return this builder instance + */ + public Builder connectionType(ConnectionType singularValue) { + return this.connectionType(java.util.Arrays.asList(singularValue)); + } + + /** The OCID of the source database connection. */ + private String sourceConnectionId = null; + + /** + * The OCID of the source database connection. + * + * @param sourceConnectionId the value to set + * @return this builder instance + */ + public Builder sourceConnectionId(String sourceConnectionId) { + this.sourceConnectionId = sourceConnectionId; + return this; + } + /** A filter to return only resources that match the entire display name given. */ private String displayName = null; @@ -293,6 +384,9 @@ public Builder retryConfiguration( public Builder copy(ListConnectionsRequest o) { compartmentId(o.getCompartmentId()); opcRequestId(o.getOpcRequestId()); + technologyType(o.getTechnologyType()); + connectionType(o.getConnectionType()); + sourceConnectionId(o.getSourceConnectionId()); displayName(o.getDisplayName()); limit(o.getLimit()); page(o.getPage()); @@ -335,6 +429,9 @@ public ListConnectionsRequest buildWithoutInvocationCallback() { ListConnectionsRequest request = new ListConnectionsRequest(); request.compartmentId = compartmentId; request.opcRequestId = opcRequestId; + request.technologyType = technologyType; + request.connectionType = connectionType; + request.sourceConnectionId = sourceConnectionId; request.displayName = displayName; request.limit = limit; request.page = page; @@ -342,8 +439,9 @@ public ListConnectionsRequest buildWithoutInvocationCallback() { request.sortOrder = sortOrder; request.lifecycleState = lifecycleState; return request; - // new ListConnectionsRequest(compartmentId, opcRequestId, displayName, limit, page, - // sortBy, sortOrder, lifecycleState); + // new ListConnectionsRequest(compartmentId, opcRequestId, technologyType, + // connectionType, sourceConnectionId, displayName, limit, page, sortBy, sortOrder, + // lifecycleState); } } @@ -356,6 +454,9 @@ public Builder toBuilder() { return new Builder() .compartmentId(compartmentId) .opcRequestId(opcRequestId) + .technologyType(technologyType) + .connectionType(connectionType) + .sourceConnectionId(sourceConnectionId) .displayName(displayName) .limit(limit) .page(page) @@ -380,6 +481,9 @@ public String toString() { sb.append("super=").append(super.toString()); sb.append(",compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); + sb.append(",technologyType=").append(String.valueOf(this.technologyType)); + sb.append(",connectionType=").append(String.valueOf(this.connectionType)); + sb.append(",sourceConnectionId=").append(String.valueOf(this.sourceConnectionId)); sb.append(",displayName=").append(String.valueOf(this.displayName)); sb.append(",limit=").append(String.valueOf(this.limit)); sb.append(",page=").append(String.valueOf(this.page)); @@ -403,6 +507,9 @@ public boolean equals(Object o) { return super.equals(o) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) + && java.util.Objects.equals(this.technologyType, other.technologyType) + && java.util.Objects.equals(this.connectionType, other.connectionType) + && java.util.Objects.equals(this.sourceConnectionId, other.sourceConnectionId) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.limit, other.limit) && java.util.Objects.equals(this.page, other.page) @@ -419,6 +526,17 @@ public int hashCode() { (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); + result = + (result * PRIME) + + (this.technologyType == null ? 43 : this.technologyType.hashCode()); + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.hashCode()); + result = + (result * PRIME) + + (this.sourceConnectionId == null + ? 43 + : this.sourceConnectionId.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.limit == null ? 43 : this.limit.hashCode()); result = (result * PRIME) + (this.page == null ? 43 : this.page.hashCode()); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListExcludedObjectsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListExcludedObjectsRequest.java index b0f92a8b71b..f3d1393244e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListExcludedObjectsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListExcludedObjectsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListExcludedObjectsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListExcludedObjectsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListExcludedObjectsRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobOutputsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobOutputsRequest.java index cff463982a7..39ac107e947 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobOutputsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobOutputsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListJobOutputsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListJobOutputsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobOutputsRequest extends com.oracle.bmc.requests.BmcRequest { /** The OCID of the job */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobsRequest.java index 5ad4d5d44fb..7e68bae4678 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListJobsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListJobsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListJobsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobsRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the migration in which to list resources. */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectTypesRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectTypesRequest.java index 49fffd55088..bc8f777aceb 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectTypesRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectTypesRequest.java @@ -11,10 +11,17 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListMigrationObjectTypesRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationObjectTypesRequest extends com.oracle.bmc.requests.BmcRequest { + /** The connection type for migration objects. */ + private com.oracle.bmc.databasemigration.model.ConnectionType connectionType; + + /** The connection type for migration objects. */ + public com.oracle.bmc.databasemigration.model.ConnectionType getConnectionType() { + return connectionType; + } /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -111,6 +118,21 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; + /** The connection type for migration objects. */ + private com.oracle.bmc.databasemigration.model.ConnectionType connectionType = null; + + /** + * The connection type for migration objects. + * + * @param connectionType the value to set + * @return this builder instance + */ + public Builder connectionType( + com.oracle.bmc.databasemigration.model.ConnectionType connectionType) { + this.connectionType = connectionType; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -223,6 +245,7 @@ public Builder retryConfiguration( * @return this builder instance */ public Builder copy(ListMigrationObjectTypesRequest o) { + connectionType(o.getConnectionType()); opcRequestId(o.getOpcRequestId()); sortBy(o.getSortBy()); sortOrder(o.getSortOrder()); @@ -262,13 +285,15 @@ public ListMigrationObjectTypesRequest build() { */ public ListMigrationObjectTypesRequest buildWithoutInvocationCallback() { ListMigrationObjectTypesRequest request = new ListMigrationObjectTypesRequest(); + request.connectionType = connectionType; request.opcRequestId = opcRequestId; request.sortBy = sortBy; request.sortOrder = sortOrder; request.limit = limit; request.page = page; return request; - // new ListMigrationObjectTypesRequest(opcRequestId, sortBy, sortOrder, limit, page); + // new ListMigrationObjectTypesRequest(connectionType, opcRequestId, sortBy, sortOrder, + // limit, page); } } @@ -279,6 +304,7 @@ public ListMigrationObjectTypesRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() + .connectionType(connectionType) .opcRequestId(opcRequestId) .sortBy(sortBy) .sortOrder(sortOrder) @@ -300,6 +326,7 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",connectionType=").append(String.valueOf(this.connectionType)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",sortBy=").append(String.valueOf(this.sortBy)); sb.append(",sortOrder=").append(String.valueOf(this.sortOrder)); @@ -320,6 +347,7 @@ public boolean equals(Object o) { ListMigrationObjectTypesRequest other = (ListMigrationObjectTypesRequest) o; return super.equals(o) + && java.util.Objects.equals(this.connectionType, other.connectionType) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) && java.util.Objects.equals(this.sortBy, other.sortBy) && java.util.Objects.equals(this.sortOrder, other.sortOrder) @@ -331,6 +359,9 @@ public boolean equals(Object o) { public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = + (result * PRIME) + + (this.connectionType == null ? 43 : this.connectionType.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.sortOrder == null ? 43 : this.sortOrder.hashCode()); diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectsRequest.java index 2a3444d657b..74316a0e5b7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationObjectsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListMigrationObjectsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListMigrationObjectsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationObjectsRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationsRequest.java index 15ac9c293dd..ddbf4d2b646 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListMigrationsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListMigrationsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListMigrationsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationsRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the compartment in which to list resources. */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestErrorsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestErrorsRequest.java index e18ce992998..86612a733fa 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestErrorsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestErrorsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * ListWorkRequestErrorsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestErrorsRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestLogsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestLogsRequest.java index 8e41525fb77..2d47486b8d1 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestLogsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestLogsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListWorkRequestLogsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListWorkRequestLogsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestLogsRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the asynchronous request. */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestsRequest.java index 5388a42eebd..cee593b07bd 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ListWorkRequestsRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ListWorkRequestsExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ListWorkRequestsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestsRequest extends com.oracle.bmc.requests.BmcRequest { /** The ID of the compartment in which to list resources. */ diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RemoveMigrationObjectsRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RemoveMigrationObjectsRequest.java index 12616f148da..6a291ab896f 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RemoveMigrationObjectsRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RemoveMigrationObjectsRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * RemoveMigrationObjectsRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class RemoveMigrationObjectsRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.MigrationObjectCollection> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ResumeJobRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ResumeJobRequest.java index 4b63a5f678f..a42bc03831a 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ResumeJobRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/ResumeJobRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/ResumeJobExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use ResumeJobRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ResumeJobRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.ResumeJobDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RetrieveSupportedPhasesRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RetrieveSupportedPhasesRequest.java index 0bb017a5da6..f53e97dfcdb 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RetrieveSupportedPhasesRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/RetrieveSupportedPhasesRequest.java @@ -11,7 +11,7 @@ * target="_blank" rel="noopener noreferrer">here to see how to use * RetrieveSupportedPhasesRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class RetrieveSupportedPhasesRequest extends com.oracle.bmc.requests.BmcRequest { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/StartMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/StartMigrationRequest.java index a92f6ee92c0..d07dfb7b1e8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/StartMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/StartMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/StartMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use StartMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class StartMigrationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.StartMigrationDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateConnectionRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateConnectionRequest.java index a7f10b665d7..a1627fee69d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateConnectionRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateConnectionRequest.java @@ -10,15 +10,15 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/UpdateConnectionExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use UpdateConnectionRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateConnectionRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.UpdateConnectionDetails> { - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ public String getConnectionId() { return connectionId; } @@ -79,11 +79,11 @@ public static class Builder private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the database connection */ + /** The OCID of the database connection. */ private String connectionId = null; /** - * The OCID of the database connection + * The OCID of the database connection. * * @param connectionId the value to set * @return this builder instance diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateJobRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateJobRequest.java index 9835b2f7b3d..35d1318652c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateJobRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateJobRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/UpdateJobExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use UpdateJobRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateJobRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.UpdateJobDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateMigrationRequest.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateMigrationRequest.java index 01b5d7606c4..4fc27330eec 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateMigrationRequest.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateMigrationRequest.java @@ -10,7 +10,7 @@ * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/databasemigration/UpdateMigrationExample.java.html" * target="_blank" rel="noopener noreferrer">here to see how to use UpdateMigrationRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateMigrationRequest extends com.oracle.bmc.requests.BmcRequest< com.oracle.bmc.databasemigration.model.UpdateMigrationDetails> { diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AbortJobResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AbortJobResponse.java index 8c413d1c0dd..05aa06130e5 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AbortJobResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AbortJobResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AbortJobResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AddMigrationObjectsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AddMigrationObjectsResponse.java index 537c02462a9..0e020a43ae7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AddMigrationObjectsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/AddMigrationObjectsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class AddMigrationObjectsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeAgentCompartmentResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeAgentCompartmentResponse.java deleted file mode 100644 index 4dae0a046f4..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeAgentCompartmentResponse.java +++ /dev/null @@ -1,137 +0,0 @@ -/** - * 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.databasemigration.responses; - -import com.oracle.bmc.databasemigration.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ChangeAgentCompartmentResponse 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 ChangeAgentCompartmentResponse( - 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< - ChangeAgentCompartmentResponse> { - 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(ChangeAgentCompartmentResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - - return this; - } - - /** - * Build the response object. - * - * @return the response object - */ - @Override - public ChangeAgentCompartmentResponse build() { - return new ChangeAgentCompartmentResponse(__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 ChangeAgentCompartmentResponse)) { - return false; - } - - ChangeAgentCompartmentResponse other = (ChangeAgentCompartmentResponse) 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-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeConnectionCompartmentResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeConnectionCompartmentResponse.java index c7c78244c89..3ca860fcd5c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeConnectionCompartmentResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeConnectionCompartmentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ChangeConnectionCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeMigrationCompartmentResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeMigrationCompartmentResponse.java index 19b1ee73283..46e7f956c69 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeMigrationCompartmentResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ChangeMigrationCompartmentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ChangeMigrationCompartmentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CloneMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CloneMigrationResponse.java index 05cf354afd0..649a47859cf 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CloneMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CloneMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CloneMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ConnectionDiagnosticsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ConnectionDiagnosticsResponse.java index a7a3a6d6c0f..e50c4845058 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ConnectionDiagnosticsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ConnectionDiagnosticsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ConnectionDiagnosticsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateConnectionResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateConnectionResponse.java index d7524ead259..00ea0a5b18c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateConnectionResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateConnectionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateConnectionResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateMigrationResponse.java index 274b1746c79..427782cda1d 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/CreateMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class CreateMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteConnectionResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteConnectionResponse.java index dc5d3607ac9..da28abaefe1 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteConnectionResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteConnectionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteConnectionResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteJobResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteJobResponse.java index 99db49c8656..ff6369c5d5c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteJobResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteJobResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteJobResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteMigrationResponse.java index 88bb6b89bab..93c5bde5621 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class DeleteMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/EvaluateMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/EvaluateMigrationResponse.java index 1ed04159b51..80cba0badd7 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/EvaluateMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/EvaluateMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class EvaluateMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAdvisorReportResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAdvisorReportResponse.java index b50207ebd76..35f4e6a5d7e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAdvisorReportResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAdvisorReportResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetAdvisorReportResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAgentResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAgentResponse.java deleted file mode 100644 index 3d6527d00b3..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetAgentResponse.java +++ /dev/null @@ -1,207 +0,0 @@ -/** - * 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.databasemigration.responses; - -import com.oracle.bmc.databasemigration.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class GetAgentResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** For optimistic concurrency control. See {@code if-match}. */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** The returned {@code Agent} instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; - - /** - * The returned {@code Agent} instance. - * - * @return the value - */ - public com.oracle.bmc.databasemigration.model.Agent getAgent() { - return agent; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "agent" - }) - private GetAgentResponse( - int __httpStatusCode__, - java.util.Map> headers, - String opcRequestId, - String etag, - com.oracle.bmc.databasemigration.model.Agent agent) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.agent = agent; - } - - public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder { - private int __httpStatusCode__; - - @Override - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private java.util.Map> headers; - - @Override - public Builder headers(java.util.Map> headers) { - this.headers = headers; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** For optimistic concurrency control. See {@code if-match}. */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @param etag the value to set - * @return this builder - */ - public Builder etag(String etag) { - this.etag = etag; - return this; - } - - /** The returned {@code Agent} instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; - - /** - * The returned {@code Agent} instance. - * - * @param agent the value to set - * @return this builder - */ - public Builder agent(com.oracle.bmc.databasemigration.model.Agent agent) { - this.agent = agent; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - @Override - public Builder copy(GetAgentResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - agent(o.getAgent()); - - return this; - } - - /** - * Build the response object. - * - * @return the response object - */ - @Override - public GetAgentResponse build() { - return new GetAgentResponse(__httpStatusCode__, headers, opcRequestId, etag, agent); - } - } - - /** - * Return a new builder for this response object. - * - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",agent=").append(String.valueOf(agent)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof GetAgentResponse)) { - return false; - } - - GetAgentResponse other = (GetAgentResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.agent, other.agent); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = (result * PRIME) + (this.agent == null ? 43 : this.agent.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetConnectionResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetConnectionResponse.java index 4b2898e93e0..01dbd43231b 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetConnectionResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetConnectionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetConnectionResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobOutputContentResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobOutputContentResponse.java index be4a40cdae8..e0666138ef6 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobOutputContentResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobOutputContentResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobOutputContentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobResponse.java index fec89738618..d91bcf43bf8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetJobResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetJobResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetMigrationResponse.java index a495c4da421..3ea4adb971e 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetWorkRequestResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetWorkRequestResponse.java index e4fcaa059b5..72209a4cc6c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetWorkRequestResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/GetWorkRequestResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class GetWorkRequestResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentImagesResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentImagesResponse.java deleted file mode 100644 index 5e533fc0b14..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentImagesResponse.java +++ /dev/null @@ -1,225 +0,0 @@ -/** - * 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.databasemigration.responses; - -import com.oracle.bmc.databasemigration.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentImagesResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the - * response, then a partial list might have been returned. Include this value as the {@code - * page} parameter for the subsequent GET request to get the next batch of items. - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the - * response, then a partial list might have been returned. Include this value as the {@code - * page} parameter for the subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** The returned {@code AgentImageCollection} instance. */ - private com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection; - - /** - * The returned {@code AgentImageCollection} instance. - * - * @return the value - */ - public com.oracle.bmc.databasemigration.model.AgentImageCollection getAgentImageCollection() { - return agentImageCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "opcNextPage", - "agentImageCollection" - }) - private ListAgentImagesResponse( - int __httpStatusCode__, - java.util.Map> headers, - String opcRequestId, - String opcNextPage, - com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcNextPage = opcNextPage; - this.agentImageCollection = agentImageCollection; - } - - public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder { - private int __httpStatusCode__; - - @Override - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private java.util.Map> headers; - - @Override - public Builder headers(java.util.Map> headers) { - this.headers = headers; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in - * the response, then a partial list might have been returned. Include this value as the - * {@code page} parameter for the subsequent GET request to get the next batch of items. - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in - * the response, then a partial list might have been returned. Include this value as the - * {@code page} parameter for the subsequent GET request to get the next batch of items. - * - * @param opcNextPage the value to set - * @return this builder - */ - public Builder opcNextPage(String opcNextPage) { - this.opcNextPage = opcNextPage; - return this; - } - - /** The returned {@code AgentImageCollection} instance. */ - private com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection; - - /** - * The returned {@code AgentImageCollection} instance. - * - * @param agentImageCollection the value to set - * @return this builder - */ - public Builder agentImageCollection( - com.oracle.bmc.databasemigration.model.AgentImageCollection agentImageCollection) { - this.agentImageCollection = agentImageCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - @Override - public Builder copy(ListAgentImagesResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - opcNextPage(o.getOpcNextPage()); - agentImageCollection(o.getAgentImageCollection()); - - return this; - } - - /** - * Build the response object. - * - * @return the response object - */ - @Override - public ListAgentImagesResponse build() { - return new ListAgentImagesResponse( - __httpStatusCode__, headers, opcRequestId, opcNextPage, agentImageCollection); - } - } - - /** - * Return a new builder for this response object. - * - * @return builder for the response object - */ - public static Builder builder() { - return 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(",agentImageCollection=").append(String.valueOf(agentImageCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListAgentImagesResponse)) { - return false; - } - - ListAgentImagesResponse other = (ListAgentImagesResponse) 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.agentImageCollection, other.agentImageCollection); - } - - @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.agentImageCollection == null - ? 43 - : this.agentImageCollection.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentsResponse.java deleted file mode 100644 index 804090f685d..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListAgentsResponse.java +++ /dev/null @@ -1,223 +0,0 @@ -/** - * 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.databasemigration.responses; - -import com.oracle.bmc.databasemigration.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class ListAgentsResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the - * response, then a partial list might have been returned. Include this value as the {@code - * page} parameter for the subsequent GET request to get the next batch of items. - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in the - * response, then a partial list might have been returned. Include this value as the {@code - * page} parameter for the subsequent GET request to get the next batch of items. - * - * @return the value - */ - public String getOpcNextPage() { - return opcNextPage; - } - - /** The returned {@code AgentCollection} instance. */ - private com.oracle.bmc.databasemigration.model.AgentCollection agentCollection; - - /** - * The returned {@code AgentCollection} instance. - * - * @return the value - */ - public com.oracle.bmc.databasemigration.model.AgentCollection getAgentCollection() { - return agentCollection; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "opcNextPage", - "agentCollection" - }) - private ListAgentsResponse( - int __httpStatusCode__, - java.util.Map> headers, - String opcRequestId, - String opcNextPage, - com.oracle.bmc.databasemigration.model.AgentCollection agentCollection) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.opcNextPage = opcNextPage; - this.agentCollection = agentCollection; - } - - public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder { - private int __httpStatusCode__; - - @Override - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private java.util.Map> headers; - - @Override - public Builder headers(java.util.Map> headers) { - this.headers = headers; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** - * For pagination of a list of items. When paging through a list, if this header appears in - * the response, then a partial list might have been returned. Include this value as the - * {@code page} parameter for the subsequent GET request to get the next batch of items. - */ - private String opcNextPage; - - /** - * For pagination of a list of items. When paging through a list, if this header appears in - * the response, then a partial list might have been returned. Include this value as the - * {@code page} parameter for the subsequent GET request to get the next batch of items. - * - * @param opcNextPage the value to set - * @return this builder - */ - public Builder opcNextPage(String opcNextPage) { - this.opcNextPage = opcNextPage; - return this; - } - - /** The returned {@code AgentCollection} instance. */ - private com.oracle.bmc.databasemigration.model.AgentCollection agentCollection; - - /** - * The returned {@code AgentCollection} instance. - * - * @param agentCollection the value to set - * @return this builder - */ - public Builder agentCollection( - com.oracle.bmc.databasemigration.model.AgentCollection agentCollection) { - this.agentCollection = agentCollection; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - @Override - public Builder copy(ListAgentsResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - opcNextPage(o.getOpcNextPage()); - agentCollection(o.getAgentCollection()); - - return this; - } - - /** - * Build the response object. - * - * @return the response object - */ - @Override - public ListAgentsResponse build() { - return new ListAgentsResponse( - __httpStatusCode__, headers, opcRequestId, opcNextPage, agentCollection); - } - } - - /** - * Return a new builder for this response object. - * - * @return builder for the response object - */ - public static Builder builder() { - return 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(",agentCollection=").append(String.valueOf(agentCollection)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof ListAgentsResponse)) { - return false; - } - - ListAgentsResponse other = (ListAgentsResponse) 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.agentCollection, other.agentCollection); - } - - @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.agentCollection == null ? 43 : this.agentCollection.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListConnectionsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListConnectionsResponse.java index d966a11f9d6..c13904505d8 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListConnectionsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListConnectionsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListConnectionsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListExcludedObjectsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListExcludedObjectsResponse.java index a9c31690c80..be64a68a721 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListExcludedObjectsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListExcludedObjectsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListExcludedObjectsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobOutputsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobOutputsResponse.java index 5b3702c4809..d88f85c0168 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobOutputsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobOutputsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobOutputsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobsResponse.java index 5c761b5d0a9..058086e2eef 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListJobsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListJobsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectTypesResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectTypesResponse.java index 324c0824d4e..99a7a5b64dc 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectTypesResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectTypesResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationObjectTypesResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectsResponse.java index 9f27add56d0..87a18f97d13 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationObjectsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationObjectsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationsResponse.java index 7ea2c24338d..8628480c466 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListMigrationsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListMigrationsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestErrorsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestErrorsResponse.java index 9efa6cb26cd..8ee8e398b0c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestErrorsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestErrorsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestErrorsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For pagination of a list of items. When paging through a list, if this header appears in the diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestLogsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestLogsResponse.java index 21f88e2f6fb..6cfc3111f47 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestLogsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestLogsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestLogsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For pagination of a list of items. When paging through a list, if this header appears in the diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestsResponse.java index 5fc469b1402..9de747191af 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ListWorkRequestsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ListWorkRequestsResponse extends com.oracle.bmc.responses.BmcResponse { /** * For pagination of a list of items. When paging through a list, if this header appears in the diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RemoveMigrationObjectsResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RemoveMigrationObjectsResponse.java index ca946d26cb4..27a95d5ae06 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RemoveMigrationObjectsResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RemoveMigrationObjectsResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class RemoveMigrationObjectsResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ResumeJobResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ResumeJobResponse.java index a5543471c7e..d9075318297 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ResumeJobResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/ResumeJobResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class ResumeJobResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RetrieveSupportedPhasesResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RetrieveSupportedPhasesResponse.java index b4f89e7f19c..53b52055d9c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RetrieveSupportedPhasesResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/RetrieveSupportedPhasesResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class RetrieveSupportedPhasesResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/StartMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/StartMigrationResponse.java index f897bd37180..47c1e0399eb 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/StartMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/StartMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class StartMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateAgentResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateAgentResponse.java deleted file mode 100644 index 70265931dcf..00000000000 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateAgentResponse.java +++ /dev/null @@ -1,207 +0,0 @@ -/** - * 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.databasemigration.responses; - -import com.oracle.bmc.databasemigration.model.*; - -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class UpdateAgentResponse extends com.oracle.bmc.responses.BmcResponse { - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @return the value - */ - public String getOpcRequestId() { - return opcRequestId; - } - - /** For optimistic concurrency control. See {@code if-match}. */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @return the value - */ - public String getEtag() { - return etag; - } - - /** The returned {@code Agent} instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; - - /** - * The returned {@code Agent} instance. - * - * @return the value - */ - public com.oracle.bmc.databasemigration.model.Agent getAgent() { - return agent; - } - - @java.beans.ConstructorProperties({ - "__httpStatusCode__", - "headers", - "opcRequestId", - "etag", - "agent" - }) - private UpdateAgentResponse( - int __httpStatusCode__, - java.util.Map> headers, - String opcRequestId, - String etag, - com.oracle.bmc.databasemigration.model.Agent agent) { - super(__httpStatusCode__, headers); - this.opcRequestId = opcRequestId; - this.etag = etag; - this.agent = agent; - } - - public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder { - private int __httpStatusCode__; - - @Override - public Builder __httpStatusCode__(int __httpStatusCode__) { - this.__httpStatusCode__ = __httpStatusCode__; - return this; - } - - private java.util.Map> headers; - - @Override - public Builder headers(java.util.Map> headers) { - this.headers = headers; - return this; - } - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - */ - private String opcRequestId; - - /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. - * - * @param opcRequestId the value to set - * @return this builder - */ - public Builder opcRequestId(String opcRequestId) { - this.opcRequestId = opcRequestId; - return this; - } - - /** For optimistic concurrency control. See {@code if-match}. */ - private String etag; - - /** - * For optimistic concurrency control. See {@code if-match}. - * - * @param etag the value to set - * @return this builder - */ - public Builder etag(String etag) { - this.etag = etag; - return this; - } - - /** The returned {@code Agent} instance. */ - private com.oracle.bmc.databasemigration.model.Agent agent; - - /** - * The returned {@code Agent} instance. - * - * @param agent the value to set - * @return this builder - */ - public Builder agent(com.oracle.bmc.databasemigration.model.Agent agent) { - this.agent = agent; - return this; - } - - /** - * Copy method to populate the builder with values from the given instance. - * - * @return this builder instance - */ - @Override - public Builder copy(UpdateAgentResponse o) { - __httpStatusCode__(o.get__httpStatusCode__()); - headers(o.getHeaders()); - opcRequestId(o.getOpcRequestId()); - etag(o.getEtag()); - agent(o.getAgent()); - - return this; - } - - /** - * Build the response object. - * - * @return the response object - */ - @Override - public UpdateAgentResponse build() { - return new UpdateAgentResponse(__httpStatusCode__, headers, opcRequestId, etag, agent); - } - } - - /** - * Return a new builder for this response object. - * - * @return builder for the response object - */ - public static Builder builder() { - return new Builder(); - } - - @Override - public String toString() { - java.lang.StringBuilder sb = new java.lang.StringBuilder(); - sb.append("("); - sb.append("super=").append(super.toString()); - sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); - sb.append(",etag=").append(String.valueOf(etag)); - sb.append(",agent=").append(String.valueOf(agent)); - sb.append(")"); - return sb.toString(); - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (!(o instanceof UpdateAgentResponse)) { - return false; - } - - UpdateAgentResponse other = (UpdateAgentResponse) o; - return super.equals(o) - && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.etag, other.etag) - && java.util.Objects.equals(this.agent, other.agent); - } - - @Override - public int hashCode() { - final int PRIME = 59; - int result = super.hashCode(); - result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); - result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); - result = (result * PRIME) + (this.agent == null ? 43 : this.agent.hashCode()); - return result; - } -} diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateConnectionResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateConnectionResponse.java index ac2270dc0de..05c22e6cfcb 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateConnectionResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateConnectionResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateConnectionResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateJobResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateJobResponse.java index 0c8eb6fdeff..dd656df0e83 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateJobResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateJobResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateJobResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateMigrationResponse.java b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateMigrationResponse.java index 33e5da9fee1..1e3da9a6080 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateMigrationResponse.java +++ b/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/UpdateMigrationResponse.java @@ -6,7 +6,7 @@ import com.oracle.bmc.databasemigration.model.*; -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") public class UpdateMigrationResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a diff --git a/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json b/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json index 35e3f698dc1..cd8d3f89a8a 100644 --- a/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json +++ b/bmc-databasemigration/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-databasemigration/reflect-config.json @@ -111,1419 +111,1562 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AdvisorSettings", + "name": "com.oracle.bmc.databasemigration.model.ChangeConnectionCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AdvisorSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.ChangeConnectionCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Agent", + "name": "com.oracle.bmc.databasemigration.model.ChangeMigrationCompartmentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Agent$Builder", + "name": "com.oracle.bmc.databasemigration.model.ChangeMigrationCompartmentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentCollection", + "name": "com.oracle.bmc.databasemigration.model.CloneMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.CompatibilityOption", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.Connection", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.Connection$LifecycleState", + "allDeclaredFields": true, + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentImageCollection", + "name": "com.oracle.bmc.databasemigration.model.ConnectionCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentImageCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.ConnectionCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentImageSummary", + "name": "com.oracle.bmc.databasemigration.model.ConnectionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentImageSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.ConnectionType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentSummary", + "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedAutoCreateTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AgentSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedAutoCreateTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AwsS3DataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedRemapTargetTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AwsS3DataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedRemapTargetTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AwsS3Details", + "name": "com.oracle.bmc.databasemigration.model.CreateADBServerlesTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.AwsS3Details$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateADBServerlesTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateAdminCredentials", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ChangeAgentCompartmentDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateAdminCredentials$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ChangeConnectionCompartmentDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateConnectionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ChangeConnectionCompartmentDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateCurlTransferDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateCurlTransferDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ChangeMigrationCompartmentDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateDataPumpParameters", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ChangeMigrationCompartmentDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateDataPumpParameters$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CloneMigrationDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateDirectoryObject", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CloneMigrationDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateDirectoryObject$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ConnectDescriptor", + "name": "com.oracle.bmc.databasemigration.model.CreateExtract", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ConnectDescriptor$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateExtract$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Connection", + "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateHubDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Connection$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateHubDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ConnectionCollection", + "name": "com.oracle.bmc.databasemigration.model.CreateHostDumpTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ConnectionCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateHostDumpTransferDetails$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ConnectionSummary", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlAdvisorSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ConnectionSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlAdvisorSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedAutoCreateTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedAutoCreateTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlDataTransferMediumDetails$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedRemapTargetTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlGgsDeploymentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateADBDedicatedRemapTargetTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlGgsDeploymentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateADBServerlesTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlInitialLoadSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateADBServerlesTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlInitialLoadSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateAdminCredentials", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateAdminCredentials$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlMigrationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateAdvisorSettings", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlObjectStorageDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateAdvisorSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMySqlObjectStorageDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateAwsS3Details", + "name": "com.oracle.bmc.databasemigration.model.CreateMysqlConnectionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateAwsS3Details$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateMysqlConnectionDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateConnectDescriptor", + "name": "com.oracle.bmc.databasemigration.model.CreateNonADBAutoCreateTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateConnectDescriptor$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateNonADBAutoCreateTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateConnectionDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateNonADBRemapTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateConnectionDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateNonADBRemapTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateCurlTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateObjectStoreBucket", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateCurlTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateObjectStoreBucket$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDataPumpParameters", + "name": "com.oracle.bmc.databasemigration.model.CreateOciCliDumpTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDataPumpParameters$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOciCliDumpTransferDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDataPumpSettings", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleAdvisorSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDataPumpSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleAdvisorSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleAwsS3DataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleAwsS3DataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDatabaseLinkDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleConnectionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDatabaseLinkDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleConnectionDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDirectoryObject", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDirectoryObject$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleDataTransferMediumDetails$Type", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleDbLinkDataTransferMediumDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CreateOracleDbLinkDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleGgsDeploymentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateDumpTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleGgsDeploymentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateExtract", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleInitialLoadSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateExtract$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleInitialLoadSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleMigrationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateHub", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleNfsDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateHub$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleNfsDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateServiceDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleObjectStorageDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateServiceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateOracleObjectStorageDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateSettings", + "name": "com.oracle.bmc.databasemigration.model.CreateReplicat", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateGoldenGateSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.CreateReplicat$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateHostDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.CreateTargetTypeTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateHostDumpTransferDetails$Kind", + "name": "com.oracle.bmc.databasemigration.model.CurlTransferDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.CurlTransferDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataPumpEstimate", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateMigrationDetails", + "name": "com.oracle.bmc.databasemigration.model.DataPumpExcludeParameters", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataPumpParameters", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateMigrationDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.DataPumpParameters$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateNonADBAutoCreateTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.DataPumpTableExistsAction", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DataPumpTablespaceBlockSizesInKb", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DatabaseCombination", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.DiagnosticsResult", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateNonADBAutoCreateTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.DiagnosticsResult$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateNonADBRemapTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.DirectoryObject", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateNonADBRemapTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.DirectoryObject$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateObjectStoreBucket", + "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateObjectStoreBucket$Builder", + "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateOciCliDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummaryCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateOciCliDumpTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummaryCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreatePrivateEndpoint", + "name": "com.oracle.bmc.databasemigration.model.Extract", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreatePrivateEndpoint$Builder", + "name": "com.oracle.bmc.databasemigration.model.Extract$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateReplicat", + "name": "com.oracle.bmc.databasemigration.model.ExtractPerformanceProfile", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.GgsDeployment", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateReplicat$Builder", + "name": "com.oracle.bmc.databasemigration.model.GgsDeployment$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateSshDetails", + "name": "com.oracle.bmc.databasemigration.model.GoldenGateHubDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateSshDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.GoldenGateHubDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateTargetTypeTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.HandleGrantErrors", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.HostDumpTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateVaultDetails", + "name": "com.oracle.bmc.databasemigration.model.HostDumpTransferDetails$Kind", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.IngressIpDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CreateVaultDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.IngressIpDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CurlTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.Job", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.CurlTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.Job$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpEstimate", + "name": "com.oracle.bmc.databasemigration.model.JobCollection", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.JobCollection$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.JobLifecycleStates", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpExcludeParameters", + "name": "com.oracle.bmc.databasemigration.model.JobModeMySql", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpJobMode", + "name": "com.oracle.bmc.databasemigration.model.JobModeOracle", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpParameters", + "name": "com.oracle.bmc.databasemigration.model.JobOutputSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpParameters$Builder", + "name": "com.oracle.bmc.databasemigration.model.JobOutputSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpSettings", + "name": "com.oracle.bmc.databasemigration.model.JobOutputSummaryCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.JobOutputSummaryCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpTableExistsAction", + "name": "com.oracle.bmc.databasemigration.model.JobPhaseStatus", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataPumpTablespaceBlockSizesInKb", + "name": "com.oracle.bmc.databasemigration.model.JobSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.JobSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.JobTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.LifecycleStates", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.LogLocationBucketDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.LogLocationBucketDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataTransferMediumDetailsV2", + "name": "com.oracle.bmc.databasemigration.model.MetadataRemap", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DataTransferMediumDetailsV2$Type", + "name": "com.oracle.bmc.databasemigration.model.MetadataRemap$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseConnectionTypes", + "name": "com.oracle.bmc.databasemigration.model.MetadataRemap$Type", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseCredentials", + "name": "com.oracle.bmc.databasemigration.model.Migration", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseCredentials$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationCollection", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseLinkDetails", + "name": "com.oracle.bmc.databasemigration.model.MigrationCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseLinkDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationDatabaseTargetTypes", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseManualConnectionSubTypes", + "name": "com.oracle.bmc.databasemigration.model.MigrationDatabaseTargetTypesUpdate", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseObject", + "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressResource", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DatabaseObject$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressResource$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DbLinkDataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DbLinkDataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DiagnosticsResult", + "name": "com.oracle.bmc.databasemigration.model.MigrationLifecycleStates", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MigrationObjectCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DiagnosticsResult$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DirectoryObject", + "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummaryCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DirectoryObject$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummaryCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.DumpTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummary", + "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummaryCollection", + "name": "com.oracle.bmc.databasemigration.model.MigrationStatus", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MigrationSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ExcludedObjectSummaryCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.MigrationTypes", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlAdvisorSettings", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlAdvisorSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Extract", + "name": "com.oracle.bmc.databasemigration.model.MySqlCloneMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Extract$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlCloneMigrationDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.MySqlDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ExtractPerformanceProfile", + "name": "com.oracle.bmc.databasemigration.model.MySqlDataTransferMediumDetails$Type", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GgsDeployment", + "name": "com.oracle.bmc.databasemigration.model.MySqlDatabaseObject", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GgsDeployment$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlDatabaseObject$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateDetails", + "name": "com.oracle.bmc.databasemigration.model.MySqlDatabaseObjectSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlDatabaseObjectSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateHub", + "name": "com.oracle.bmc.databasemigration.model.MySqlGgsDeploymentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateHub$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlGgsDeploymentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateServiceDetails", + "name": "com.oracle.bmc.databasemigration.model.MySqlInitialLoadSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateServiceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlInitialLoadSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateSettings", + "name": "com.oracle.bmc.databasemigration.model.MySqlMigration", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.GoldenGateSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlMigration$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.HostDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.MySqlMigrationObjectCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.HostDumpTransferDetails$Kind", + "name": "com.oracle.bmc.databasemigration.model.MySqlMigrationObjectCollection$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Job", + "name": "com.oracle.bmc.databasemigration.model.MySqlMigrationSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Job$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlMigrationSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobCollection", + "name": "com.oracle.bmc.databasemigration.model.MySqlObjectStorageDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.MySqlObjectStorageDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobLifecycleStates", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobOutputSummary", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobOutputSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobOutputSummaryCollection", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnection$TechnologyType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobOutputSummaryCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnection$SecurityProtocol", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobPhaseStatus", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnection$SslMode", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobSummary", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnectionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.MysqlConnectionSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.JobTypes", + "name": "com.oracle.bmc.databasemigration.model.NameValuePair", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.LifecycleStates", + "name": "com.oracle.bmc.databasemigration.model.NameValuePair$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.LogLocationBucketDetails", + "name": "com.oracle.bmc.databasemigration.model.NonADBAutoCreateTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.LogLocationBucketDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.NonADBAutoCreateTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MetadataRemap", + "name": "com.oracle.bmc.databasemigration.model.NonADBRemapTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MetadataRemap$Builder", + "name": "com.oracle.bmc.databasemigration.model.NonADBRemapTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MetadataRemap$Type", + "name": "com.oracle.bmc.databasemigration.model.ObjectStatus", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Migration", + "name": "com.oracle.bmc.databasemigration.model.ObjectStoreBucket", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.Migration$Builder", + "name": "com.oracle.bmc.databasemigration.model.ObjectStoreBucket$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationCollection", + "name": "com.oracle.bmc.databasemigration.model.OciCliDumpTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.OciCliDumpTransferDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationDatabaseTargetTypes", + "name": "com.oracle.bmc.databasemigration.model.OdmsJobPhases", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationDatabaseTargetTypesUpdate", + "name": "com.oracle.bmc.databasemigration.model.OdmsPhaseActions", "allDeclaredFields": true, "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressResource", + "name": "com.oracle.bmc.databasemigration.model.OperationStatus", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressResource$Builder", + "name": "com.oracle.bmc.databasemigration.model.OperationTypes", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressSummary", + "name": "com.oracle.bmc.databasemigration.model.OracleAdvisorSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationJobProgressSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleAdvisorSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationLifecycleStates", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectCollection", + "name": "com.oracle.bmc.databasemigration.model.OracleAwsS3DataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleAwsS3DataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectSummary", + "name": "com.oracle.bmc.databasemigration.model.OracleCloneMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleCloneMigrationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummary", + "name": "com.oracle.bmc.databasemigration.model.OracleConnection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleConnection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummaryCollection", + "name": "com.oracle.bmc.databasemigration.model.OracleConnection$TechnologyType", + "allDeclaredFields": true, + "allDeclaredMethods": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.OracleConnectionSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationObjectTypeSummaryCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleConnectionSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseCollection", + "name": "com.oracle.bmc.databasemigration.model.OracleDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseCollection$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleDataTransferMediumDetails$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseSummary", + "name": "com.oracle.bmc.databasemigration.model.OracleDatabaseObject", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationPhaseSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleDatabaseObject$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationStatus", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationSummary", + "name": "com.oracle.bmc.databasemigration.model.OracleDatabaseObjectSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationSummary$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleDatabaseObjectSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.MigrationTypes", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.NfsDataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.OracleDbLinkDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.NfsDataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleDbLinkDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.NonADBAutoCreateTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.OracleGgsDeploymentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.NonADBAutoCreateTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleGgsDeploymentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.NonADBRemapTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.OracleInitialLoadSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.NonADBRemapTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleInitialLoadSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ObjectStatus", - "allDeclaredFields": true, - "allDeclaredMethods": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ObjectStorageDataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.OracleMigration", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ObjectStorageDataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleMigration$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ObjectStoreBucket", + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationObjectCollection", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.ObjectStoreBucket$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationObjectCollection$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.OciCliDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationSummary", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.OciCliDumpTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.OracleMigrationSummary$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.OdmsJobPhases", + "name": "com.oracle.bmc.databasemigration.model.OracleNfsDataTransferMediumDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.OdmsPhaseActions", + "name": "com.oracle.bmc.databasemigration.model.OracleNfsDataTransferMediumDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.OperationStatus", + "name": "com.oracle.bmc.databasemigration.model.OracleObjectStorageDataTransferMediumDetails", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.OperationTypes", + "name": "com.oracle.bmc.databasemigration.model.OracleObjectStorageDataTransferMediumDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, @@ -1561,17 +1704,9 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.PrivateEndpointDetails", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.PrivateEndpointDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.PrimaryKeyCompatibility", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, @@ -1641,38 +1776,30 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.SshDetails", + "name": "com.oracle.bmc.databasemigration.model.StartMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.SshDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.StartMigrationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.StartMigrationDetails", + "name": "com.oracle.bmc.databasemigration.model.TargetTypeTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.StartMigrationDetails$Builder", - "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true - }, - { - "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.TargetTypeTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.TechnologyType", "allDeclaredFields": true, - "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, @@ -1752,443 +1879,455 @@ }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateAdvisorSettings", + "name": "com.oracle.bmc.databasemigration.model.UpdateConnectionDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateCurlTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateAdvisorSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateCurlTransferDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateAgentDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateDataPumpParameters", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateAgentDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateDataPumpParameters$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateAwsS3Details", + "name": "com.oracle.bmc.databasemigration.model.UpdateDirectoryObject", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateAwsS3Details$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateDirectoryObject$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateConnectDescriptor", + "name": "com.oracle.bmc.databasemigration.model.UpdateExtract", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateConnectDescriptor$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateExtract$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateConnectionDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateHubDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateConnectionDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateHubDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateCurlTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateHostDumpTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateCurlTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateHostDumpTransferDetails$Kind", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDataPumpParameters", + "name": "com.oracle.bmc.databasemigration.model.UpdateJobDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDataPumpParameters$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateJobDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDataPumpSettings", + "name": "com.oracle.bmc.databasemigration.model.UpdateMigrationDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlAdvisorSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDataPumpSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlAdvisorSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDataTransferMediumDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDataTransferMediumDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlDataTransferMediumDetails$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDatabaseLinkDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlGgsDeploymentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDatabaseLinkDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlGgsDeploymentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDirectoryObject", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlInitialLoadSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDirectoryObject$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlInitialLoadSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateDumpTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlMigrationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateExtract", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlObjectStorageDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateExtract$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMySqlObjectStorageDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateMysqlConnectionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateMysqlConnectionDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateHub", + "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBAutoCreateTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateHub$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBAutoCreateTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateServiceDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBRemapTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateServiceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBRemapTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateSettings", + "name": "com.oracle.bmc.databasemigration.model.UpdateObjectStoreBucket", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateGoldenGateSettings$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateObjectStoreBucket$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateHostDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOciCliDumpTransferDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateHostDumpTransferDetails$Kind", + "name": "com.oracle.bmc.databasemigration.model.UpdateOciCliDumpTransferDetails$Builder", "allDeclaredFields": true, - "allDeclaredMethods": true + "allDeclaredMethods": true, + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateJobDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleAdvisorSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateJobDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleAdvisorSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateMigrationDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleAwsS3DataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateMigrationDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleAwsS3DataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBAutoCreateTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleConnectionDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBAutoCreateTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleConnectionDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBRemapTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateNonADBRemapTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleDataTransferMediumDetails$Type", "allDeclaredFields": true, - "allDeclaredMethods": true, - "allDeclaredConstructors": true + "allDeclaredMethods": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateObjectStoreBucket", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleDbLinkDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateObjectStoreBucket$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleDbLinkDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateOciCliDumpTransferDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleGgsDeploymentDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateOciCliDumpTransferDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleGgsDeploymentDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdatePrivateEndpoint", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleInitialLoadSettings", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdatePrivateEndpoint$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleInitialLoadSettings$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateReplicat", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleMigrationDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateReplicat$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleMigrationDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateSshDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleNfsDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateSshDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleNfsDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsAutoCreateTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleObjectStorageDataTransferMediumDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsAutoCreateTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateOracleObjectStorageDataTransferMediumDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsRemapTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateReplicat", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsRemapTablespaceDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateReplicat$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateTargetTypeTablespaceDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsAutoCreateTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateVaultDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsAutoCreateTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.UpdateVaultDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsRemapTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.VaultDetails", + "name": "com.oracle.bmc.databasemigration.model.UpdateTargetDefaultsRemapTablespaceDetails$Builder", "allDeclaredFields": true, "allDeclaredMethods": true, - "queryAllDeclaredConstructors": true + "allDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, - "name": "com.oracle.bmc.databasemigration.model.VaultDetails$Builder", + "name": "com.oracle.bmc.databasemigration.model.UpdateTargetTypeTablespaceDetails", "allDeclaredFields": true, "allDeclaredMethods": true, - "allDeclaredConstructors": true + "queryAllDeclaredConstructors": true }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, diff --git a/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties b/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties index 112cb68b19f..804700a92eb 100644 --- a/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties +++ b/bmc-databasemigration/src/main/resources/com/oracle/bmc/databasemigration/client.properties @@ -6,4 +6,4 @@ java.client.codegen.version = 2.78 java.minimum.client.codegen.version.from.client = 2.26 -# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") \ No newline at end of file +# @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20230518") \ No newline at end of file diff --git a/bmc-databasetools/pom.xml b/bmc-databasetools/pom.xml index 87927f5b41b..e0a45d614eb 100644 --- a/bmc-databasetools/pom.xml +++ b/bmc-databasetools/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-databasetools @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-datacatalog/pom.xml b/bmc-datacatalog/pom.xml index a3f51e39b40..642887842d9 100644 --- a/bmc-datacatalog/pom.xml +++ b/bmc-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-datacatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-dataflow/pom.xml b/bmc-dataflow/pom.xml index 4810d3bd7d1..86c68cac291 100644 --- a/bmc-dataflow/pom.xml +++ b/bmc-dataflow/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-dataflow @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-dataintegration/pom.xml b/bmc-dataintegration/pom.xml index 464a01ab342..6678269ff23 100644 --- a/bmc-dataintegration/pom.xml +++ b/bmc-dataintegration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-dataintegration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-datalabelingservice/pom.xml b/bmc-datalabelingservice/pom.xml index f2a540d6378..5973ff6a369 100644 --- a/bmc-datalabelingservice/pom.xml +++ b/bmc-datalabelingservice/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-datalabelingservice @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-datalabelingservicedataplane/pom.xml b/bmc-datalabelingservicedataplane/pom.xml index 8f8b901ad77..ee452b73a86 100644 --- a/bmc-datalabelingservicedataplane/pom.xml +++ b/bmc-datalabelingservicedataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-datalabelingservicedataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-datasafe/pom.xml b/bmc-datasafe/pom.xml index 581eb7ffd5a..e9adb68b440 100644 --- a/bmc-datasafe/pom.xml +++ b/bmc-datasafe/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-datasafe @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-datascience/pom.xml b/bmc-datascience/pom.xml index 362db6d1ef5..c326f134e92 100644 --- a/bmc-datascience/pom.xml +++ b/bmc-datascience/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-datascience @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-demandsignal/pom.xml b/bmc-demandsignal/pom.xml index e6699380348..4faffa6536b 100644 --- a/bmc-demandsignal/pom.xml +++ b/bmc-demandsignal/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-demandsignal @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-desktops/pom.xml b/bmc-desktops/pom.xml index 2db3cc30ffe..affe1067e4f 100644 --- a/bmc-desktops/pom.xml +++ b/bmc-desktops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-desktops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-devops/pom.xml b/bmc-devops/pom.xml index 9b744232396..f4526f2e023 100644 --- a/bmc-devops/pom.xml +++ b/bmc-devops/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-devops @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-disasterrecovery/pom.xml b/bmc-disasterrecovery/pom.xml index bc2979f0eb2..2513f113032 100644 --- a/bmc-disasterrecovery/pom.xml +++ b/bmc-disasterrecovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-disasterrecovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-dns/pom.xml b/bmc-dns/pom.xml index fb42bd6ee5b..6e832d4f0b0 100644 --- a/bmc-dns/pom.xml +++ b/bmc-dns/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.43.2 + 3.44.0 diff --git a/bmc-dts/pom.xml b/bmc-dts/pom.xml index 90edfd7c046..5480d57af4b 100644 --- a/bmc-dts/pom.xml +++ b/bmc-dts/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-dts @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-email/pom.xml b/bmc-email/pom.xml index d3a7fdbda93..eb16c5865d3 100644 --- a/bmc-email/pom.xml +++ b/bmc-email/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-emaildataplane/pom.xml b/bmc-emaildataplane/pom.xml index a4ffcefb593..8161125326f 100644 --- a/bmc-emaildataplane/pom.xml +++ b/bmc-emaildataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-emaildataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-emwarehouse/pom.xml b/bmc-emwarehouse/pom.xml index fde018ef677..c9489dda664 100644 --- a/bmc-emwarehouse/pom.xml +++ b/bmc-emwarehouse/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-emwarehouse @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-encryption/pom.xml b/bmc-encryption/pom.xml index 4896328972a..637cc4e4caf 100644 --- a/bmc-encryption/pom.xml +++ b/bmc-encryption/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-keymanagement - 3.43.2 + 3.44.0 com.fasterxml.jackson.core @@ -43,7 +43,7 @@ com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 test diff --git a/bmc-enforcer-rules/pom.xml b/bmc-enforcer-rules/pom.xml index f5f358b5636..5547ed6ca0d 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.43.2 + 3.44.0 oci-java-sdk-enforcer-rules diff --git a/bmc-events/pom.xml b/bmc-events/pom.xml index 609018c4f6a..de9931e53b7 100644 --- a/bmc-events/pom.xml +++ b/bmc-events/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-events @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-examples/pom.xml b/bmc-examples/pom.xml index 22d3eecd75d..1b6ea37a199 100644 --- a/bmc-examples/pom.xml +++ b/bmc-examples/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-examples @@ -71,14 +71,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.43.2 + 3.44.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 pom import diff --git a/bmc-filestorage/pom.xml b/bmc-filestorage/pom.xml index e5fd880873e..f9b135f44c0 100644 --- a/bmc-filestorage/pom.xml +++ b/bmc-filestorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-fleetsoftwareupdate/pom.xml b/bmc-fleetsoftwareupdate/pom.xml index 37e1fb2ff36..77929165838 100644 --- a/bmc-fleetsoftwareupdate/pom.xml +++ b/bmc-fleetsoftwareupdate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-fleetsoftwareupdate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-full/pom.xml b/bmc-full/pom.xml index d65688a3169..282b871485a 100644 --- a/bmc-full/pom.xml +++ b/bmc-full/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-full @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.43.2 + 3.44.0 pom import diff --git a/bmc-functions/pom.xml b/bmc-functions/pom.xml index 22970ecaf5c..21255bd6828 100644 --- a/bmc-functions/pom.xml +++ b/bmc-functions/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-functions @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-fusionapps/pom.xml b/bmc-fusionapps/pom.xml index 30b86a95ec4..fc3d43def22 100644 --- a/bmc-fusionapps/pom.xml +++ b/bmc-fusionapps/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-fusionapps @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-generativeai/pom.xml b/bmc-generativeai/pom.xml index 37a8574fe29..9bca65284ae 100644 --- a/bmc-generativeai/pom.xml +++ b/bmc-generativeai/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-generativeai @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-generativeaiinference/pom.xml b/bmc-generativeaiinference/pom.xml index 49311272eb4..4f5b7a4458a 100644 --- a/bmc-generativeaiinference/pom.xml +++ b/bmc-generativeaiinference/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-generativeaiinference @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-genericartifactscontent/pom.xml b/bmc-genericartifactscontent/pom.xml index 19d2518967d..1552ae6e2ac 100644 --- a/bmc-genericartifactscontent/pom.xml +++ b/bmc-genericartifactscontent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-genericartifactscontent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-globallydistributeddatabase/pom.xml b/bmc-globallydistributeddatabase/pom.xml index db48041d716..21e94ee09c8 100644 --- a/bmc-globallydistributeddatabase/pom.xml +++ b/bmc-globallydistributeddatabase/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-globallydistributeddatabase @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-goldengate/pom.xml b/bmc-goldengate/pom.xml index ad3d8c48c78..aca659898f0 100644 --- a/bmc-goldengate/pom.xml +++ b/bmc-goldengate/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-goldengate @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-governancerulescontrolplane/pom.xml b/bmc-governancerulescontrolplane/pom.xml index 28fadb0558c..edfd7707c84 100644 --- a/bmc-governancerulescontrolplane/pom.xml +++ b/bmc-governancerulescontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-governancerulescontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-healthchecks/pom.xml b/bmc-healthchecks/pom.xml index 13438e82e7a..e717eed9340 100644 --- a/bmc-healthchecks/pom.xml +++ b/bmc-healthchecks/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-healthchecks @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-identity/pom.xml b/bmc-identity/pom.xml index 8304e3a3e4b..55bf4d72781 100644 --- a/bmc-identity/pom.xml +++ b/bmc-identity/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-identitydataplane/pom.xml b/bmc-identitydataplane/pom.xml index 388a92cc819..0404fffb7c0 100644 --- a/bmc-identitydataplane/pom.xml +++ b/bmc-identitydataplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-identitydataplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-identitydomains/pom.xml b/bmc-identitydomains/pom.xml index 0f32c0a7ee7..630853e384e 100644 --- a/bmc-identitydomains/pom.xml +++ b/bmc-identitydomains/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-identitydomains @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-integration/pom.xml b/bmc-integration/pom.xml index 531918430c3..9b19adcf17e 100644 --- a/bmc-integration/pom.xml +++ b/bmc-integration/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-integration @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-jms/pom.xml b/bmc-jms/pom.xml index 83eb00a7ed4..40bb5bff3fa 100644 --- a/bmc-jms/pom.xml +++ b/bmc-jms/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-jms @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-jmsjavadownloads/pom.xml b/bmc-jmsjavadownloads/pom.xml index b1c840fb517..69ec5573dd6 100644 --- a/bmc-jmsjavadownloads/pom.xml +++ b/bmc-jmsjavadownloads/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-jmsjavadownloads @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-keymanagement/pom.xml b/bmc-keymanagement/pom.xml index 7e079e98c70..7247129c39d 100644 --- a/bmc-keymanagement/pom.xml +++ b/bmc-keymanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-keymanagement @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-licensemanager/pom.xml b/bmc-licensemanager/pom.xml index 672ad01e545..12018da62e3 100644 --- a/bmc-licensemanager/pom.xml +++ b/bmc-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-licensemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-limits/pom.xml b/bmc-limits/pom.xml index 003a6263e3d..6fb75c8ea73 100644 --- a/bmc-limits/pom.xml +++ b/bmc-limits/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-limits @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-loadbalancer/pom.xml b/bmc-loadbalancer/pom.xml index c30df356035..772250fb340 100644 --- a/bmc-loadbalancer/pom.xml +++ b/bmc-loadbalancer/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml @@ -18,7 +18,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-lockbox/pom.xml b/bmc-lockbox/pom.xml index 28107665471..ddb192df256 100644 --- a/bmc-lockbox/pom.xml +++ b/bmc-lockbox/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-lockbox @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-loganalytics/pom.xml b/bmc-loganalytics/pom.xml index a92a710bd53..86bd1b2f482 100644 --- a/bmc-loganalytics/pom.xml +++ b/bmc-loganalytics/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-loganalytics @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-logging/pom.xml b/bmc-logging/pom.xml index 7b81726ccac..f812653e7ba 100644 --- a/bmc-logging/pom.xml +++ b/bmc-logging/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-logging @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-loggingingestion/pom.xml b/bmc-loggingingestion/pom.xml index 6e513e11831..ec83b9fd213 100644 --- a/bmc-loggingingestion/pom.xml +++ b/bmc-loggingingestion/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-loggingingestion @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-loggingsearch/pom.xml b/bmc-loggingsearch/pom.xml index 320c89102b3..a42b3969a19 100644 --- a/bmc-loggingsearch/pom.xml +++ b/bmc-loggingsearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-loggingsearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-managementagent/pom.xml b/bmc-managementagent/pom.xml index 1505e08fbcb..01ea97a8fbf 100644 --- a/bmc-managementagent/pom.xml +++ b/bmc-managementagent/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-managementagent @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-managementdashboard/pom.xml b/bmc-managementdashboard/pom.xml index 88c1830ce12..2afcf984a87 100644 --- a/bmc-managementdashboard/pom.xml +++ b/bmc-managementdashboard/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-managementdashboard @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-marketplace/pom.xml b/bmc-marketplace/pom.xml index 81ef71240cb..1ffc7c982e3 100644 --- a/bmc-marketplace/pom.xml +++ b/bmc-marketplace/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-marketplace @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-marketplaceprivateoffer/pom.xml b/bmc-marketplaceprivateoffer/pom.xml index 44beb4526a8..d0a5cb65fa9 100644 --- a/bmc-marketplaceprivateoffer/pom.xml +++ b/bmc-marketplaceprivateoffer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-marketplaceprivateoffer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-marketplacepublisher/pom.xml b/bmc-marketplacepublisher/pom.xml index e90451bbee3..0fc94838c86 100644 --- a/bmc-marketplacepublisher/pom.xml +++ b/bmc-marketplacepublisher/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-marketplacepublisher @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-mediaservices/pom.xml b/bmc-mediaservices/pom.xml index 1679674bff7..1a9cab7e9ef 100644 --- a/bmc-mediaservices/pom.xml +++ b/bmc-mediaservices/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-mediaservices @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-monitoring/pom.xml b/bmc-monitoring/pom.xml index 47f43c38711..e5343dc0e6c 100644 --- a/bmc-monitoring/pom.xml +++ b/bmc-monitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-monitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-mysql/pom.xml b/bmc-mysql/pom.xml index 1aab7df7d90..e45e8ae4049 100644 --- a/bmc-mysql/pom.xml +++ b/bmc-mysql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-mysql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackups.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackups.java index f8d2fe31a17..751c856c08e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackups.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackups.java @@ -80,6 +80,21 @@ public interface DbBackups extends AutoCloseable { */ ChangeBackupCompartmentResponse changeBackupCompartment(ChangeBackupCompartmentRequest request); + /** + * Creates a copy of a DB system backup available in the specified source region. + * + * @param request The request object containing the details to send + * @return A response object containing details about the completed operation + * @throws BmcException when an error occurs. This operation uses + * RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is + * provided. The specifics of the default retry strategy are described here + * https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries + *

Example: Click here to see how to use CopyBackup API. + */ + CopyBackupResponse copyBackup(CopyBackupRequest request); + /** * Create a backup of a DB System. * diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsync.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsync.java index cd8a30f0ec5..20e107aea2e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsync.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsync.java @@ -76,6 +76,20 @@ java.util.concurrent.Future changeBackupCompart ChangeBackupCompartmentRequest, ChangeBackupCompartmentResponse> handler); + /** + * Creates a copy of a DB system backup available in the specified source region. + * + * @param request The request object containing the details to send + * @param handler The request handler to invoke upon completion, may be null. + * @return A Future that can be used to get the response if no AsyncHandler was provided. Note, + * if you provide an AsyncHandler and use the Future, some types of responses (like + * java.io.InputStream) may not be able to be read in both places as the underlying stream + * may only be consumed once. + */ + java.util.concurrent.Future copyBackup( + CopyBackupRequest request, + com.oracle.bmc.responses.AsyncHandler handler); + /** * Create a backup of a DB System. * diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java index 8df001f37d4..4351190c9e0 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsAsyncClient.java @@ -132,6 +132,40 @@ public java.util.concurrent.Future changeBackup .callAsync(handler); } + @Override + public java.util.concurrent.Future copyBackup( + CopyBackupRequest request, + final com.oracle.bmc.responses.AsyncHandler + handler) { + Objects.requireNonNull(request.getCopyBackupDetails(), "copyBackupDetails is required"); + + return clientCall(request, CopyBackupResponse::builder) + .logger(LOG, "copyBackup") + .serviceDetails( + "DbBackups", + "CopyBackup", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/CopyBackup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CopyBackupRequest::builder) + .basePath("/20190415") + .appendPathParam("backups") + .appendPathParam("actions") + .appendPathParam("copy") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .hasBody() + .handleBody( + com.oracle.bmc.mysql.model.Backup.class, CopyBackupResponse.Builder::backup) + .handleResponseHeaderString("etag", CopyBackupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CopyBackupResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", CopyBackupResponse.Builder::opcWorkRequestId) + .callAsync(handler); + } + @Override public java.util.concurrent.Future createBackup( CreateBackupRequest request, diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsClient.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsClient.java index a449a10aa56..96fdfb6542f 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsClient.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/DbBackupsClient.java @@ -157,6 +157,38 @@ public ChangeBackupCompartmentResponse changeBackupCompartment( .callSync(); } + @Override + public CopyBackupResponse copyBackup(CopyBackupRequest request) { + Objects.requireNonNull(request.getCopyBackupDetails(), "copyBackupDetails is required"); + + return clientCall(request, CopyBackupResponse::builder) + .logger(LOG, "copyBackup") + .serviceDetails( + "DbBackups", + "CopyBackup", + "https://docs.oracle.com/iaas/api/#/en/mysql/20190415/Backup/CopyBackup") + .method(com.oracle.bmc.http.client.Method.POST) + .requestBuilder(CopyBackupRequest::builder) + .basePath("/20190415") + .appendPathParam("backups") + .appendPathParam("actions") + .appendPathParam("copy") + .accept("application/json") + .appendHeader("if-match", request.getIfMatch()) + .appendHeader("opc-request-id", request.getOpcRequestId()) + .appendHeader("opc-retry-token", request.getOpcRetryToken()) + .operationUsesDefaultRetries() + .hasBody() + .handleBody( + com.oracle.bmc.mysql.model.Backup.class, CopyBackupResponse.Builder::backup) + .handleResponseHeaderString("etag", CopyBackupResponse.Builder::etag) + .handleResponseHeaderString( + "opc-request-id", CopyBackupResponse.Builder::opcRequestId) + .handleResponseHeaderString( + "opc-work-request-id", CopyBackupResponse.Builder::opcWorkRequestId) + .callSync(); + } + @Override public CreateBackupResponse createBackup(CreateBackupRequest request) { Objects.requireNonNull(request.getCreateBackupDetails(), "createBackupDetails is required"); diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java index 3e7191fccc2..3d913fcee6e 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/Backup.java @@ -46,7 +46,10 @@ public final class Backup extends com.oracle.bmc.http.client.internal.Explicitly "mysqlVersion", "shapeName", "freeformTags", - "definedTags" + "definedTags", + "immediateSourceBackupId", + "originalSourceBackupId", + "timeCopyCreated" }) public Backup( String id, @@ -67,7 +70,10 @@ public Backup( String mysqlVersion, String shapeName, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + String immediateSourceBackupId, + String originalSourceBackupId, + java.util.Date timeCopyCreated) { super(); this.id = id; this.displayName = displayName; @@ -88,6 +94,9 @@ public Backup( this.shapeName = shapeName; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.immediateSourceBackupId = immediateSourceBackupId; + this.originalSourceBackupId = originalSourceBackupId; + this.timeCopyCreated = timeCopyCreated; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -380,6 +389,63 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("immediateSourceBackupId") + private String immediateSourceBackupId; + + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + * + * @param immediateSourceBackupId the value to set + * @return this builder + */ + public Builder immediateSourceBackupId(String immediateSourceBackupId) { + this.immediateSourceBackupId = immediateSourceBackupId; + this.__explicitlySet__.add("immediateSourceBackupId"); + return this; + } + /** + * The OCID of the original source DB system backup from which this DB system backup was + * copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSourceBackupId") + private String originalSourceBackupId; + + /** + * The OCID of the original source DB system backup from which this DB system backup was + * copied. + * + * @param originalSourceBackupId the value to set + * @return this builder + */ + public Builder originalSourceBackupId(String originalSourceBackupId) { + this.originalSourceBackupId = originalSourceBackupId; + this.__explicitlySet__.add("originalSourceBackupId"); + return this; + } + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCopyCreated") + private java.util.Date timeCopyCreated; + + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeCopyCreated the value to set + * @return this builder + */ + public Builder timeCopyCreated(java.util.Date timeCopyCreated) { + this.timeCopyCreated = timeCopyCreated; + this.__explicitlySet__.add("timeCopyCreated"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -405,7 +471,10 @@ public Backup build() { this.mysqlVersion, this.shapeName, this.freeformTags, - this.definedTags); + this.definedTags, + this.immediateSourceBackupId, + this.originalSourceBackupId, + this.timeCopyCreated); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -471,6 +540,15 @@ public Builder copy(Backup model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("immediateSourceBackupId")) { + this.immediateSourceBackupId(model.getImmediateSourceBackupId()); + } + if (model.wasPropertyExplicitlySet("originalSourceBackupId")) { + this.originalSourceBackupId(model.getOriginalSourceBackupId()); + } + if (model.wasPropertyExplicitlySet("timeCopyCreated")) { + this.timeCopyCreated(model.getTimeCopyCreated()); + } return this; } } @@ -877,6 +955,55 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("immediateSourceBackupId") + private final String immediateSourceBackupId; + + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + * + * @return the value + */ + public String getImmediateSourceBackupId() { + return immediateSourceBackupId; + } + + /** + * The OCID of the original source DB system backup from which this DB system backup was copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSourceBackupId") + private final String originalSourceBackupId; + + /** + * The OCID of the original source DB system backup from which this DB system backup was copied. + * + * @return the value + */ + public String getOriginalSourceBackupId() { + return originalSourceBackupId; + } + + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCopyCreated") + private final java.util.Date timeCopyCreated; + + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCopyCreated() { + return timeCopyCreated; + } + @Override public String toString() { return this.toString(true); @@ -911,6 +1038,10 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", immediateSourceBackupId=") + .append(String.valueOf(this.immediateSourceBackupId)); + sb.append(", originalSourceBackupId=").append(String.valueOf(this.originalSourceBackupId)); + sb.append(", timeCopyCreated=").append(String.valueOf(this.timeCopyCreated)); sb.append(")"); return sb.toString(); } @@ -944,6 +1075,11 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.immediateSourceBackupId, other.immediateSourceBackupId) + && java.util.Objects.equals( + this.originalSourceBackupId, other.originalSourceBackupId) + && java.util.Objects.equals(this.timeCopyCreated, other.timeCopyCreated) && super.equals(other); } @@ -986,6 +1122,19 @@ public int hashCode() { result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.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.immediateSourceBackupId == null + ? 43 + : this.immediateSourceBackupId.hashCode()); + result = + (result * PRIME) + + (this.originalSourceBackupId == null + ? 43 + : this.originalSourceBackupId.hashCode()); + result = + (result * PRIME) + + (this.timeCopyCreated == null ? 43 : this.timeCopyCreated.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java index 730bedf81c3..d26a73c0594 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/BackupSummary.java @@ -42,7 +42,11 @@ public final class BackupSummary extends com.oracle.bmc.http.client.internal.Exp "mysqlVersion", "shapeName", "freeformTags", - "definedTags" + "definedTags", + "immediateSourceBackupId", + "originalSourceBackupId", + "timeCopyCreated", + "dbSystemSnapshotSummary" }) public BackupSummary( String id, @@ -60,7 +64,11 @@ public BackupSummary( String mysqlVersion, String shapeName, java.util.Map freeformTags, - java.util.Map> definedTags) { + java.util.Map> definedTags, + String immediateSourceBackupId, + String originalSourceBackupId, + java.util.Date timeCopyCreated, + DbSystemSnapshotSummary dbSystemSnapshotSummary) { super(); this.id = id; this.displayName = displayName; @@ -78,6 +86,10 @@ public BackupSummary( this.shapeName = shapeName; this.freeformTags = freeformTags; this.definedTags = definedTags; + this.immediateSourceBackupId = immediateSourceBackupId; + this.originalSourceBackupId = originalSourceBackupId; + this.timeCopyCreated = timeCopyCreated; + this.dbSystemSnapshotSummary = dbSystemSnapshotSummary; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -331,6 +343,72 @@ public Builder definedTags( this.__explicitlySet__.add("definedTags"); return this; } + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("immediateSourceBackupId") + private String immediateSourceBackupId; + + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + * + * @param immediateSourceBackupId the value to set + * @return this builder + */ + public Builder immediateSourceBackupId(String immediateSourceBackupId) { + this.immediateSourceBackupId = immediateSourceBackupId; + this.__explicitlySet__.add("immediateSourceBackupId"); + return this; + } + /** + * The OCID of the original source DB system backup from which this DB system backup was + * copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSourceBackupId") + private String originalSourceBackupId; + + /** + * The OCID of the original source DB system backup from which this DB system backup was + * copied. + * + * @param originalSourceBackupId the value to set + * @return this builder + */ + public Builder originalSourceBackupId(String originalSourceBackupId) { + this.originalSourceBackupId = originalSourceBackupId; + this.__explicitlySet__.add("originalSourceBackupId"); + return this; + } + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCopyCreated") + private java.util.Date timeCopyCreated; + + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @param timeCopyCreated the value to set + * @return this builder + */ + public Builder timeCopyCreated(java.util.Date timeCopyCreated) { + this.timeCopyCreated = timeCopyCreated; + this.__explicitlySet__.add("timeCopyCreated"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemSnapshotSummary") + private DbSystemSnapshotSummary dbSystemSnapshotSummary; + + public Builder dbSystemSnapshotSummary(DbSystemSnapshotSummary dbSystemSnapshotSummary) { + this.dbSystemSnapshotSummary = dbSystemSnapshotSummary; + this.__explicitlySet__.add("dbSystemSnapshotSummary"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -353,7 +431,11 @@ public BackupSummary build() { this.mysqlVersion, this.shapeName, this.freeformTags, - this.definedTags); + this.definedTags, + this.immediateSourceBackupId, + this.originalSourceBackupId, + this.timeCopyCreated, + this.dbSystemSnapshotSummary); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -410,6 +492,18 @@ public Builder copy(BackupSummary model) { if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } + if (model.wasPropertyExplicitlySet("immediateSourceBackupId")) { + this.immediateSourceBackupId(model.getImmediateSourceBackupId()); + } + if (model.wasPropertyExplicitlySet("originalSourceBackupId")) { + this.originalSourceBackupId(model.getOriginalSourceBackupId()); + } + if (model.wasPropertyExplicitlySet("timeCopyCreated")) { + this.timeCopyCreated(model.getTimeCopyCreated()); + } + if (model.wasPropertyExplicitlySet("dbSystemSnapshotSummary")) { + this.dbSystemSnapshotSummary(model.getDbSystemSnapshotSummary()); + } return this; } } @@ -639,6 +733,62 @@ public java.util.Map> getDefinedTags() { return definedTags; } + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("immediateSourceBackupId") + private final String immediateSourceBackupId; + + /** + * The OCID of the immediate source DB system backup from which this DB system backup was + * copied. + * + * @return the value + */ + public String getImmediateSourceBackupId() { + return immediateSourceBackupId; + } + + /** + * The OCID of the original source DB system backup from which this DB system backup was copied. + */ + @com.fasterxml.jackson.annotation.JsonProperty("originalSourceBackupId") + private final String originalSourceBackupId; + + /** + * The OCID of the original source DB system backup from which this DB system backup was copied. + * + * @return the value + */ + public String getOriginalSourceBackupId() { + return originalSourceBackupId; + } + + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + */ + @com.fasterxml.jackson.annotation.JsonProperty("timeCopyCreated") + private final java.util.Date timeCopyCreated; + + /** + * The date and time the DB system backup copy was created, as described by [RFC + * 3339](https://tools.ietf.org/rfc/rfc3339). + * + * @return the value + */ + public java.util.Date getTimeCopyCreated() { + return timeCopyCreated; + } + + @com.fasterxml.jackson.annotation.JsonProperty("dbSystemSnapshotSummary") + private final DbSystemSnapshotSummary dbSystemSnapshotSummary; + + public DbSystemSnapshotSummary getDbSystemSnapshotSummary() { + return dbSystemSnapshotSummary; + } + @Override public String toString() { return this.toString(true); @@ -670,6 +820,12 @@ public String toString(boolean includeByteArrayContents) { sb.append(", shapeName=").append(String.valueOf(this.shapeName)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); + sb.append(", immediateSourceBackupId=") + .append(String.valueOf(this.immediateSourceBackupId)); + sb.append(", originalSourceBackupId=").append(String.valueOf(this.originalSourceBackupId)); + sb.append(", timeCopyCreated=").append(String.valueOf(this.timeCopyCreated)); + sb.append(", dbSystemSnapshotSummary=") + .append(String.valueOf(this.dbSystemSnapshotSummary)); sb.append(")"); return sb.toString(); } @@ -700,6 +856,13 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.shapeName, other.shapeName) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) + && java.util.Objects.equals( + this.immediateSourceBackupId, other.immediateSourceBackupId) + && java.util.Objects.equals( + this.originalSourceBackupId, other.originalSourceBackupId) + && java.util.Objects.equals(this.timeCopyCreated, other.timeCopyCreated) + && java.util.Objects.equals( + this.dbSystemSnapshotSummary, other.dbSystemSnapshotSummary) && super.equals(other); } @@ -735,6 +898,24 @@ public int hashCode() { result = (result * PRIME) + (this.shapeName == null ? 43 : this.shapeName.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.immediateSourceBackupId == null + ? 43 + : this.immediateSourceBackupId.hashCode()); + result = + (result * PRIME) + + (this.originalSourceBackupId == null + ? 43 + : this.originalSourceBackupId.hashCode()); + result = + (result * PRIME) + + (this.timeCopyCreated == null ? 43 : this.timeCopyCreated.hashCode()); + result = + (result * PRIME) + + (this.dbSystemSnapshotSummary == null + ? 43 + : this.dbSystemSnapshotSummary.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CopyBackupDetails.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CopyBackupDetails.java new file mode 100644 index 00000000000..71df5a6163f --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/CopyBackupDetails.java @@ -0,0 +1,339 @@ +/** + * 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.mysql.model; + +/** + * Details required to copy a DB system backup from its source region to a destination region.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = CopyBackupDetails.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class CopyBackupDetails + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({ + "compartmentId", + "description", + "displayName", + "sourceBackupId", + "sourceRegion" + }) + public CopyBackupDetails( + String compartmentId, + String description, + String displayName, + String sourceBackupId, + String sourceRegion) { + super(); + this.compartmentId = compartmentId; + this.description = description; + this.displayName = displayName; + this.sourceBackupId = sourceBackupId; + this.sourceRegion = sourceRegion; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** + * The OCID of the compartment the DB system backup is to be copied to. + * + *

*Note:** The compartment must be the same as the compartment of the DB system backup + * in the source region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private String compartmentId; + + /** + * The OCID of the compartment the DB system backup is to be copied to. + * + *

*Note:** The compartment must be the same as the compartment of the DB system backup + * in the source region. + * + * @param compartmentId the value to set + * @return this builder + */ + public Builder compartmentId(String compartmentId) { + this.compartmentId = compartmentId; + this.__explicitlySet__.add("compartmentId"); + return this; + } + /** + * A user-supplied description for the DB system backup. By default, the source backup + * description will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private String description; + + /** + * A user-supplied description for the DB system backup. By default, the source backup + * description will be used. + * + * @param description the value to set + * @return this builder + */ + public Builder description(String description) { + this.description = description; + this.__explicitlySet__.add("description"); + return this; + } + /** + * A user-supplied display name for the DB system backup. By default, the source backup + * display name will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * A user-supplied display name for the DB system backup. By default, the source backup + * display name will be used. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of DB system backup to be copied. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceBackupId") + private String sourceBackupId; + + /** + * The OCID of DB system backup to be copied. + * + * @param sourceBackupId the value to set + * @return this builder + */ + public Builder sourceBackupId(String sourceBackupId) { + this.sourceBackupId = sourceBackupId; + this.__explicitlySet__.add("sourceBackupId"); + return this; + } + /** + * The region identifier of the source region where the DB system backup exists. For more + * information, please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceRegion") + private String sourceRegion; + + /** + * The region identifier of the source region where the DB system backup exists. For more + * information, please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + * + * @param sourceRegion the value to set + * @return this builder + */ + public Builder sourceRegion(String sourceRegion) { + this.sourceRegion = sourceRegion; + this.__explicitlySet__.add("sourceRegion"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public CopyBackupDetails build() { + CopyBackupDetails model = + new CopyBackupDetails( + this.compartmentId, + this.description, + this.displayName, + this.sourceBackupId, + this.sourceRegion); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(CopyBackupDetails model) { + if (model.wasPropertyExplicitlySet("compartmentId")) { + this.compartmentId(model.getCompartmentId()); + } + if (model.wasPropertyExplicitlySet("description")) { + this.description(model.getDescription()); + } + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("sourceBackupId")) { + this.sourceBackupId(model.getSourceBackupId()); + } + if (model.wasPropertyExplicitlySet("sourceRegion")) { + this.sourceRegion(model.getSourceRegion()); + } + 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 the DB system backup is to be copied to. + * + *

*Note:** The compartment must be the same as the compartment of the DB system backup in + * the source region. + */ + @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") + private final String compartmentId; + + /** + * The OCID of the compartment the DB system backup is to be copied to. + * + *

*Note:** The compartment must be the same as the compartment of the DB system backup in + * the source region. + * + * @return the value + */ + public String getCompartmentId() { + return compartmentId; + } + + /** + * A user-supplied description for the DB system backup. By default, the source backup + * description will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("description") + private final String description; + + /** + * A user-supplied description for the DB system backup. By default, the source backup + * description will be used. + * + * @return the value + */ + public String getDescription() { + return description; + } + + /** + * A user-supplied display name for the DB system backup. By default, the source backup display + * name will be used. + */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * A user-supplied display name for the DB system backup. By default, the source backup display + * name will be used. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of DB system backup to be copied. */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceBackupId") + private final String sourceBackupId; + + /** + * The OCID of DB system backup to be copied. + * + * @return the value + */ + public String getSourceBackupId() { + return sourceBackupId; + } + + /** + * The region identifier of the source region where the DB system backup exists. For more + * information, please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("sourceRegion") + private final String sourceRegion; + + /** + * The region identifier of the source region where the DB system backup exists. For more + * information, please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + * + * @return the value + */ + public String getSourceRegion() { + return sourceRegion; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("CopyBackupDetails("); + sb.append("super=").append(super.toString()); + sb.append("compartmentId=").append(String.valueOf(this.compartmentId)); + sb.append(", description=").append(String.valueOf(this.description)); + sb.append(", displayName=").append(String.valueOf(this.displayName)); + sb.append(", sourceBackupId=").append(String.valueOf(this.sourceBackupId)); + sb.append(", sourceRegion=").append(String.valueOf(this.sourceRegion)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof CopyBackupDetails)) { + return false; + } + + CopyBackupDetails other = (CopyBackupDetails) o; + return java.util.Objects.equals(this.compartmentId, other.compartmentId) + && java.util.Objects.equals(this.description, other.description) + && java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.sourceBackupId, other.sourceBackupId) + && java.util.Objects.equals(this.sourceRegion, other.sourceRegion) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = + (result * PRIME) + + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); + result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = + (result * PRIME) + + (this.sourceBackupId == null ? 43 : this.sourceBackupId.hashCode()); + result = (result * PRIME) + (this.sourceRegion == null ? 43 : this.sourceRegion.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java index d7a598d8df6..f5325e5f172 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshot.java @@ -48,7 +48,8 @@ public final class DbSystemSnapshot "definedTags", "crashRecovery", "databaseManagement", - "secureConnections" + "secureConnections", + "region" }) public DbSystemSnapshot( String id, @@ -76,7 +77,8 @@ public DbSystemSnapshot( java.util.Map> definedTags, CrashRecoveryStatus crashRecovery, DatabaseManagementStatus databaseManagement, - SecureConnectionDetails secureConnections) { + SecureConnectionDetails secureConnections, + String region) { super(); this.id = id; this.displayName = displayName; @@ -104,6 +106,7 @@ public DbSystemSnapshot( this.crashRecovery = crashRecovery; this.databaseManagement = databaseManagement; this.secureConnections = secureConnections; + this.region = region; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @@ -513,6 +516,27 @@ public Builder secureConnections(SecureConnectionDetails secureConnections) { this.__explicitlySet__.add("secureConnections"); return this; } + /** + * The region identifier of the region where the DB system exists. For more information, + * please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The region identifier of the region where the DB system exists. For more information, + * please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); @@ -545,7 +569,8 @@ public DbSystemSnapshot build() { this.definedTags, this.crashRecovery, this.databaseManagement, - this.secureConnections); + this.secureConnections, + this.region); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } @@ -632,6 +657,9 @@ public Builder copy(DbSystemSnapshot model) { if (model.wasPropertyExplicitlySet("secureConnections")) { this.secureConnections(model.getSecureConnections()); } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } return this; } } @@ -997,6 +1025,25 @@ public SecureConnectionDetails getSecureConnections() { return secureConnections; } + /** + * The region identifier of the region where the DB system exists. For more information, please + * see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The region identifier of the region where the DB system exists. For more information, please + * see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + * + * @return the value + */ + public String getRegion() { + return region; + } + @Override public String toString() { return this.toString(true); @@ -1038,6 +1085,7 @@ public String toString(boolean includeByteArrayContents) { sb.append(", crashRecovery=").append(String.valueOf(this.crashRecovery)); sb.append(", databaseManagement=").append(String.valueOf(this.databaseManagement)); sb.append(", secureConnections=").append(String.valueOf(this.secureConnections)); + sb.append(", region=").append(String.valueOf(this.region)); sb.append(")"); return sb.toString(); } @@ -1078,6 +1126,7 @@ public boolean equals(Object o) { && java.util.Objects.equals(this.crashRecovery, other.crashRecovery) && java.util.Objects.equals(this.databaseManagement, other.databaseManagement) && java.util.Objects.equals(this.secureConnections, other.secureConnections) + && java.util.Objects.equals(this.region, other.region) && super.equals(other); } @@ -1139,6 +1188,7 @@ public int hashCode() { result = (result * PRIME) + (this.secureConnections == null ? 43 : this.secureConnections.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshotSummary.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshotSummary.java new file mode 100644 index 00000000000..5500caaaa3e --- /dev/null +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/DbSystemSnapshotSummary.java @@ -0,0 +1,217 @@ +/** + * 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.mysql.model; + +/** + * A summary of snapshot of the DB system details at the time of the backup.
+ * Note: Objects should always be created or deserialized using the {@link Builder}. This model + * distinguishes fields that are {@code null} because they are unset from fields that are explicitly + * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a + * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link + * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set + * fields into account. The constructor, on the other hand, does not take the explicitly set fields + * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code + * null}). + */ +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +@com.fasterxml.jackson.databind.annotation.JsonDeserialize( + builder = DbSystemSnapshotSummary.Builder.class) +@com.fasterxml.jackson.annotation.JsonFilter( + com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) +public final class DbSystemSnapshotSummary + extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { + @Deprecated + @java.beans.ConstructorProperties({"displayName", "id", "region"}) + public DbSystemSnapshotSummary(String displayName, String id, String region) { + super(); + this.displayName = displayName; + this.id = id; + this.region = region; + } + + @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") + public static class Builder { + /** The user-friendly name for the DB system. It does not have to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private String displayName; + + /** + * The user-friendly name for the DB system. It does not have to be unique. + * + * @param displayName the value to set + * @return this builder + */ + public Builder displayName(String displayName) { + this.displayName = displayName; + this.__explicitlySet__.add("displayName"); + return this; + } + /** The OCID of the DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private String id; + + /** + * The OCID of the DB System. + * + * @param id the value to set + * @return this builder + */ + public Builder id(String id) { + this.id = id; + this.__explicitlySet__.add("id"); + return this; + } + /** + * The region identifier of the region where the DB system exists. For more information, + * please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private String region; + + /** + * The region identifier of the region where the DB system exists. For more information, + * please see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + * + * @param region the value to set + * @return this builder + */ + public Builder region(String region) { + this.region = region; + this.__explicitlySet__.add("region"); + return this; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + private final java.util.Set __explicitlySet__ = new java.util.HashSet(); + + public DbSystemSnapshotSummary build() { + DbSystemSnapshotSummary model = + new DbSystemSnapshotSummary(this.displayName, this.id, this.region); + for (String explicitlySetProperty : this.__explicitlySet__) { + model.markPropertyAsExplicitlySet(explicitlySetProperty); + } + return model; + } + + @com.fasterxml.jackson.annotation.JsonIgnore + public Builder copy(DbSystemSnapshotSummary model) { + if (model.wasPropertyExplicitlySet("displayName")) { + this.displayName(model.getDisplayName()); + } + if (model.wasPropertyExplicitlySet("id")) { + this.id(model.getId()); + } + if (model.wasPropertyExplicitlySet("region")) { + this.region(model.getRegion()); + } + return this; + } + } + + /** Create a new builder. */ + public static Builder builder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder().copy(this); + } + + /** The user-friendly name for the DB system. It does not have to be unique. */ + @com.fasterxml.jackson.annotation.JsonProperty("displayName") + private final String displayName; + + /** + * The user-friendly name for the DB system. It does not have to be unique. + * + * @return the value + */ + public String getDisplayName() { + return displayName; + } + + /** The OCID of the DB System. */ + @com.fasterxml.jackson.annotation.JsonProperty("id") + private final String id; + + /** + * The OCID of the DB System. + * + * @return the value + */ + public String getId() { + return id; + } + + /** + * The region identifier of the region where the DB system exists. For more information, please + * see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + */ + @com.fasterxml.jackson.annotation.JsonProperty("region") + private final String region; + + /** + * The region identifier of the region where the DB system exists. For more information, please + * see [Regions and Availability + * Domains](https://docs.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm). + * + * @return the value + */ + public String getRegion() { + return region; + } + + @Override + public String toString() { + return this.toString(true); + } + + /** + * Return a string representation of the object. + * + * @param includeByteArrayContents true to include the full contents of byte arrays + * @return string representation + */ + public String toString(boolean includeByteArrayContents) { + java.lang.StringBuilder sb = new java.lang.StringBuilder(); + sb.append("DbSystemSnapshotSummary("); + sb.append("super=").append(super.toString()); + sb.append("displayName=").append(String.valueOf(this.displayName)); + sb.append(", id=").append(String.valueOf(this.id)); + sb.append(", region=").append(String.valueOf(this.region)); + sb.append(")"); + return sb.toString(); + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (!(o instanceof DbSystemSnapshotSummary)) { + return false; + } + + DbSystemSnapshotSummary other = (DbSystemSnapshotSummary) o; + return java.util.Objects.equals(this.displayName, other.displayName) + && java.util.Objects.equals(this.id, other.id) + && java.util.Objects.equals(this.region, other.region) + && super.equals(other); + } + + @Override + public int hashCode() { + final int PRIME = 59; + int result = 1; + result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); + result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); + result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); + result = (result * PRIME) + super.hashCode(); + return result; + } +} diff --git a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java index 2b63845f3b8..d8680d00db8 100644 --- a/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/model/WorkRequestOperationType.java @@ -28,6 +28,7 @@ public enum WorkRequestOperationType implements com.oracle.bmc.http.internal.Bmc ResumeChannel("RESUME_CHANNEL"), ResetChannel("RESET_CHANNEL"), DeleteChannel("DELETE_CHANNEL"), + CopyBackup("COPY_BACKUP"), CreateBackup("CREATE_BACKUP"), DeleteBackup("DELETE_BACKUP"), diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateAgentRequest.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CopyBackupRequest.java similarity index 63% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateAgentRequest.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CopyBackupRequest.java index 987f5c08236..8f60a41652c 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/requests/UpdateAgentRequest.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/requests/CopyBackupRequest.java @@ -2,42 +2,53 @@ * 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.databasemigration.requests; +package com.oracle.bmc.mysql.requests; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.mysql.model.*; /** * Example: Click here to see how to use UpdateAgentRequest. + * href="https://docs.cloud.oracle.com/en-us/iaas/tools/java-sdk-examples/latest/mysql/CopyBackupExample.java.html" + * target="_blank" rel="noopener noreferrer">here to see how to use CopyBackupRequest. */ -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class UpdateAgentRequest - extends com.oracle.bmc.requests.BmcRequest< - com.oracle.bmc.databasemigration.model.UpdateAgentDetails> { +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CopyBackupRequest + extends com.oracle.bmc.requests.BmcRequest { - /** The OCID of the agent */ - private String agentId; + /** Details required to copy a given DB system backup to another region. */ + private com.oracle.bmc.mysql.model.CopyBackupDetails copyBackupDetails; - /** The OCID of the agent */ - public String getAgentId() { - return agentId; + /** Details required to copy a given DB system backup to another region. */ + public com.oracle.bmc.mysql.model.CopyBackupDetails getCopyBackupDetails() { + return copyBackupDetails; } - /** Update ODMS Agent properties. */ - private com.oracle.bmc.databasemigration.model.UpdateAgentDetails updateAgentDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * If-Match} header to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + private String ifMatch; - /** Update ODMS Agent properties. */ - public com.oracle.bmc.databasemigration.model.UpdateAgentDetails getUpdateAgentDetails() { - return updateAgentDetails; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the {@code + * If-Match} header to the value of the etag from a previous GET or POST response for that + * resource. The resource will be updated or deleted only if the etag you provide matches the + * resource's current etag value. + */ + public String getIfMatch() { + return ifMatch; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. */ private String opcRequestId; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. */ public String getOpcRequestId() { return opcRequestId; @@ -45,39 +56,22 @@ public String getOpcRequestId() { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a + * hours, but can be invalidated before then due to conflicting operations (for example, if a * resource has been deleted and purged from the system, then a retry of the original creation - * request might be rejected. + * request may be rejected). */ private String opcRetryToken; /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after 24 - * hours, but can be invalidated before then due to conflicting operations. For example, if a + * hours, but can be invalidated before then due to conflicting operations (for example, if a * resource has been deleted and purged from the system, then a retry of the original creation - * request might be rejected. + * request may 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. @@ -86,54 +80,64 @@ public String getIfMatch() { */ @Override @com.oracle.bmc.InternalSdk - public com.oracle.bmc.databasemigration.model.UpdateAgentDetails getBody$() { - return updateAgentDetails; + public com.oracle.bmc.mysql.model.CopyBackupDetails getBody$() { + return copyBackupDetails; } public static class Builder implements com.oracle.bmc.requests.BmcRequest.Builder< - UpdateAgentRequest, com.oracle.bmc.databasemigration.model.UpdateAgentDetails> { + CopyBackupRequest, com.oracle.bmc.mysql.model.CopyBackupDetails> { private com.oracle.bmc.http.client.RequestInterceptor invocationCallback = null; private com.oracle.bmc.retrier.RetryConfiguration retryConfiguration = null; - /** The OCID of the agent */ - private String agentId = null; + /** Details required to copy a given DB system backup to another region. */ + private com.oracle.bmc.mysql.model.CopyBackupDetails copyBackupDetails = null; /** - * The OCID of the agent + * Details required to copy a given DB system backup to another region. * - * @param agentId the value to set + * @param copyBackupDetails the value to set * @return this builder instance */ - public Builder agentId(String agentId) { - this.agentId = agentId; + public Builder copyBackupDetails( + com.oracle.bmc.mysql.model.CopyBackupDetails copyBackupDetails) { + this.copyBackupDetails = copyBackupDetails; return this; } - /** Update ODMS Agent properties. */ - private com.oracle.bmc.databasemigration.model.UpdateAgentDetails updateAgentDetails = null; + /** + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code If-Match} header to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. + */ + private String ifMatch = null; /** - * Update ODMS Agent properties. + * For optimistic concurrency control. In the PUT or DELETE call for a resource, set the + * {@code If-Match} header to the value of the etag from a previous GET or POST response for + * that resource. The resource will be updated or deleted only if the etag you provide + * matches the resource's current etag value. * - * @param updateAgentDetails the value to set + * @param ifMatch the value to set * @return this builder instance */ - public Builder updateAgentDetails( - com.oracle.bmc.databasemigration.model.UpdateAgentDetails updateAgentDetails) { - this.updateAgentDetails = updateAgentDetails; + public Builder ifMatch(String ifMatch) { + this.ifMatch = ifMatch; return this; } /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. */ private String opcRequestId = null; /** - * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a - * particular request, please provide the request ID. + * Customer-defined unique identifier for the request. If you need to contact Oracle about a + * specific request, please provide the request ID that you supplied in this header with the + * request. * * @param opcRequestId the value to set * @return this builder instance @@ -146,18 +150,18 @@ public Builder opcRequestId(String opcRequestId) { /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * 24 hours, but can be invalidated before then due to conflicting operations (for example, * if a resource has been deleted and purged from the system, then a retry of the original - * creation request might be rejected. + * creation request may be rejected). */ private String opcRetryToken = null; /** * A token that uniquely identifies a request so it can be retried in case of a timeout or * server error without risk of executing that same action again. Retry tokens expire after - * 24 hours, but can be invalidated before then due to conflicting operations. For example, + * 24 hours, but can be invalidated before then due to conflicting operations (for example, * if a resource has been deleted and purged from the system, then a retry of the original - * creation request might be rejected. + * creation request may be rejected). * * @param opcRetryToken the value to set * @return this builder instance @@ -167,28 +171,6 @@ public Builder opcRetryToken(String 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. * @@ -218,19 +200,18 @@ public Builder retryConfiguration( * * @return this builder instance */ - public Builder copy(UpdateAgentRequest o) { - agentId(o.getAgentId()); - updateAgentDetails(o.getUpdateAgentDetails()); + public Builder copy(CopyBackupRequest o) { + copyBackupDetails(o.getCopyBackupDetails()); + ifMatch(o.getIfMatch()); opcRequestId(o.getOpcRequestId()); opcRetryToken(o.getOpcRetryToken()); - ifMatch(o.getIfMatch()); invocationCallback(o.getInvocationCallback()); retryConfiguration(o.getRetryConfiguration()); return this; } /** - * Build the instance of UpdateAgentRequest as configured by this builder + * Build the instance of CopyBackupRequest as configured by this builder * *

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

This is the preferred method to build an instance. * - * @return instance of UpdateAgentRequest + * @return instance of CopyBackupRequest */ - public UpdateAgentRequest build() { - UpdateAgentRequest request = buildWithoutInvocationCallback(); + public CopyBackupRequest build() { + CopyBackupRequest request = buildWithoutInvocationCallback(); request.setInvocationCallback(invocationCallback); request.setRetryConfiguration(retryConfiguration); return request; @@ -254,30 +235,28 @@ public UpdateAgentRequest build() { * @return this builder instance */ @com.oracle.bmc.InternalSdk - public Builder body$(com.oracle.bmc.databasemigration.model.UpdateAgentDetails body) { - updateAgentDetails(body); + public Builder body$(com.oracle.bmc.mysql.model.CopyBackupDetails body) { + copyBackupDetails(body); return this; } /** - * Build the instance of UpdateAgentRequest as configured by this builder + * Build the instance of CopyBackupRequest 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 UpdateAgentRequest + * @return instance of CopyBackupRequest */ - public UpdateAgentRequest buildWithoutInvocationCallback() { - UpdateAgentRequest request = new UpdateAgentRequest(); - request.agentId = agentId; - request.updateAgentDetails = updateAgentDetails; + public CopyBackupRequest buildWithoutInvocationCallback() { + CopyBackupRequest request = new CopyBackupRequest(); + request.copyBackupDetails = copyBackupDetails; + request.ifMatch = ifMatch; request.opcRequestId = opcRequestId; request.opcRetryToken = opcRetryToken; - request.ifMatch = ifMatch; return request; - // new UpdateAgentRequest(agentId, updateAgentDetails, opcRequestId, opcRetryToken, - // ifMatch); + // new CopyBackupRequest(copyBackupDetails, ifMatch, opcRequestId, opcRetryToken); } } @@ -288,11 +267,10 @@ public UpdateAgentRequest buildWithoutInvocationCallback() { */ public Builder toBuilder() { return new Builder() - .agentId(agentId) - .updateAgentDetails(updateAgentDetails) + .copyBackupDetails(copyBackupDetails) + .ifMatch(ifMatch) .opcRequestId(opcRequestId) - .opcRetryToken(opcRetryToken) - .ifMatch(ifMatch); + .opcRetryToken(opcRetryToken); } /** @@ -309,11 +287,10 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); - sb.append(",agentId=").append(String.valueOf(this.agentId)); - sb.append(",updateAgentDetails=").append(String.valueOf(this.updateAgentDetails)); + sb.append(",copyBackupDetails=").append(String.valueOf(this.copyBackupDetails)); + sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(",opcRequestId=").append(String.valueOf(this.opcRequestId)); sb.append(",opcRetryToken=").append(String.valueOf(this.opcRetryToken)); - sb.append(",ifMatch=").append(String.valueOf(this.ifMatch)); sb.append(")"); return sb.toString(); } @@ -323,34 +300,30 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof UpdateAgentRequest)) { + if (!(o instanceof CopyBackupRequest)) { return false; } - UpdateAgentRequest other = (UpdateAgentRequest) o; + CopyBackupRequest other = (CopyBackupRequest) o; return super.equals(o) - && java.util.Objects.equals(this.agentId, other.agentId) - && java.util.Objects.equals(this.updateAgentDetails, other.updateAgentDetails) + && java.util.Objects.equals(this.copyBackupDetails, other.copyBackupDetails) + && java.util.Objects.equals(this.ifMatch, other.ifMatch) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken) - && java.util.Objects.equals(this.ifMatch, other.ifMatch); + && java.util.Objects.equals(this.opcRetryToken, other.opcRetryToken); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); - result = (result * PRIME) + (this.agentId == null ? 43 : this.agentId.hashCode()); result = (result * PRIME) - + (this.updateAgentDetails == null - ? 43 - : this.updateAgentDetails.hashCode()); + + (this.copyBackupDetails == null ? 43 : this.copyBackupDetails.hashCode()); + result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcRetryToken == null ? 43 : this.opcRetryToken.hashCode()); - result = (result * PRIME) + (this.ifMatch == null ? 43 : this.ifMatch.hashCode()); return result; } } diff --git a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteAgentResponse.java b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CopyBackupResponse.java similarity index 67% rename from bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteAgentResponse.java rename to bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CopyBackupResponse.java index 3db6859ca26..d05c9988508 100644 --- a/bmc-databasemigration/src/main/java/com/oracle/bmc/databasemigration/responses/DeleteAgentResponse.java +++ b/bmc-mysql/src/main/java/com/oracle/bmc/mysql/responses/CopyBackupResponse.java @@ -2,12 +2,24 @@ * 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.databasemigration.responses; +package com.oracle.bmc.mysql.responses; -import com.oracle.bmc.databasemigration.model.*; +import com.oracle.bmc.mysql.model.*; + +@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20190415") +public class CopyBackupResponse extends com.oracle.bmc.responses.BmcResponse { + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @return the value + */ + public String getEtag() { + return etag; + } -@jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210929") -public class DeleteAgentResponse extends com.oracle.bmc.responses.BmcResponse { /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -40,24 +52,42 @@ public String getOpcWorkRequestId() { return opcWorkRequestId; } + /** The returned {@code Backup} instance. */ + private com.oracle.bmc.mysql.model.Backup backup; + + /** + * The returned {@code Backup} instance. + * + * @return the value + */ + public com.oracle.bmc.mysql.model.Backup getBackup() { + return backup; + } + @java.beans.ConstructorProperties({ "__httpStatusCode__", "headers", + "etag", "opcRequestId", - "opcWorkRequestId" + "opcWorkRequestId", + "backup" }) - private DeleteAgentResponse( + private CopyBackupResponse( int __httpStatusCode__, java.util.Map> headers, + String etag, String opcRequestId, - String opcWorkRequestId) { + String opcWorkRequestId, + com.oracle.bmc.mysql.model.Backup backup) { super(__httpStatusCode__, headers); + this.etag = etag; this.opcRequestId = opcRequestId; this.opcWorkRequestId = opcWorkRequestId; + this.backup = backup; } public static class Builder - implements com.oracle.bmc.responses.BmcResponse.Builder { + implements com.oracle.bmc.responses.BmcResponse.Builder { private int __httpStatusCode__; @Override @@ -74,6 +104,20 @@ public Builder headers(java.util.Map> headers) { return this; } + /** For optimistic concurrency control. See {@code if-match}. */ + private String etag; + + /** + * For optimistic concurrency control. See {@code if-match}. + * + * @param etag the value to set + * @return this builder + */ + public Builder etag(String etag) { + this.etag = etag; + return this; + } + /** * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a * particular request, please provide the request ID. @@ -110,17 +154,33 @@ public Builder opcWorkRequestId(String opcWorkRequestId) { return this; } + /** The returned {@code Backup} instance. */ + private com.oracle.bmc.mysql.model.Backup backup; + + /** + * The returned {@code Backup} instance. + * + * @param backup the value to set + * @return this builder + */ + public Builder backup(com.oracle.bmc.mysql.model.Backup backup) { + this.backup = backup; + return this; + } + /** * Copy method to populate the builder with values from the given instance. * * @return this builder instance */ @Override - public Builder copy(DeleteAgentResponse o) { + public Builder copy(CopyBackupResponse o) { __httpStatusCode__(o.get__httpStatusCode__()); headers(o.getHeaders()); + etag(o.getEtag()); opcRequestId(o.getOpcRequestId()); opcWorkRequestId(o.getOpcWorkRequestId()); + backup(o.getBackup()); return this; } @@ -131,9 +191,9 @@ public Builder copy(DeleteAgentResponse o) { * @return the response object */ @Override - public DeleteAgentResponse build() { - return new DeleteAgentResponse( - __httpStatusCode__, headers, opcRequestId, opcWorkRequestId); + public CopyBackupResponse build() { + return new CopyBackupResponse( + __httpStatusCode__, headers, etag, opcRequestId, opcWorkRequestId, backup); } } @@ -151,8 +211,10 @@ public String toString() { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("("); sb.append("super=").append(super.toString()); + sb.append(",etag=").append(String.valueOf(etag)); sb.append(",opcRequestId=").append(String.valueOf(opcRequestId)); sb.append(",opcWorkRequestId=").append(String.valueOf(opcWorkRequestId)); + sb.append(",backup=").append(String.valueOf(backup)); sb.append(")"); return sb.toString(); } @@ -162,24 +224,28 @@ public boolean equals(Object o) { if (this == o) { return true; } - if (!(o instanceof DeleteAgentResponse)) { + if (!(o instanceof CopyBackupResponse)) { return false; } - DeleteAgentResponse other = (DeleteAgentResponse) o; + CopyBackupResponse other = (CopyBackupResponse) o; return super.equals(o) + && java.util.Objects.equals(this.etag, other.etag) && java.util.Objects.equals(this.opcRequestId, other.opcRequestId) - && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId); + && java.util.Objects.equals(this.opcWorkRequestId, other.opcWorkRequestId) + && java.util.Objects.equals(this.backup, other.backup); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); + result = (result * PRIME) + (this.etag == null ? 43 : this.etag.hashCode()); result = (result * PRIME) + (this.opcRequestId == null ? 43 : this.opcRequestId.hashCode()); result = (result * PRIME) + (this.opcWorkRequestId == null ? 43 : this.opcWorkRequestId.hashCode()); + result = (result * PRIME) + (this.backup == null ? 43 : this.backup.hashCode()); return result; } } diff --git a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json index e135d705d1e..c370c2aa449 100644 --- a/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json +++ b/bmc-mysql/src/main/resources/META-INF/native-image/com.oracle.oci.sdk/oci-java-sdk-mysql/reflect-config.json @@ -351,6 +351,20 @@ "allDeclaredFields": true, "allDeclaredMethods": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CopyBackupDetails", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.CopyBackupDetails$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.CrashRecoveryStatus", @@ -684,6 +698,20 @@ "allDeclaredMethods": true, "allDeclaredConstructors": true }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.DbSystemSnapshotSummary", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "queryAllDeclaredConstructors": true + }, + { + "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, + "name": "com.oracle.bmc.mysql.model.DbSystemSnapshotSummary$Builder", + "allDeclaredFields": true, + "allDeclaredMethods": true, + "allDeclaredConstructors": true + }, { "condition" : { "typeReachable" : "com.fasterxml.jackson.databind.ObjectMapper" }, "name": "com.oracle.bmc.mysql.model.DbSystemSource", diff --git a/bmc-networkfirewall/pom.xml b/bmc-networkfirewall/pom.xml index 4e7210e5b13..a90f0b7b3fb 100644 --- a/bmc-networkfirewall/pom.xml +++ b/bmc-networkfirewall/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-networkfirewall @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-networkloadbalancer/pom.xml b/bmc-networkloadbalancer/pom.xml index 5256ef05f9a..c9c80a3e3eb 100644 --- a/bmc-networkloadbalancer/pom.xml +++ b/bmc-networkloadbalancer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-networkloadbalancer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-nosql/pom.xml b/bmc-nosql/pom.xml index f21539b1b29..9855569604e 100644 --- a/bmc-nosql/pom.xml +++ b/bmc-nosql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-nosql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-objectstorage/bmc-objectstorage-combined/pom.xml b/bmc-objectstorage/bmc-objectstorage-combined/pom.xml index c44b9dc6f61..11bdbc2adba 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.43.2 + 3.44.0 ../pom.xml @@ -18,12 +18,12 @@ com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-extensions - 3.43.2 + 3.44.0 diff --git a/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml b/bmc-objectstorage/bmc-objectstorage-extensions/pom.xml index 36814a6585a..a7200a0313f 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.43.2 + 3.44.0 ../pom.xml @@ -18,17 +18,17 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-common-httpclient - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-objectstorage-generated - 3.43.2 + 3.44.0 org.slf4j diff --git a/bmc-objectstorage/bmc-objectstorage-generated/pom.xml b/bmc-objectstorage/bmc-objectstorage-generated/pom.xml index e35684cf2b4..553721940c8 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.43.2 + 3.44.0 ../pom.xml @@ -19,7 +19,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-objectstorage/pom.xml b/bmc-objectstorage/pom.xml index 90b2b4b732e..2540662f203 100644 --- a/bmc-objectstorage/pom.xml +++ b/bmc-objectstorage/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml diff --git a/bmc-oce/pom.xml b/bmc-oce/pom.xml index ca0bd84c09a..62ea9959581 100644 --- a/bmc-oce/pom.xml +++ b/bmc-oce/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-oce @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-ocicontrolcenter/pom.xml b/bmc-ocicontrolcenter/pom.xml index eed48aa99b9..178c7f9a103 100644 --- a/bmc-ocicontrolcenter/pom.xml +++ b/bmc-ocicontrolcenter/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-ocicontrolcenter @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-ocvp/pom.xml b/bmc-ocvp/pom.xml index cbb0259ffab..c09205bf16c 100644 --- a/bmc-ocvp/pom.xml +++ b/bmc-ocvp/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-ocvp @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-oda/pom.xml b/bmc-oda/pom.xml index 3827f34f517..423b1321855 100644 --- a/bmc-oda/pom.xml +++ b/bmc-oda/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-oda @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-onesubscription/pom.xml b/bmc-onesubscription/pom.xml index 250be510b03..c81125a29c9 100644 --- a/bmc-onesubscription/pom.xml +++ b/bmc-onesubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-onesubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-ons/pom.xml b/bmc-ons/pom.xml index 1af768ea5d2..8e28173195a 100644 --- a/bmc-ons/pom.xml +++ b/bmc-ons/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-ons @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-opa/pom.xml b/bmc-opa/pom.xml index c7831605482..0caa5082d51 100644 --- a/bmc-opa/pom.xml +++ b/bmc-opa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-opa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-opensearch/pom.xml b/bmc-opensearch/pom.xml index ade7c6b85a0..f6bde95d37e 100644 --- a/bmc-opensearch/pom.xml +++ b/bmc-opensearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-opensearch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-operatoraccesscontrol/pom.xml b/bmc-operatoraccesscontrol/pom.xml index 93b68011d01..784e21cd9b7 100644 --- a/bmc-operatoraccesscontrol/pom.xml +++ b/bmc-operatoraccesscontrol/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-operatoraccesscontrol @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-opsi/pom.xml b/bmc-opsi/pom.xml index 272287d92ea..96912818dc4 100644 --- a/bmc-opsi/pom.xml +++ b/bmc-opsi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-opsi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-optimizer/pom.xml b/bmc-optimizer/pom.xml index 294d26d9dc3..b20c8db43f0 100644 --- a/bmc-optimizer/pom.xml +++ b/bmc-optimizer/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-optimizer @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-osmanagement/pom.xml b/bmc-osmanagement/pom.xml index f4f4ff6b744..f9fd99b374f 100644 --- a/bmc-osmanagement/pom.xml +++ b/bmc-osmanagement/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-osmanagement @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-osmanagementhub/pom.xml b/bmc-osmanagementhub/pom.xml index 16993ff06a6..6ee6fe94ae7 100644 --- a/bmc-osmanagementhub/pom.xml +++ b/bmc-osmanagementhub/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-osmanagementhub @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-ospgateway/pom.xml b/bmc-ospgateway/pom.xml index 18ba6c73ee9..e61a3d27209 100644 --- a/bmc-ospgateway/pom.xml +++ b/bmc-ospgateway/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-ospgateway @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-osubbillingschedule/pom.xml b/bmc-osubbillingschedule/pom.xml index ee8c67bd663..e06678e9e62 100644 --- a/bmc-osubbillingschedule/pom.xml +++ b/bmc-osubbillingschedule/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-osubbillingschedule @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-osuborganizationsubscription/pom.xml b/bmc-osuborganizationsubscription/pom.xml index 80f2ed1c883..7cf0d7aab0a 100644 --- a/bmc-osuborganizationsubscription/pom.xml +++ b/bmc-osuborganizationsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-osuborganizationsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-osubsubscription/pom.xml b/bmc-osubsubscription/pom.xml index d6427ba5ff5..c76f4db4516 100644 --- a/bmc-osubsubscription/pom.xml +++ b/bmc-osubsubscription/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-osubsubscription @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-osubusage/pom.xml b/bmc-osubusage/pom.xml index b2cc9474a11..39b3915ba62 100644 --- a/bmc-osubusage/pom.xml +++ b/bmc-osubusage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-osubusage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.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 43f2632ca53..55158608b70 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.43.2 + 3.44.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.43.2 + 3.44.0 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.43.2 + 3.44.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 pom import diff --git a/bmc-other-examples/bmc-jersey3-examples/pom.xml b/bmc-other-examples/bmc-jersey3-examples/pom.xml index fc2b7219835..ad43a67ac69 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.43.2 + 3.44.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.43.2 + 3.44.0 false @@ -86,14 +86,14 @@ com.oracle.oci.sdk oci-java-sdk-bom - 3.43.2 + 3.44.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey3 - 3.43.2 + 3.44.0 pom import diff --git a/bmc-other-examples/native-maven-example/pom.xml b/bmc-other-examples/native-maven-example/pom.xml index 17769c1c2f1..7b63507c801 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.43.2 + 3.44.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.43.2 + 3.44.0 pom import com.oracle.oci.sdk oci-java-sdk-common-httpclient-jersey - 3.43.2 + 3.44.0 pom import diff --git a/bmc-other-examples/pom.xml b/bmc-other-examples/pom.xml index ae74003e69c..ca323001c1d 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.43.2 + 3.44.0 ../pom.xml diff --git a/bmc-psql/pom.xml b/bmc-psql/pom.xml index 48eabe79cee..65c285b2081 100644 --- a/bmc-psql/pom.xml +++ b/bmc-psql/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-psql @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-queue/pom.xml b/bmc-queue/pom.xml index 57537e8c2a8..865fe73e59b 100644 --- a/bmc-queue/pom.xml +++ b/bmc-queue/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-queue @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-recovery/pom.xml b/bmc-recovery/pom.xml index 02bfdb816c8..020b7014a0c 100644 --- a/bmc-recovery/pom.xml +++ b/bmc-recovery/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-recovery @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-redis/pom.xml b/bmc-redis/pom.xml index d8588ad099a..7bbbe8b8048 100644 --- a/bmc-redis/pom.xml +++ b/bmc-redis/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-redis @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-resourcemanager/pom.xml b/bmc-resourcemanager/pom.xml index 14a50e4bcd6..9c0e290de4e 100644 --- a/bmc-resourcemanager/pom.xml +++ b/bmc-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-resourcemanager @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-resourcescheduler/pom.xml b/bmc-resourcescheduler/pom.xml index 8e6f5fc05f8..8f36683a2c8 100644 --- a/bmc-resourcescheduler/pom.xml +++ b/bmc-resourcescheduler/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-resourcescheduler @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-resourcesearch/pom.xml b/bmc-resourcesearch/pom.xml index 0cf88e63183..b4d61734584 100644 --- a/bmc-resourcesearch/pom.xml +++ b/bmc-resourcesearch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-resourcesearch @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-rover/pom.xml b/bmc-rover/pom.xml index 361d04d6666..5d7240d6cbe 100644 --- a/bmc-rover/pom.xml +++ b/bmc-rover/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-rover @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-sch/pom.xml b/bmc-sch/pom.xml index 1de218cf885..0a23879b4de 100644 --- a/bmc-sch/pom.xml +++ b/bmc-sch/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-sch @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-secrets/pom.xml b/bmc-secrets/pom.xml index 3d524fbba62..4a840959a0c 100644 --- a/bmc-secrets/pom.xml +++ b/bmc-secrets/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-secrets @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-servicecatalog/pom.xml b/bmc-servicecatalog/pom.xml index 139d5b0d12a..e8902364df0 100644 --- a/bmc-servicecatalog/pom.xml +++ b/bmc-servicecatalog/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-servicecatalog @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-servicemanagerproxy/pom.xml b/bmc-servicemanagerproxy/pom.xml index 007125b4d45..04da76dc144 100644 --- a/bmc-servicemanagerproxy/pom.xml +++ b/bmc-servicemanagerproxy/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-servicemanagerproxy @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-servicemesh/pom.xml b/bmc-servicemesh/pom.xml index a839b7b4544..0c7966257bb 100644 --- a/bmc-servicemesh/pom.xml +++ b/bmc-servicemesh/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-servicemesh @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.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 4f40687cb06..884fbb3e8af 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.43.2 + 3.44.0 ../pom.xml oci-java-sdk-shaded-full diff --git a/bmc-shaded/pom.xml b/bmc-shaded/pom.xml index 2e697fdb68e..448cdafafb4 100644 --- a/bmc-shaded/pom.xml +++ b/bmc-shaded/pom.xml @@ -5,7 +5,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml diff --git a/bmc-stackmonitoring/pom.xml b/bmc-stackmonitoring/pom.xml index 3abff36c79c..a830394dbb5 100644 --- a/bmc-stackmonitoring/pom.xml +++ b/bmc-stackmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-stackmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-streaming/pom.xml b/bmc-streaming/pom.xml index f923311a105..ec18189656c 100644 --- a/bmc-streaming/pom.xml +++ b/bmc-streaming/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-streaming @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-tenantmanagercontrolplane/pom.xml b/bmc-tenantmanagercontrolplane/pom.xml index 08da6a889c4..32e74fba53f 100644 --- a/bmc-tenantmanagercontrolplane/pom.xml +++ b/bmc-tenantmanagercontrolplane/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-tenantmanagercontrolplane @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-threatintelligence/pom.xml b/bmc-threatintelligence/pom.xml index 8bd4a440bf7..f1d53252354 100644 --- a/bmc-threatintelligence/pom.xml +++ b/bmc-threatintelligence/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-threatintelligence @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-usage/pom.xml b/bmc-usage/pom.xml index 4e0d8381c39..1156541987c 100644 --- a/bmc-usage/pom.xml +++ b/bmc-usage/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-usage @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-usageapi/pom.xml b/bmc-usageapi/pom.xml index 05caa0c1ad0..a8897ce85fb 100644 --- a/bmc-usageapi/pom.xml +++ b/bmc-usageapi/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-usageapi @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-vault/pom.xml b/bmc-vault/pom.xml index 2d77e403d67..71b336b6497 100644 --- a/bmc-vault/pom.xml +++ b/bmc-vault/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-vault @@ -15,12 +15,12 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 com.oracle.oci.sdk oci-java-sdk-workrequests - 3.43.2 + 3.44.0 diff --git a/bmc-vbsinst/pom.xml b/bmc-vbsinst/pom.xml index dad5f3090d4..bf36851a730 100644 --- a/bmc-vbsinst/pom.xml +++ b/bmc-vbsinst/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-vbsinst @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-visualbuilder/pom.xml b/bmc-visualbuilder/pom.xml index 8c76abd7b2d..f7eae8c4129 100644 --- a/bmc-visualbuilder/pom.xml +++ b/bmc-visualbuilder/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-visualbuilder @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-vnmonitoring/pom.xml b/bmc-vnmonitoring/pom.xml index 4d0f2339f7c..3fa822cc3fd 100644 --- a/bmc-vnmonitoring/pom.xml +++ b/bmc-vnmonitoring/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-vnmonitoring @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-vulnerabilityscanning/pom.xml b/bmc-vulnerabilityscanning/pom.xml index 1dd9c1d2ee6..438a174140d 100644 --- a/bmc-vulnerabilityscanning/pom.xml +++ b/bmc-vulnerabilityscanning/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-vulnerabilityscanning @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-waa/pom.xml b/bmc-waa/pom.xml index 737bbdfb26d..065aa848d07 100644 --- a/bmc-waa/pom.xml +++ b/bmc-waa/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-waa @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-waas/pom.xml b/bmc-waas/pom.xml index 9ca3664caf5..dd879d47d6c 100644 --- a/bmc-waas/pom.xml +++ b/bmc-waas/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-waas @@ -16,7 +16,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/bmc-waf/pom.xml b/bmc-waf/pom.xml index 94a35c41e9e..b754ab3410c 100644 --- a/bmc-waf/pom.xml +++ b/bmc-waf/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-waf @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 \ No newline at end of file diff --git a/bmc-workrequests/pom.xml b/bmc-workrequests/pom.xml index eeca5733bcc..73ccb7ee23f 100644 --- a/bmc-workrequests/pom.xml +++ b/bmc-workrequests/pom.xml @@ -4,7 +4,7 @@ com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 ../pom.xml oci-java-sdk-workrequests @@ -15,7 +15,7 @@ com.oracle.oci.sdk oci-java-sdk-common - 3.43.2 + 3.44.0 diff --git a/pom.xml b/pom.xml index fdb0049399e..02a47a0653b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.oracle.oci.sdk oci-java-sdk - 3.43.2 + 3.44.0 pom Oracle Cloud Infrastructure SDK This project contains the SDK used for Oracle Cloud Infrastructure